-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
89 lines (67 loc) · 1.73 KB
/
makefile
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# aliases
all_compile: dev_compile_release dev_compile compile_release compile
# dev env
dev_serve:
cd env/dev/public && npx serve -p 5001
dev_render_release:
crystal env/dev/src/run_local_full.cr
# release is executed once to refresh all parts of website
# local means using local version of `tremolite` shard
dev_compile_release:
crystal build env/dev/src/run_local_full.cr -o env/dev/blog_release --release
dev_run_compiled_release:
env/dev/blog_release
dev_compile_and_run: dev_clean_compiled dev_compile dev_run_compiled
dev_compile:
crystal build env/dev/src/run_local.cr -o env/dev/blog --release
dev_compile_fast:
crystal build env/dev/src/run_local.cr -o env/dev/blog
dev_run_compiled:
CRYSTAL_LOG_LEVEL=DEBUG CRYSTAL_LOG_SOURCES="*" env/dev/blog
dev_clean_compiled:
rm env/dev/blog
dev_watch_smart:
bash env/dev/watch_smart.sh
# full env
serve:
cd env/full/public && npx serve -p 5001
release: run_compiled_release
release_ovh:
cd env/full && ./release_ovh.sh
render_release:
crystal env/full/src/run_local_full.cr
compile_release:
crystal build env/full/src/run_local_full.cr -o env/full/blog_release --release
run_compiled_release:
env/full/blog_release
compile:
crystal build env/full/src/run_local.cr -o env/full/blog --release
run_compiled:
CRYSTAL_LOG_LEVEL=DEBUG CRYSTAL_LOG_SOURCES="*" env/full/blog
watch_smart:
bash env/full/watch_smart.sh
watch_coffee:
coffee -bcw data/assets/js/*.coffee
# old stuff
# watch:
# bash watch.sh
#
# watch_dev:
# bash watch_dev.sh
#
# watch_compiled:
# bash watch_compiled.sh
#
#
# upload:
# bash release_ovh.sh
#
# run:
# crystal src/odkrywajac_polske.cr
#
# serve:
# cd public && serve -p 5001
#
#
# compile:
# crystal build src/odkrywajac_polske.cr -o blog --release