priduck-color-theme-cli-js/Justfile

24 lines
432 B
Makefile
Raw Normal View History

@default:
just --choose
2024-02-24 18:01:13 +00:00
# Format all the source code
format:
treefmt
just --fmt --unstable
2024-02-24 18:01:13 +00:00
prettier src/*.mjs --write
2024-02-24 18:01:13 +00:00
format-dist:
prettier dist/*.css --write
2024-02-24 18:01:13 +00:00
# Generate all the files
build: colors theme
# Generate dist/colors.css
colors: format && format-dist
node src/generate.mjs
2024-02-24 18:01:13 +00:00
# Generate dist/theme.css
theme: format && format-dist
mkdir -p dist
2024-02-24 18:01:13 +00:00
postcss src/theme.postcss > dist/theme.css