mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-04 05:07:28 +01:00
feat(packages): declare chartkit, the fleet's chart package (#190)
* feat(packages): declare chartkit, the fleet's chart package Source is bitbaum/substrata packages/chartkit, where it is built and first adopted (series charts). Declaring it here creates bitbaum/chartkit once the source lands on substrata's main; until then this stays a draft. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * feat(packages): install Chromium before a package's verify when it drives a browser chartkit's verify runs a label audit in Chromium; the generator and the template CI ran verify after a bare pnpm install, so the repo would have been refused for a missing browser. Keyed on the playwright devDependency. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
8dc76855be
commit
f3400728bb
3 files changed
+38
-3
No files matched your search
@@ -1,11 +1,32 @@
|
||||
{
|
||||
"$comment": "Package repos that must exist. Declaring one here IS creating it: on merge, .github/workflows/package-repos.yml runs scripts/packages/create-package-repos.mjs, which copies source.path from source.repo, makes it standalone (templates/package), runs its own verify, then creates bitbaum/<name> and tags v<version>. An existing repo is never touched — after creation it changes through its own pull requests.",
|
||||
"$comment": "Package repos that must exist. Declaring one here IS creating it: on merge, .github/workflows/package-repos.yml runs scripts/packages/create-package-repos.mjs, which copies source.path from source.repo, makes it standalone (templates/package), runs its own verify, then creates bitbaum/<name> and tags v<version>. An existing repo is never touched \u2014 after creation it changes through its own pull requests.",
|
||||
"repos": [
|
||||
{
|
||||
"name": "searchkit",
|
||||
"description": "Search that finds what was meant: typo budgets by word length, prefix while typing, tie-break ranking, highlight ranges, query expansion for any database, and generated typo suites.",
|
||||
"source": { "repo": "bitbaum/orangecat", "path": "packages/searchkit" },
|
||||
"devDependencies": { "typescript": "^6.0.3", "@types/react": "^19.3.0" }
|
||||
"source": {
|
||||
"repo": "bitbaum/orangecat",
|
||||
"path": "packages/searchkit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^6.0.3",
|
||||
"@types/react": "^19.3.0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "chartkit",
|
||||
"description": "One chart for every product: token-driven SVG charts that render on the server, read as a table, and never cut a label \u2014 line, ranked bars, share bars, sparkline, meter, timeline, stat tiles.",
|
||||
"source": {
|
||||
"repo": "bitbaum/substrata",
|
||||
"path": "packages/chartkit"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^6.0.3",
|
||||
"@types/react": "^19.3.0",
|
||||
"react": "^19.2.0",
|
||||
"react-dom": "^19.2.0",
|
||||
"playwright": "^1.58.0"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -166,6 +166,12 @@ function seed(decl, work) {
|
||||
// A lockfile of its own, then the package's own gate. Nothing is created
|
||||
// from a tree that does not pass.
|
||||
run('pnpm', ['install', '--no-frozen-lockfile'], { cwd: pkgDir, stdio: 'inherit' });
|
||||
// A package whose verify drives a browser (chartkit's label audit, chatkit's
|
||||
// layout checks) needs Chromium on the runner; pnpm install does not fetch
|
||||
// it. The template CI does the same, keyed on the same devDependency.
|
||||
if (pkg.devDependencies?.playwright) {
|
||||
run('pnpm', ['exec', 'playwright', 'install', '--with-deps', 'chromium'], { cwd: pkgDir, stdio: 'inherit' });
|
||||
}
|
||||
run('pnpm', ['run', 'verify'], { cwd: pkgDir, stdio: 'inherit' });
|
||||
return { pkgDir, pkg, sha };
|
||||
}
|
||||
|
||||
+8
@@ -29,6 +29,14 @@ jobs:
|
||||
node-version: "24"
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
# A verify that drives a browser needs Chromium; pnpm install does not
|
||||
# fetch it. Keyed on the playwright devDependency, so a package without
|
||||
# one pays nothing here.
|
||||
- name: Chromium, when the package's verify needs it
|
||||
run: |
|
||||
if node -e "process.exit(require('./package.json').devDependencies?.playwright ? 0 : 1)"; then
|
||||
pnpm exec playwright install --with-deps chromium
|
||||
fi
|
||||
- run: pnpm run verify
|
||||
# dist/ is committed so a `github:` install needs no build step (pnpm
|
||||
# refuses git-dependency builds without a per-SHA allowBuilds entry in
|
||||
|
||||
Reference in new issue
Block a user