-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
46 lines (42 loc) · 1.24 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
44
45
46
# justfile
#
# author: [email protected]
dev-hash:
@echo 'copying dev-hash/config.js'
@cp config/dev-hash/config.js js/config.js
dev-html5:
@echo 'copying dev-html5/config.js'
@cp config/dev-html5/config.js js/config.js
prod:
@echo 'copying artifacts to /dist folder'
@cp -R js dist/
@cp -R images dist/
@cp -R audio dist/
@cp -R css dist/
@cp dalegaspi.vcf dist/
@cp index.html dist/
@cp README.md dist/
@cp robots.txt dist/
@echo 'copying prod/config.js'
@cp config/prod/config.js dist/js/config.js
@for file in `ls dist/js/*.js`; do \
javascript-obfuscator $file --log false --compact true --output $file; \
done
@for file in `ls dist/js/components/*.js`; do \
javascript-obfuscator $file --log false --compact true --output $file; \
done
@for file in `ls dist/css/*.css`; do \
uglifycss $file --output $file; \
done
prod-no-uglify:
@echo 'copying artifacts to /dist folder'
@cp -R js dist/
@cp -R images dist/
@cp -R audio dist/
@cp -R css dist/
@cp dalegaspi.vcf dist/
@cp index.html dist/
@cp README.md dist/
@cp robots.txt dist/
@echo 'copying prod/config.js'
@cp -f config/prod/config.js dist/js/config.js