priduck-color-theme-cli-js/Justfile

31 lines
824 B
Makefile
Raw Normal View History

export DEBUG := "*"
@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
2024-05-10 05:14:26 +00:00
node src/cli.mjs css variables --output colors.css --selector :root
prettier colors.css --write
# Generate examples/theme.css
examples: format
node src/cli.mjs css mixin \
--selector :root \
--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