-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 799 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 799 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
.PHONY : watch build test npm clean
BIN="`npm bin`"
watch : npm clean
@$(BIN)/gulp
build : npm clean
@$(BIN)/gulp build
publish : build
cd public && git add -A && git commit -m "`date -R`" && git push
test :
@if [ -z $$KARMA_BROWSERS ]; then \
KARMA_BROWSERS=PhantomJS; \
fi; \
node_modules/karma/bin/karma start tests/test.unit.conf.coffee --browsers $$KARMA_BROWSERS
npm :
@echo "Check npm package update..."
@hash npm || (echo "Install npm first" && exit 1)
@CHECK_FILE=package.json STATE_FOLDER=node_modules bash scripts/update_manager.sh check; \
if [ $$? -eq 1 ]; then \
npm install \
&& npm update \
&& CHECK_FILE=package.json STATE_FOLDER=node_modules bash scripts/update_manager.sh update \
; \
fi
clean :
@echo "Start clean public files..."
@-rm -rf public/*