feat(brand): add Endoleap assets and production theme package
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// 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/.');
|
||||
Reference in New Issue
Block a user