forked from ramda/ramda
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
39 lines (25 loc) · 757 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
UGLIFY = node_modules/.bin/uglifyjs
XYZ = node_modules/.bin/xyz --repo [email protected]:ramda/ramda.git --script scripts/prepublish
SRC = $(shell find src -name '*.js')
dist/ramda.js: scripts/build scripts/header scripts/template.js $(SRC)
git checkout -- '$@'
scripts/header >ramda.js.tmp
'$<' --complete >>ramda.js.tmp
mv ramda.js.tmp '$@'
dist/ramda.min.js: dist/ramda.js scripts/header
scripts/header >'$@'
$(UGLIFY) --compress --mangle <'$<' >>'$@'
.PHONY: clean
clean:
rm -f -- dist/ramda.js ramda.js.tmp
.PHONY: lint
lint:
.PHONY: release-major release-minor release-patch
release-major release-minor release-patch:
@$(XYZ) --increment $(@:release-%=%)
.PHONY: setup
setup:
npm install
.PHONY: test
test: dist/ramda.js
npm test