-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
36 lines (29 loc) · 980 Bytes
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
build-css-dev:
npx postcss resources/css/app-utilities.pcss -o resources/public/css/app-utilities.css
npx postcss resources/css/app-components.pcss -o resources/public/css/app-components.css -w --verbose
build-css-prod:
#!/usr/bin/env bash
NODE_ENV=production npx postcss resources/css/app-utilities.pcss -o resources/public/css/app-utilities.css
NODE_ENV=production npx postcss resources/css/app-components.pcss -o resources/public/css/app-components.css
ls -lh resources/public/css
for:
#!/usr/bin/env bash
for filename in $(find . -name '*.clj'); do
echo $filename
done
build-html:
#!/usr/bin/env bash
bb index.clj
bootleg milo.clj -o milo.html
dev:
npx onchange -i $(find . -name '*.clj' -o -name '*.md') -- just build-html & just build-css-dev
build-assets:
just build-css-prod
just build-html
sync:
browser-sync start --server --files "**/*.html" "**/*.css"
deploy:
just build-assets
git add -A
git commit -m "u"
git push