Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (18 sloc) 0.542 kb
54f563a Caolan McMahon added makefile with lint, test and build targets
authored
1 PACKAGE = asyncjs
2 NODEJS = $(if $(shell test -f /usr/bin/nodejs && echo "true"),nodejs,node)
4cecd8a Jonathan Stewmon updated package.json to specify devDependencies. updated Makefile to use...
jstewmon authored
3 CWD := $(shell pwd)
ef0ed4d Caolan McMahon use uglify, nodeunit and nodelint directly from node_modules
authored
4 NODEUNIT = $(CWD)/node_modules/nodeunit/bin/nodeunit
5 UGLIFY = $(CWD)/node_modules/uglify-js/bin/uglifyjs
6 NODELINT = $(CWD)/node_modules/nodelint/nodelint
54f563a Caolan McMahon added makefile with lint, test and build targets
authored
7
8 BUILDDIR = dist
9
4cecd8a Jonathan Stewmon updated package.json to specify devDependencies. updated Makefile to use...
jstewmon authored
10 all: clean test build
54f563a Caolan McMahon added makefile with lint, test and build targets
authored
11
12 build: $(wildcard lib/*.js)
13 mkdir -p $(BUILDDIR)
ef0ed4d Caolan McMahon use uglify, nodeunit and nodelint directly from node_modules
authored
14 $(UGLIFY) lib/async.js > $(BUILDDIR)/async.min.js
54f563a Caolan McMahon added makefile with lint, test and build targets
authored
15
16 test:
ef0ed4d Caolan McMahon use uglify, nodeunit and nodelint directly from node_modules
authored
17 $(NODEUNIT) test
54f563a Caolan McMahon added makefile with lint, test and build targets
authored
18
19 clean:
20 rm -rf $(BUILDDIR)
21
22 lint:
ef0ed4d Caolan McMahon use uglify, nodeunit and nodelint directly from node_modules
authored
23 $(NODELINT) --config nodelint.cfg lib/async.js
54f563a Caolan McMahon added makefile with lint, test and build targets
authored
24
25 .PHONY: test build all
Something went wrong with that request. Please try again.