rename web/ to admin/, along with the web-named build and cli identifiers

This commit is contained in:
2026-08-16 00:17:58 +02:00
parent 5b3d1cd65c
commit 1e97c80f6b
136 changed files with 196 additions and 196 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
The identity of the dependency sets that decide what licenses/inventory.zon has
to cover. This file is a snapshot, not a source: src/licenses_drift_test.zig
recomputes each section from build.zig.zon and web/package-lock.json and fails
recomputes each section from build.zig.zon and admin/package-lock.json and fails
when it disagrees with what is recorded here. Prose before the first section
header is ignored by the guard.
@@ -10,11 +10,11 @@ shipped bytes first, then record it.
The runtime closure is every lockfile package not marked `dev`. That is a
superset of what the bundler emits — the guard cannot run rollup — so packages
tree-shaken out of web/dist appear here too; the inventory explains each of them
tree-shaken out of admin/dist appear here too; the inventory explains each of them
instead of carrying its licence.
The bundled-packages section is the one the Zig guard cannot compute: it is the
set of npm packages that actually contribute a module to web/dist, read off the
set of npm packages that actually contribute a module to admin/dist, read off the
sourcemap `sources` lists of a `vite build --sourcemap`. Only the frontend gate
can produce it, so gates.yml recomputes it there and fails on a difference. It
is what closes the hole the runtime-closure section leaves open — a package
@@ -28,9 +28,9 @@ digest both change the line, which forces somebody to re-read what the new base
ships before the inventory can claim it.
The generators section is the other direction: packages the lockfile marks `dev`
whose own output nevertheless ends up in web/dist, and so in the binary. Its
whose own output nevertheless ends up in admin/dist, and so in the binary. Its
membership is a judgement, not a query — it was settled by reading a
`vite build --sourcemap` of web/, both the sourcemap `sources` lists and the
`vite build --sourcemap` of admin/, both the sourcemap `sources` lists and the
regions of each chunk no sourcemap segment maps back to a source file. The
versions here are read from the lockfile like any other section.
@@ -80,7 +80,7 @@ vite 8.1.5 MIT
[container base image]
alpine:3.22@sha256:14358309a308569c32bdc37e2e0e9694be33a9d99e68afb0f5ff33cc1f695dce
[npm packages bundled into web/dist]
[npm packages bundled into admin/dist]
@internationalized/string
@stylexjs/stylex
@tanstack/history
+6 -6
View File
@@ -25,7 +25,7 @@
// against licenses/dependency-identity.txt, so a version bump that touches only
// the identity file fails.
//
// The web entries are the packages whose code is actually in web/dist, read off
// The web entries are the packages whose code is actually in admin/dist, read off
// a `vite build --sourcemap`: the sourcemap `sources` lists give the packages
// whose modules were bundled, and the regions of each chunk that *no* sourcemap
// segment maps back to a source file give the code the toolchain injected on
@@ -45,7 +45,7 @@
// build of a component calling stylex.props shows no trace of any of the four,
// so they are dead entries of the published manifest rather than code with a
// job here. css-mediaquery is the one that matters: it is BSD, and it reaching
// web/dist would force a licence decision this project has not made.
// admin/dist would force a licence decision this project has not made.
//
// Seven more joined that list with React Aria, and the sourcemap build is again
// what settled which: @internationalized/date, @internationalized/number,
@@ -71,7 +71,7 @@
// a `sources` list — no guard would raise it, which is why it is written down
// here.
//
// Of the remaining devDependencies, none puts a byte in web/dist: @vitejs/
// Of the remaining devDependencies, none puts a byte in admin/dist: @vitejs/
// plugin-react and typescript only transform our own sources (react-refresh is
// dev-server only, and tslib is optional and unused), lightningcss only
// minifies, and @testing-library/*, jsdom, vitest, oxlint and prettier
@@ -146,7 +146,7 @@
.{
.component = "styleq",
.version = "styleq 0.2.1",
.note = "The class-name merger StyleX calls at runtime. Never a bundled package in its own right: @stylexjs/stylex vendors its source into lib/es/stylex.mjs, so it reaches web/dist without appearing in any sourcemap `sources` list. Separate entry from StyleX: same MIT text, different copyright line.",
.note = "The class-name merger StyleX calls at runtime. Never a bundled package in its own right: @stylexjs/stylex vendors its source into lib/es/stylex.mjs, so it reaches admin/dist without appearing in any sourcemap `sources` list. Separate entry from StyleX: same MIT text, different copyright line.",
.file = "styleq-mit.txt",
},
.{
@@ -158,13 +158,13 @@
.{
.component = "Vite",
.version = "vite 8.1.5",
.note = "A devDependency whose own runtime source ships: the preload helper and the modulepreload polyfill are injected verbatim into web/dist/assets/index-*.js, which is embedded in the binary.",
.note = "A devDependency whose own runtime source ships: the preload helper and the modulepreload polyfill are injected verbatim into admin/dist/assets/index-*.js, which is embedded in the binary.",
.file = "vite-mit.txt",
},
.{
.component = "Rolldown",
.version = "rolldown 1.1.5",
.note = "A devDependency whose own runtime source ships: the bundler Vite 8 runs prepends its CommonJS interop helpers verbatim to web/dist/assets/styles-*.js, which is embedded in the binary.",
.note = "A devDependency whose own runtime source ships: the bundler Vite 8 runs prepends its CommonJS interop helpers verbatim to admin/dist/assets/styles-*.js, which is embedded in the binary.",
.file = "rolldown-mit.txt",
},
.{
+2 -2
View File
@@ -2,7 +2,7 @@
//! `@embedFile` paths resolve relative to this file, and a module cannot embed
//! anything above its own root directory, so `build.zig` stages a directory
//! holding a copy of `licenses/` alongside copies of `build.zig.zon` and
//! `web/package-lock.json`, and roots the import at the copy of this file.
//! `admin/package-lock.json`, and roots the import at the copy of this file.
//! That is why the two decls below name files that do not sit beside this one
//! in the repository.
//!
@@ -24,7 +24,7 @@ pub const dependency_identity_txt = @embedFile("dependency-identity.txt");
/// Repository root `build.zig.zon`, the identity of the Zig dependency set.
pub const build_zig_zon = @embedFile("build.zig.zon");
/// `web/package-lock.json`, the identity of the npm closure.
/// `admin/package-lock.json`, the identity of the npm closure.
pub const package_lock_json = @embedFile("package-lock.json");
/// `deploy/docker/Dockerfile`, the identity of the base image. The image is a
+1 -1
View File
@@ -2,7 +2,7 @@ Rolldown is the bundler Vite 8 runs, and it prepends its own CommonJS interop
helpers — the `__commonJS`, `__toESM` and `__copyProps` closures built out of
Object.create, Object.defineProperty and Object.getOwnPropertyNames — to every
chunk that pulls in a CommonJS module. In this build they are the first 554
bytes of web/dist/assets/classes-*.js, which is embedded in every nxdns binary.
bytes of admin/dist/assets/classes-*.js, which is embedded in every nxdns binary.
Like Vite's preload helper, they are a region of the chunk that no sourcemap
segment maps back to a source file.
+2 -2
View File
@@ -1,6 +1,6 @@
Vite emits its own runtime source verbatim into the bundle that `vite build`
writes to web/dist, and web/dist is embedded in every nxdns binary. Two pieces
of Vite's code ship in web/dist/assets/index-*.js:
writes to admin/dist, and admin/dist is embedded in every nxdns binary. Two pieces
of Vite's code ship in admin/dist/assets/index-*.js:
- the `__vite__mapDeps` table and the `__vitePreload` helper that dynamic
imports are rewritten to call (vite/preload-helper), and