-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 562 Bytes
/
Makefile
File metadata and controls
24 lines (17 loc) · 562 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
BROWSERIFY_PATH=./node_modules/.bin/browserify
UGLIFYJS_PATH=./node_modules/.bin/uglifyjs
install:
npm install
build-dev: install
$(BROWSERIFY_PATH) random.js -s chineseRandomName > random.min.js
build: install
$(BROWSERIFY_PATH) random.js -s chineseRandomName > random.min.js && \
node --stack_size=10000 $(UGLIFYJS_PATH) random.min.js -o random.min.js --mangle reserved="['module','exports','chineseRandomName']" \
-c -m --source-map
clean-build:
rm -f random.min.js
clean: clean-build
rm -rf node_modules
test:
node test/test.js
.PHONY: test