Skip to content

Commit

Permalink
Revert build dir to dist/ and add async.js to folder
Browse files Browse the repository at this point in the history
  • Loading branch information
megawac committed Jul 20, 2015
1 parent b0fe157 commit 5645eee
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Expand Up @@ -6,13 +6,15 @@ 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 = lib
BUILDDIR = dist
SRC = lib/async.js

all: clean test build

build: $(wildcard lib/*.js)
mkdir -p $(BUILDDIR)
$(UGLIFY) lib/async.js -mc > $(BUILDDIR)/async.min.js
$(UGLIFY) $(SRC) -mc > $(BUILDDIR)/async.min.js
cp $(SRC) $(BUILDDIR)/async.js

test:
$(NODEUNIT) test
Expand All @@ -21,8 +23,8 @@ clean:
rm -rf $(BUILDDIR)

lint:
$(JSHINT) lib/*.js test/*.js perf/*.js
$(JSCS) lib/*.js test/*.js perf/*.js
$(JSHINT) $(SRC) test/*.js perf/*.js
$(JSCS) $(SRC) test/*.js perf/*.js

.PHONY: test lint build all clean

Expand Down

0 comments on commit 5645eee

Please sign in to comment.