Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 39 lines (29 sloc) 0.978 kB
54f563a @caolan added makefile with lint, test and build targets
authored
1 PACKAGE = asyncjs
a73eef3 @aearly cleaning up build files
aearly authored
2 CWD := $(shell pwd)
3 NODEUNIT = "$(CWD)/node_modules/.bin/nodeunit"
4 UGLIFY = "$(CWD)/node_modules/.bin/uglifyjs"
5 JSHINT = "$(CWD)/node_modules/.bin/jshint"
9d55efe @megawac :scroll: Manadate style guide with jscs
megawac authored
6 JSCS = "$(CWD)/node_modules/.bin/jscs"
a3b3ff3 @megawac Setup publish make task [ci skip]
megawac authored
7 XYZ = node_modules/.bin/xyz --repo git@github.com:caolan/async.git
54f563a @caolan added makefile with lint, test and build targets
authored
8
5645eee @megawac Revert build dir to dist/ and add async.js to folder
megawac authored
9 BUILDDIR = dist
10 SRC = lib/async.js
54f563a @caolan added makefile with lint, test and build targets
authored
11
33ed04c @megawac Source map output
megawac authored
12 all: lint test clean build
54f563a @caolan added makefile with lint, test and build targets
authored
13
14 build: $(wildcard lib/*.js)
15 mkdir -p $(BUILDDIR)
5645eee @megawac Revert build dir to dist/ and add async.js to folder
megawac authored
16 cp $(SRC) $(BUILDDIR)/async.js
33ed04c @megawac Source map output
megawac authored
17 cd $(BUILDDIR) && $(UGLIFY) async.js -mc --source-map async.min.map -o async.min.js
54f563a @caolan added makefile with lint, test and build targets
authored
18
19 test:
ef0ed4d @caolan use uglify, nodeunit and nodelint directly from node_modules
authored
20 $(NODEUNIT) test
54f563a @caolan added makefile with lint, test and build targets
authored
21
22 clean:
23 rm -rf $(BUILDDIR)
24
25 lint:
5a0aa3e @aearly added not about mocha migration, fixed linting
aearly authored
26 $(JSHINT) $(SRC) test/*.js mocha_test/* perf/*.js
27 $(JSCS) $(SRC) test/*.js mocha_test/* perf/*.js
54f563a @caolan added makefile with lint, test and build targets
authored
28
a73eef3 @aearly cleaning up build files
aearly authored
29 .PHONY: test lint build all clean
a3b3ff3 @megawac Setup publish make task [ci skip]
megawac authored
30
31
32 .PHONY: release-major release-minor release-patch
33 release-major release-minor release-patch: all
bd9e6da @megawac Add package manager syncing to make publish
megawac authored
34 ./support/sync-package-managers.js
66a41f4 @aearly also add updated package manager jsons on release
aearly authored
35 git add --force *.json
70ae2fb @megawac Build distribution file to lib/async.min.js
megawac authored
36 git add --force $(BUILDDIR)
230d447 @aearly ignore errors in minified build commit
aearly authored
37 git commit -am "update minified build"; true
323686a @aearly dont silence xyz command
aearly authored
38 $(XYZ) --increment $(@:release-%=%)
Something went wrong with that request. Please try again.