Skip to content

Commit f88e57c

Browse files
committed
simplify makefile, update node versions for travis
1 parent e04b644 commit f88e57c

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ language: node_js
22
node_js:
33
- "0.10"
44
- "0.12"
5-
- "iojs-v2.1.0"
65
- "4"
76
sudo: false
87
after_success: npm run coveralls

Makefile

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1+
export PATH := ./node_modules/.bin/:$(PATH):./bin/
2+
13
PACKAGE = asyncjs
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"
6-
JSCS = "$(CWD)/node_modules/.bin/jscs"
74
XYZ = node_modules/.bin/xyz --repo git@github.com:caolan/async.git
85

96
BUILDDIR = dist
@@ -14,17 +11,17 @@ all: lint test clean build
1411
build: $(wildcard lib/*.js)
1512
mkdir -p $(BUILDDIR)
1613
cp $(SRC) $(BUILDDIR)/async.js
17-
cd $(BUILDDIR) && $(UGLIFY) async.js -mc --source-map async.min.map -o async.min.js
14+
cd $(BUILDDIR) && uglifyjs async.js -mc --source-map async.min.map -o async.min.js
1815

1916
test:
20-
$(NODEUNIT) test
17+
nodeunit test
2118

2219
clean:
2320
rm -rf $(BUILDDIR)
2421

2522
lint:
26-
$(JSHINT) $(SRC) test/*.js mocha_test/* perf/*.js
27-
$(JSCS) $(SRC) test/*.js mocha_test/* perf/*.js
23+
jshint $(SRC) test/*.js mocha_test/* perf/*.js
24+
jscs $(SRC) test/*.js mocha_test/* perf/*.js
2825

2926
.PHONY: test lint build all clean
3027

0 commit comments

Comments
 (0)