archivo del paquete→ .shtukbase/packages/design-tokens/skeleton/style/actions/build.ts
skeleton/style/actions/build.ts
9 líneas, 603 B.
El archivo tal como está en el paquete: el código y sus comentarios no se traducen.
- // `build` of the skeleton style: writes /design/my-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 my-style`). When you rename the style, change ID.
- // The path below is right once this folder is a package next to design-tokens (packages/<id>/ and packages/design-tokens/).
- import { buildStyle } from '../../design-tokens/actions/build.ts';
- const ID = 'my-style';
- const r = buildStyle(ID, process.cwd());
- console.log(r.message.replace(/^design-tokens:/, `${ID}:`));
- if (!r.ok) process.exitCode = 1;