priduck-color-theme-cli-js/Justfile

22 lines
422 B
Makefile

@default:
just --choose
# Format all the source code
format:
treefmt
just --fmt --unstable
prettier src/*.mjs src/*.postcss --write
format-dist:
prettier ./*.css --write
# Generate all the files
build: colors theme
# Generate dist/colors.css
colors: format && format-dist
node src/generate.mjs
# Generate dist/theme.css
theme: format && format-dist
postcss src/theme.postcss > ./theme.css