forked from dimitri-koenig/simple-vertec-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 797 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (26 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
BABEL = ./node_modules/.bin/babel
SRC = $(wildcard lib/*.js)
all: clean install test build
build: ; @echo 'Making build...'
@mkdir -p node/
@for path in $(SRC); do \
file=`basename $$path`; \
NODE_ENV=production BABEL_ENV=production $(BABEL) "lib/$$file" > "node/$$file"; \
done
test: ; @echo 'Running tests...'
@NODE_ENV=test ./node_modules/.bin/babel-node ./node_modules/.bin/_mocha test
install: ; @echo 'Installing packages...'
@npm install
clean: ; @echo 'Cleaning up...'
@rm -fr node
publish: ; @echo 'Publishing...'
@make
@git push --tags
@npm publish
publish-beta: ; @echo 'Publishing beta...'
@make
@git push --tags
@npm publish --tag beta
watch: ; @echo 'Running test watch task...'
nodemon -w test -w lib -e js -x npm test
.PHONY: all clean install test build