forked from sutoiku/formula.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 708 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 708 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
36
37
38
webpack = node_modules/.bin/webpack
jshint = node_modules/.bin/jshint
mocha = node_modules/.bin/mocha
coveralls = node_modules/.bin/coveralls
build:
@$(webpack)
@$(webpack) --standalone
@$(webpack) --prod
@$(webpack) --prod --standalone
test:
@$(mocha) -u tdd -r blanket
test-watch:
@$(mocha) -u tdd -R min -w
lint:
@$(jshint) lib/*.js
coveralls:
@$(mocha) -r blanket -u tdd -R mocha-lcov-reporter | $(coveralls)
coverage:
@$(mocha) -u tdd -R html-cov -r blanket > coverage-report.html
package: clean build
rm -rf *.tgz || true
@npm pack
watch:
@$(mocha) -u tdd -R mocha-spec-cov -r blanket -w
clean:
@rm -rf build/
@rm -f coverage-report.html
.PHONY: build clean coverage test watch