-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathpackage-scripts.js
41 lines (41 loc) · 1.21 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
module.exports = {
scripts: {
build: {
description: 'Run babel to compile files',
script: 'babel src --out-dir dist'
},
prepublish: {
description: 'Validate and build before release',
script: 'nps build'
},
validate: {
description: 'Runs code formatting, linting and tests',
script: 'nps lint test'
},
format: {
description: 'Format code with prettier-eslint',
script: 'prettier-eslint --write "{src,test}/**/*.js"'
},
lint: {
description: 'Run eslint to ensure code is correctly formatted',
script: 'eslint src test'
},
test: {
description: 'Run tests, using stored fixtures for Sentry responses',
script: 'VCR_MODE=playback jest'
},
'test:record': {
description: 'Run tests + regenerate fixtures with real Sentry instance',
script: 'rm ./test/fixtures/replayer/* && VCR_MODE=record jest'
},
'test:tav': {
description: 'Run tests against all supported major versions',
script: 'VCR_MODE=playback tav'
},
'test:tav:record': {
description:
'Run tests against all supported major versions + regenerate fixtures',
script: 'VCR_MODE=record tav'
}
}
}