-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (32 loc) · 950 Bytes
/
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
webpack = node_modules/.bin/webpack
jshint = node_modules/.bin/jshint
mocha = node_modules/.bin/mocha
browserify = node_modules/.bin/browserify
http-server = node_modules/.bin/http-server
codeclimate-test-reporter = node_modules/.bin/codeclimate-test-reporter
build:
@$(webpack)
@$(webpack) --config .config/production.js
test:
@$(mocha) -u tdd -R mocha-spec-cov -r blanket
test-browser:
@mkdir -p tmp
@$(browserify) test/index.js -s formulajs > tmp/test.js
@$(http-server) -p 8088 -s -o
test-watch:
@$(mocha) -u tdd -R min -w
lint:
@$(jshint) lib/*.js
coverage:
@mkdir -p coverage
@$(mocha) -r blanket -u tdd -R mocha-lcov-reporter > coverage/lcov.info
@$(mocha) -u tdd -R html-cov -r blanket > coverage/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