-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Changes build target to ./build/ - Adds `make watch` - Adds duo.json to clean list Signed-off-by: Christopher Rogers <chrissrogers@gmail.com>
- Loading branch information
1 parent
b5ab08d
commit 794ac14
Showing
4 changed files
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
BIN = node_modules/.bin | ||
DUO = $(BIN)/duo | ||
MINIFY = $(BIN)/uglifyjs | ||
WATCH = $(BIN)/wr | ||
DELEGATE = test test-browser test-sauce test-coverage | ||
|
||
recurly.js: node_modules | ||
@$(DUO) --global recurly --stdout index.js > recurly.js | ||
@$(MINIFY) recurly.js --output recurly.min.js | ||
BUILD = ./build | ||
WATCH_FILES = lib index.js component.json Makefile | ||
|
||
build: node_modules | ||
@mkdir -p $(BUILD) | ||
@$(DUO) --quiet --stdout --global recurly index.js > $(BUILD)/recurly.js | ||
@$(MINIFY) $(BUILD)/recurly.js --output $(BUILD)/recurly.min.js | ||
|
||
watch: node_modules | ||
@$(WATCH) make $(WATCH_FILES) | ||
|
||
node_modules: package.json | ||
@npm install --silent | ||
|
||
$(DELEGATE): recurly.js | ||
$(DELEGATE): build | ||
@cd test && make $@ | ||
|
||
clean: | ||
@rm -rf node_modules recurly.js recurly.min.js | ||
@rm -rf node_modules components/duo.json $(BUILD) | ||
@cd test && make $@ | ||
|
||
.PHONY: recurly.js | ||
.PHONY: clean test test-browser | ||
.PHONY: test-sauce test-coverage | ||
.PHONY: clean build test test-browser test-sauce test-coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
"jade": "1.x", | ||
"mocha-phantomjs": "3.5.2", | ||
"gravy": "0.x", | ||
"debug": "0.x" | ||
"debug": "0.x", | ||
"wr": "*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters