-
Notifications
You must be signed in to change notification settings - Fork 2
/
package-scripts.js
45 lines (43 loc) 路 1.12 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable prefer-destructuring */
const npsUtils = require('nps-utils');
const concurrent = npsUtils.concurrent;
module.exports = {
scripts: {
contributors: {
add: {
description: 'When new people contribute to the project, run this',
script: 'all-contributors add',
},
generate: {
description: 'Update the badge and contributors table',
script: 'all-contributors generate',
},
},
commit: {
description: 'Commit changes using commitizen',
script: 'git-cz',
},
lint: {
description: 'lint the entire project with eslint',
script: 'eslint .',
},
test: {
default: {
description: 'Collect code coverage',
script: 'jest --coverage',
},
watch: {
description: 'Run test in interactive watch mode',
script: 'jest --watch',
},
},
validate: {
description: 'Run validation to make sure everything is up to standard',
script: concurrent.nps('lint', 'test'),
},
},
options: {
logLevel: 'warn',
},
};