Files
codex-bot c405f47916
Endoleap brand checks / verify (pull_request) Failing after 5s
creative workspace review checks / verify (pull_request) Has been cancelled
feat(brand): add Endoleap assets and production theme package
2026-11-01 00:22:43 +08:00

9 lines
613 B
JavaScript

// Execute only on the authorized ces-control runner. Source exports work without a local build.
import { mkdir, writeFile, copyFile } from 'node:fs/promises';
import { themes, palette } from '../src/tokens.mjs';
const root = new URL('../', import.meta.url);
await mkdir(new URL('dist/', root), { recursive: true });
for (const name of ['themes.css', 'tailwind.css']) await copyFile(new URL(`src/${name}`, root), new URL(`dist/${name}`, root));
await writeFile(new URL('dist/tokens.json', root), JSON.stringify({ palette, themes }, null, 2) + '\n');
console.log('Brand CSS and resolved JSON exported to dist/.');