2024-02-24 17:22:42 +00:00
|
|
|
@default:
|
|
|
|
just --choose
|
|
|
|
|
2024-02-24 18:01:13 +00:00
|
|
|
# Format all the source code
|
2024-02-24 17:22:42 +00:00
|
|
|
format:
|
|
|
|
treefmt
|
|
|
|
just --fmt --unstable
|
2024-02-24 18:14:41 +00:00
|
|
|
prettier src/*.mjs src/*.postcss --write
|
2024-02-24 17:22:42 +00:00
|
|
|
|
2024-02-24 18:01:13 +00:00
|
|
|
format-dist:
|
2024-02-24 21:06:38 +00:00
|
|
|
prettier ./*.css --write
|
2024-02-24 17:22:42 +00:00
|
|
|
|
2024-02-24 18:01:13 +00:00
|
|
|
# Generate all the files
|
|
|
|
build: colors theme
|
|
|
|
|
|
|
|
# Generate dist/colors.css
|
|
|
|
colors: format && format-dist
|
2024-02-24 17:22:42 +00:00
|
|
|
node src/generate.mjs
|
|
|
|
|
2024-02-24 18:01:13 +00:00
|
|
|
# Generate dist/theme.css
|
|
|
|
theme: format && format-dist
|
2024-02-24 21:06:38 +00:00
|
|
|
postcss src/theme.postcss > ./theme.css
|