| OLD | NEW |
| (Empty) | |
| 1 export PATH := ./node_modules/.bin/:$(PATH):./bin/ |
| 2 |
| 3 PACKAGE = asyncjs |
| 4 XYZ = node_modules/.bin/xyz --repo git@github.com:caolan/async.git |
| 5 |
| 6 BUILDDIR = dist |
| 7 SRC = lib/async.js |
| 8 |
| 9 all: lint test clean build |
| 10 |
| 11 build: $(wildcard lib/*.js) |
| 12 mkdir -p $(BUILDDIR) |
| 13 cp $(SRC) $(BUILDDIR)/async.js |
| 14 uglifyjs $(BUILDDIR)/async.js -mc \ |
| 15 --source-map $(BUILDDIR)/async.min.map \ |
| 16 -o $(BUILDDIR)/async.min.js |
| 17 |
| 18 test: |
| 19 nodeunit test |
| 20 |
| 21 clean: |
| 22 rm -rf $(BUILDDIR) |
| 23 |
| 24 lint: |
| 25 jshint $(SRC) test/*.js mocha_test/* perf/*.js |
| 26 jscs $(SRC) test/*.js mocha_test/* perf/*.js |
| 27 |
| 28 .PHONY: test lint build all clean |
| 29 |
| 30 |
| 31 .PHONY: release-major release-minor release-patch |
| 32 release-major release-minor release-patch: all |
| 33 ./support/sync-package-managers.js |
| 34 git add --force *.json |
| 35 git add --force $(BUILDDIR) |
| 36 git commit -am "update minified build"; true |
| 37 $(XYZ) --increment $(@:release-%=%) |
| OLD | NEW |