-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
63 lines (48 loc) · 1.51 KB
/
Makefile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
usage:
@echo ''
@echo 'Core tasks : Description'
@echo '-------------- : -----------'
@echo 'make setup : Install all necessary dependencies'
@echo 'make dev : Start the local development server'
@echo 'make grunt : Run grunt tasks'
@echo 'make reload : Rebuild all the dependencies and launch a watcher'
@echo ''
@echo 'Additional tasks : Description'
@echo '-------------- : -----------'
@echo 'make clean : Clean up any *.tmp files from bad NPM installs, old packages'
@echo 'make reset : Reinstall all necessary dependencies'
@echo 'make test : Rebuild all the assets and run test suites'
@echo ''
NPM_ARGS = --registry https://registry.npmjs.org
setup:
npm $(NPM_ARGS) install
.PHONY: setup
clean:
rm -rf *.tmp *.tar.gz
grunt clean
rm -rf node_modules
.PHONY: clean
grunt:
grunt
.PHONY: grunt
dev:
node ./dest/app.js
.PHONY: dev
reset:
npm cache clean
$(MAKE) clean setup
.PHONY: reset
reload:
grunt
grunt watch
.PHONY: reload
test:
grunt
@./node_modules/.bin/mocha \
--require should \
--reporter $(REPORTER) \
--growl \
$(TESTS)
.PHONY: test
TESTS = test/tmp/**/*.js
REPORTER = spec