файл пакета→ .shtukbase/packages/design-tokens/skeleton/style/actions/build.ts
skeleton/style/actions/build.ts
9 строк, 603 Б.
Файл как есть в пакете: код и комментарии в нём не переводятся.
- // `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;