-
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Makefile
28 lines (23 loc) · 674 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
LOCALE ?= en_US
GENERATED_FILES = \
trendyways.js \
trendyways.min.js \
trendyways_raw.js \
tests
all:
rm -Rf ./build
mkdir build
cp ./src/*.js ./build
for js in `find ./build/*`; do cat $$js >> ./build/trendyways_raw.js; done
echo generating trendyways.js ...
node ./node_modules/browserify/bin/cmd.js ./build/trendyways_raw.js --standalone tw > dist/trendyways.js
rm -Rf ./build
echo generating trendyways.min.js ...
node ./node_modules/uglify-es/bin/uglifyjs dist/trendyways.js -o dist/trendyways.min.js
docs: trendyways.js
rm -Rf ./docs
jsdoc trendyways.js -d=docs
clean:
rm -Rf build
rm -f trendyways.js trendyways.min.js
.PHONY: all docs clean