-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (41 loc) · 1.33 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
# One command aT the time
MAKEFLAGS = --jobs=1
# Fix color output until TravisCI fixes https://github.com/travis-ci/travis-ci/issues/7967
export FORCE_COLOR = true
.PHONY: build watch lint fix test-only test test-ci-coverage publish bootstrap clean clean-lib clean-all
build: clean clean-lib
./node_modules/.bin/gulp build
watch: clean clean-lib
BABEL_ENV=development ./node_modules/.bin/gulp watch
lint:
./node_modules/.bin/eslint '*.js' 'scripts/**/*.js' 'packages/*/src/**/*.js' 'packages/*/test/*.test.js' --format=codeframe
fix:
./node_modules/.bin/eslint '*.js' 'scripts/**/*.js' 'packages/*/src/**/*.js' 'packages/*/test/*.test.js' --fix --format=codeframe
test-only:
BABEL_ENV=test ./scripts/test.sh
test: lint test-only
test-ci-coverage:
@set -e
BABEL_COVERAGE=true BABEL_ENV=test make bootstrap
BABEL_ENV=test ./node_modules/.bin/nyc ./scripts/test.sh
./node_modules/.bin/nyc report --reporter=json
./node_modules/.bin/codecov -f coverage/coverage-final.json
publish:
make clean-lib
BABEL_ENV=production make build
make test
./node_modules/.bin/lerna publish
make clean
bootstrap: clean
yarn --ignore-engines
./node_modules/.bin/lerna bootstrap -- --ignore-engines
make build
clean:
rm -rf coverage
rm -rf .nyc_output
clean-lib:
rm -rf packages/*/lib
clean-all:
rm -rf node_modules
rm -rf package-lock.json
make clean