archivo del paquete→ .shtukbase/packages/shtukbase-style/actions/build.ts
actions/build.ts
10 líneas, 637 B.
El archivo tal como está en el paquete: el código y sus comentarios no se traducen.
- // shtukbase-style `build`: writes /design/shtukbase-style/tokens.css from tokens.json and tokens.dark.json with the
- // build library of design-tokens (the same as `shtuk run design-tokens build --style shtukbase-style`). Runs by itself
- // after install and update; by hand: `shtuk run shtukbase-style build`. Invalid tokens: nothing is written, the
- // problems are printed, exit 1.
- import { buildStyle } from '../../design-tokens/actions/build.ts';
- import { ID } from '../lib/stylelib.ts';
- const r = buildStyle(ID, process.cwd());
- console.log(r.message.replace(/^design-tokens:/, 'shtukbase-style:'));
- if (!r.ok) process.exitCode = 1;