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-25 00:10:49 +00:00
|
|
|
prettier src/*.mjs --write
|
2024-02-24 17:22:42 +00:00
|
|
|
|
2024-02-24 18:01:13 +00:00
|
|
|
# Generate all the files
|
2024-02-25 00:10:49 +00:00
|
|
|
build: colors examples
|
2024-02-24 18:01:13 +00:00
|
|
|
|
|
|
|
# Generate dist/colors.css
|
2024-02-25 00:10:49 +00:00
|
|
|
colors: format
|
2024-02-24 17:22:42 +00:00
|
|
|
node src/generate.mjs
|
2024-02-25 00:10:49 +00:00
|
|
|
prettier colors.css --write
|
2024-02-24 17:22:42 +00:00
|
|
|
|
2024-02-25 00:10:49 +00:00
|
|
|
# Generate examples/theme.css
|
|
|
|
examples: format
|
|
|
|
priduck-color-theme build \
|
|
|
|
--output examples/theme.css \
|
|
|
|
--light examples/light.css \
|
|
|
|
--light-more-contrast examples/light-more-contrast.css \
|
|
|
|
--light-less-contrast examples/light-less-contrast.css \
|
|
|
|
--dark examples/dark.css \
|
|
|
|
--dark-more-contrast examples/dark-more-contrast.css \
|
|
|
|
--dark-less-contrast examples/dark-less-contrast.css
|