mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 22:26:38 +03:00
Post-rebase repairs after main moved 226 commits (site/ split to the
private impeccable-site repo, DESIGN.md spec now eight sections, register
extraction replaced by extractSectionValue, seed mode rewritten):
- document.md: transplant this branch's seed pipeline (assets, interview,
visual cues, picker) onto main's rewritten file; adopt the canonical
section vocabulary. The interplay with new-work's workshop is left for
PR review.
- picker: vendor kinpaku tokens/kit CSS, hero art, and favicon under
picker/ (site/ no longer exists here); drop the sharp resize step and
ship the compressed JPEG directly; declare astro/sharp-free deps.
- picker-server: read the register via extractSectionValue('Register')
since extractRegister is gone from context.mjs.
- palette.mjs / utils.js / test-suites.mjs / package.json / release.mjs:
rebuild as main's version plus this branch's additions, undoing hunks
the -X theirs replay had clobbered.
- craft.md / shape.md: reset to main (this branch's net change was zero).
- progress bar: animate transform instead of width (design hook finding).
Validation: bun run build green (prose validators clean), bun run test
198/198, picker-server suite 7/7.
AI-assisted (agent-implemented, maintainer-directed).
Co-authored-by: Cursor <cursoragent@cursor.com>
33 lines
1.3 KiB
JavaScript
33 lines
1.3 KiB
JavaScript
#!/usr/bin/env node
|
|
|
|
import { execFileSync } from 'node:child_process';
|
|
import { cp, copyFile, mkdir, rm } from 'node:fs/promises';
|
|
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
const buildDir = path.join(root, 'build-picker');
|
|
const outputDir = path.join(root, 'skill/scripts/picker');
|
|
// Static assets vendored under picker/assets/ (the site now lives in the
|
|
// private impeccable-site repo, so the picker carries its own copies).
|
|
const faviconSource = path.join(root, 'picker/assets/favicon.svg');
|
|
const faviconOutput = path.join(outputDir, 'favicon.svg');
|
|
const heroSource = path.join(root, 'picker/assets/hero-light.jpg');
|
|
const heroOutput = path.join(outputDir, 'assets/hero-light.jpg');
|
|
|
|
await rm(buildDir, { recursive: true, force: true });
|
|
execFileSync(
|
|
'bun',
|
|
['x', 'astro', 'build', '--config', 'picker/astro.config.mjs'],
|
|
{ cwd: root, stdio: 'inherit' },
|
|
);
|
|
|
|
await rm(outputDir, { recursive: true, force: true });
|
|
await cp(buildDir, outputDir, { recursive: true });
|
|
await mkdir(path.dirname(heroOutput), { recursive: true });
|
|
await copyFile(faviconSource, faviconOutput);
|
|
await copyFile(heroSource, heroOutput);
|
|
await rm(buildDir, { recursive: true, force: true });
|
|
|
|
console.log(`Built ${path.relative(root, outputDir)}/`);
|