Permalink
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (25 sloc) 757 Bytes
UGLIFY = node_modules/.bin/uglifyjs
XYZ = node_modules/.bin/xyz --repo git@github.com: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