priduck-color-theme-cli-js/Justfile

28 lines
752 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
prettier src/*.mjs --write
2024-02-24 18:01:13 +00:00
# Generate all the files
build: colors examples
2024-02-24 18:01:13 +00:00
# Generate dist/colors.css
colors: format
node src/cli.mjs css variables -o colors.css
prettier colors.css --write
# 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