refactor(backend): rename mediacore package to media

This commit is contained in:
Gabriel20xx committed 2026-11-01 21:50:47 +01:00
1 parent e8cb7c6c68
commit 75c08beec6
34 files changed
+837 -656

No files matched your search

+2 -2
View File
@@ -50,9 +50,9 @@ function collectMatches(content, regex, type) {
const allFiles = await walk(repoRoot);
const violations = [];
// After folding media-backend/webui directly into the shared repo, this filter targets
// This filter targets
// the frontend directories where inline HTML/CSS layout violations are actually possible
// (the plain Go backend/ and Go media-backend/ have none; there is no more nested shared/).
// (the Go backend/ has none; there is no nested shared/).
const includedTopLevelDirs = ['webui/', 'scripts/media/'];
for (const filePath of allFiles) {
+1 -1
View File
@@ -100,7 +100,7 @@ fallbackRemoved += removeFallbackDirs(repoRoot);
// NOTE: no top-level tests/ dir currently exists and no embedded-postgres JS test tooling was
// found anywhere in this repo — this sweep is a harmless no-op today but kept for forward
// compatibility / parity with the source script. The former sweep of a nested shared/tests/
// was dropped: after folding media-backend/webui directly into the shared repo (no more
// was dropped: after the webui was folded directly into the shared repo (no more
// vendored shared/ copy), there is no longer a nested "shared" subdirectory to sweep.
const pgSweepDirs = [path.join(repoRoot, 'tests')];
let pgArtifactsRemoved = 0;
+2 -2
View File
@@ -5,8 +5,8 @@
* machine parsing. Exit code is non-zero if any package reports errors or warnings (configurable).
*
* Shared extraction note: the monorepo version of this script discovered the monorepo root by
* walking up for a MediaShared/package.json marker and iterated MediaShared/MediaModerator/
* MediaViewer/MediaTools using a shared root eslint.config.mjs. None of those sibling packages or
* walking up for a root package.json marker and iterated the sibling packages
* using a shared root eslint.config.mjs. None of those sibling packages or
* the root config exist in this repo — webui/ is the only JS/TS package here, and it already
* ships its own local eslint.config.js (picked up automatically, no --config override needed).
*/
+2 -2
View File
@@ -4,9 +4,9 @@
* Exits non‑zero if any package fails its lint step.
*
* Shared extraction note: the monorepo version of this script discovered the monorepo root
* by walking up for a MediaShared/package.json marker, iterated nine sibling Media* packages
* by walking up for a root package.json marker, iterated the sibling packages
* against a shared root eslint.config.mjs/.stylelintrc.json, and ran Prettier/Stylelint out of
* MediaShared/node_modules (npm workspace hoisting). Here the only JS/TS package with a lint
* the root node_modules (npm workspace hoisting). Here the only JS/TS package with a lint
* target is packages/web-ui, linted with the root eslint.config.js (ESLint is a root
* devDependency, so `npx eslint` resolves it). Prettier is checked through the root
* `format:check` script, which covers only the files written to the Prettier style (see
+5 -8
View File
@@ -28,11 +28,9 @@ function New-ConsumerProject {
# Destination defaults to 'shared' (the snapshot folder name every consumer
# uses) - originally a git submodule, converted to this vendored-copy pattern
# for consistency and to drop the private-submodule checkout auth dependency
# in CI. The media-family services (CarrierNode, ContentScanner, CraftStudio,
# MediaViewer, KioskDisplay, ModerationHub, ProjectConfigurator) used to mount
# a shared multi-flavor webui/media-backend at a separate 'engine' folder
# instead; each is now its own independent frontend/backend and vendors this
# snapshot the same way as every other consumer below.
# in CI. Some consumers used to mount a shared multi-flavor webui at a separate 'engine'
# folder; each is now its own independent frontend/backend and vendors this snapshot the same
# way as every other consumer below.
$consumerProjects = @(
New-ConsumerProject 'Original/MediaDesktop'
New-ConsumerProject 'Original/AutoCode'
@@ -255,9 +253,8 @@ $sourceRoot = Resolve-FullPath $sourceRepositoryRoot
# The workspace root is the ancestor directory that contains both 'Original'
# and 'Fork' (every consumer project lives under one of those, or under
# 'Core' for the central infrastructure services). Walk up from the shared
# repo instead of assuming a fixed nesting depth, since shared/ has moved
# before (e.g. Web/shared -> Web/Central/shared -> Web/Core/shared, with
# 'Forks' renamed to singular 'Fork' at the same time) and may move again.
# repo instead of assuming a fixed nesting depth, since the workspace layout has
# changed before and may change again.
$workspaceRoot = Split-Path -Parent $sourceRoot
while ($workspaceRoot -and -not ((Test-Path -LiteralPath (Join-Path $workspaceRoot 'Original') -PathType Container) -and (Test-Path -LiteralPath (Join-Path $workspaceRoot 'Fork') -PathType Container))) {
$parent = Split-Path -Parent $workspaceRoot