-
Notifications
You must be signed in to change notification settings - Fork 7
/
package-scripts.js
37 lines (37 loc) · 1012 Bytes
/
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
module.exports = {
scripts: {
test: {
default: {
script: 'nyc ava',
description: 'Runs AVA with nyc (which is configured in package.json)',
},
watch: {
description: 'Run AVA in watch mode',
script: 'ava -w',
},
},
build: {
description: 'Transpiles es2015 in src to lib for publishing',
script: 'babel -d lib/ src/',
},
lint: {
description: 'lint the entire project',
script: 'eslint .',
},
reportCoverage: {
description: 'Report coverage stats to codecov. This should be run after the `test` script',
script: 'nyc report -r lcovonly && codecov',
},
docs: {
description: 'Checks Atomdoc to make sure it shows the most helpful information',
script: 'atomdoc src',
},
validate: {
description: 'This runs several scripts to make sure things look good before committing',
script: 'nps lint build test',
},
},
options: {
silent: false,
},
};