mirror of
https://github.com/jimeh/node-base58.git
synced 2026-02-18 23:26:40 +00:00
Update Makefile to auto-build *.js file before tests and such
This commit is contained in:
24
Makefile
24
Makefile
@@ -8,17 +8,31 @@ REPORTER = spec
|
||||
TEST_DIR = ./test
|
||||
TEST_FILES = *_test.coffee
|
||||
|
||||
build:
|
||||
coffee -o $(TARGET) -c $(SOURCE)
|
||||
build: coffee-dep
|
||||
coffee -b -o $(TARGET) -c $(SOURCE)
|
||||
|
||||
watch:
|
||||
coffee -o $(TARGET) -cw $(SOURCE)
|
||||
watch: coffee-dep
|
||||
coffee -b -o $(TARGET) -cw $(SOURCE)
|
||||
|
||||
test:
|
||||
remove-js:
|
||||
rm -fr lib/
|
||||
|
||||
publish: npm-dep build
|
||||
npm publish
|
||||
|
||||
test: build
|
||||
mocha --reporter $(REPORTER) \
|
||||
--compilers coffee:coffee-script \
|
||||
$(shell find $(TEST_DIR) -name $(TEST_FILES))
|
||||
|
||||
npm-dep:
|
||||
test `which npm` || echo 'You need npm to do npm install... makes sense?'
|
||||
|
||||
coffee-dep:
|
||||
test `which coffee` || echo 'You need to have CoffeeScript in your' \
|
||||
'PATH.\nPlease install it using `brew install coffee-script` or' \
|
||||
'`npm install coffee-script`.'
|
||||
|
||||
|
||||
.SILENT:
|
||||
.PHONY: build watch test
|
||||
|
||||
Reference in New Issue
Block a user