-
Notifications
You must be signed in to change notification settings - Fork 1
/
package-scripts.js
27 lines (27 loc) · 1.04 KB
/
package-scripts.js
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
// this must be module.exports style
module.exports = {
scripts: {
build: {
default: 'nps clean && nps lint && nps test && nps build.es5 && nps flow.copySource',
quick: 'nps clean && nps build.es5 && nps flow.copySource',
es5: 'babel --copy-files --out-dir dist --ignore __tests__ src',
},
release: 'nps build && standard-version',
lint: {
default: 'concurrently "nps lint.js" "nps flow"',
js: 'eslint src',
},
test: {
default: 'LOGLEVEL=silent jest --no-watchman',
watch: 'LOGLEVEL=silent jest --watch',
coverageReport: 'LOGLEVEL=silent jest --coverage',
},
clean: 'rimraf dist coverage flow-coverage',
flow: {
default: 'flow --show-all-errors; test $? -eq 0 -o $? -eq 2',
typed: 'flow-typed update --skip',
coverageReport: 'flow-coverage-report -i \'src/**/*.js\' -t html -t text',
copySource: 'flow-copy-source src dist',
},
},
};