-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
45 lines (39 loc) · 986 Bytes
/
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
help:
@echo "clean ... clean up"
@echo "init ... checkout third party libraries"
@echo "build ... generate runtime file"
@echo "test ... test script"
clean:
rm -rf node_modules tss bin/tsscc.min.js bin/manifest.json
init:
npm install
git clone https://github.com/toyoshim/tss.git
build:
cat \
compat.js \
tss/js/tss/AudioLooper.js \
tss/js/tss/MasterChannel.js \
tss/js/tss/TssChannel.js \
tss/js/tss/TString.js \
tss/js/tss/TsdPlayer.js \
tss/js/tss/TssCompiler.js \
MMLParser.js \
main.js \
| \
node ./node_modules/uglify-js/bin/uglifyjs \
--output bin/tsscc.min.js
cp manifest.json bin/
cp icons/tsscc16.png bin/
cp icons/tsscc48.png bin/
cp icons/tsscc128.png bin/
store:
mkdir -p zip/tsscc/
rm -f zip/tsscc.zip
cp bin/tsscc.min.js zip/tsscc/
cp bin/manifest.json zip/tsscc/
cp icons/tsscc16.png zip/tsscc/
cp icons/tsscc48.png zip/tsscc/
cp icons/tsscc128.png zip/tsscc/
cd zip; zip -r tsscc.zip tsscc/
test:
npm test