-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage-scripts.js
More file actions
29 lines (22 loc) · 789 Bytes
/
package-scripts.js
File metadata and controls
29 lines (22 loc) · 789 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
const { series, concurrent } = require('nps-utils');
module.exports = {
scripts: {
all: series.nps('build', 'apps-and-watch'),
appsAndWatch: concurrent.nps('apps', 'watch'),
apps: concurrent.nps('api'),
api: 'nodemon api.js',
watch: 'gulp watch',
clean: 'gulp clean',
build: 'gulp build',
publishAssets: 'gulp publish',
lintJs: 'gulp xo',
lintMd: 'gulp remark',
lint: concurrent.nps('lint-js', 'lint-md'),
// <https://github.com/kentcdodds/nps-utils/issues/24>
pretest: concurrent.nps('lint', 'build'),
test: 'ava',
testCoverage: series('nps pretest', 'nyc ava'),
testUpdateSnapshots: series('nps pretest', 'ava --update-snapshots'),
coverage: 'nyc report --reporter=text-lcov > coverage.lcov && codecov'
}
};