Skip to content

Commit

Permalink
simplify makefile, update node versions for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
aearly committed Oct 25, 2015
1 parent e04b644 commit f88e57c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs-v2.1.0"
- "4"
sudo: false
after_success: npm run coveralls
Expand Down
15 changes: 6 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
export PATH := ./node_modules/.bin/:$(PATH):./bin/

PACKAGE = asyncjs
CWD := $(shell pwd)
NODEUNIT = "$(CWD)/node_modules/.bin/nodeunit"
UGLIFY = "$(CWD)/node_modules/.bin/uglifyjs"
JSHINT = "$(CWD)/node_modules/.bin/jshint"
JSCS = "$(CWD)/node_modules/.bin/jscs"
XYZ = node_modules/.bin/xyz --repo git@github.com:caolan/async.git

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

test:
$(NODEUNIT) test
nodeunit test

clean:
rm -rf $(BUILDDIR)

lint:
$(JSHINT) $(SRC) test/*.js mocha_test/* perf/*.js
$(JSCS) $(SRC) test/*.js mocha_test/* perf/*.js
jshint $(SRC) test/*.js mocha_test/* perf/*.js
jscs $(SRC) test/*.js mocha_test/* perf/*.js

.PHONY: test lint build all clean

Expand Down

0 comments on commit f88e57c

Please sign in to comment.