File tree Expand file tree Collapse file tree 3 files changed +295
-12
lines changed
Expand file tree Collapse file tree 3 files changed +295
-12
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- rm -rf ./dist
3+ build_tokens () {
4+ rm -rf ./dist
5+ tz build
6+ cat ./dist/tokens-primitives.css ./dist/tokens-semantic.css > ./dist/tokens.css
7+ rm ./dist/tokens-primitives.css ./dist/tokens-semantic.css
8+ echo " ✓ Built tokens.css"
9+ }
410
511if [[ " $1 " == " watch" ]]; then
6- tz build --watch
12+ echo " 👀 Watching dictionary files for changes..."
13+
14+ build_tokens
15+
16+ chokidar " dictionary/**/*.json" -c " $( pwd) /.scripts/bash/tokens-build" --initial=false
717else
8- tz build
18+ build_tokens
919fi
10-
11- cat ./dist/tokens-primitives.css ./dist/tokens-semantic.css > ./dist/tokens.css && rm ./dist/tokens-primitives.css ./dist/tokens-semantic.css
Original file line number Diff line number Diff line change 3939 "devDependencies" : {
4040 "@terrazzo/cli" : " ^2.0.0" ,
4141 "@terrazzo/plugin-css" : " ^2.0.0" ,
42+ "chokidar-cli" : " ^3.0.0" ,
4243 "prettier" : " ^3.0.0" ,
4344 "typescript" : " ^5.0.0"
4445 }
You can’t perform that action at this time.
0 commit comments