-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
29 lines (23 loc) · 847 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
.PHONY: build var node
# repository name
REPO = get-own-property-symbols
# make var files
VAR = src/$(REPO).js
# make node files
NODE = $(VAR)
# default build task
build:
make var
make node
# build generic version
var:
cat template/var.before $(VAR) template/var.after >build/no-copy.$(REPO).max.js
node node_modules/uglify-js/bin/uglifyjs --verbose build/no-copy.$(REPO).max.js >build/no-copy.$(REPO).js
cat template/license.before LICENSE.txt template/license.after build/no-copy.$(REPO).max.js >build/$(REPO).max.js
cat template/copyright build/no-copy.$(REPO).js >build/$(REPO).js
rm build/no-copy.$(REPO).max.js
rm build/no-copy.$(REPO).js
# build node.js version
node:
cat template/license.before LICENSE.txt template/license.after template/node.before $(NODE) template/node.after >build/$(REPO).node.js
cp src/*.d.ts build/