23 lines
446 B
Makefile
23 lines
446 B
Makefile
@default:
|
|
just --choose
|
|
|
|
# Format all the source code
|
|
format:
|
|
treefmt
|
|
just --fmt --unstable
|
|
prettier src/*.mjs src/*.postcss --write
|
|
|
|
format-dist:
|
|
prettier dist/*.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
|
|
mkdir -p dist
|
|
postcss src/theme.postcss > dist/theme.css
|