-
Notifications
You must be signed in to change notification settings - Fork 2
/
Justfile
43 lines (32 loc) · 1.06 KB
/
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
37
38
39
40
41
42
43
red := '\033[0;31m'
green := '\033[0;32m'
nc := '\033[0m' # No Color
example NAME:
@just header "RUNNING EXAMPLE: next/{{NAME}}"
cd examples/next/{{NAME}} && npm install && npm run dev
v1-example NAME:
@just header "RUNNING EXAMPLE: v1/{{NAME}}"
cd examples/v1/{{NAME}} && npm install && npm run dev
examples:
for example in `ls examples/next`; do just example $example; done
v1-examples:
for example in `ls examples/v1`; do just v1-example $example; done
cli CMD="" OPT="":
rm -rf node_modules/prettynice
just build-cli
npm install
npx prettynice {{CMD}} {{OPT}}
build-cli:
cd cli && npm install && npx gren make src/Main.gren --optimize --output=bin/main.js
# Force a reinstall in examples
for example in `ls examples/next`; do rm -rf examples/next/$example/node_modules; done
build-cli-debug:
cd cli && npx gren make src/Main.gren --output=bin/main.js
web:
cd website/v2 && npm install && npm run dev
deploy-web:
cd website/v2 && flyctl deploy
header MSG:
@echo -e "\n{{green}}{{MSG}}{{nc}}"
progress MSG:
@echo -e "🌸 {{MSG}}..."