-
Notifications
You must be signed in to change notification settings - Fork 9
/
.npmscriptrc
34 lines (30 loc) · 1.03 KB
/
.npmscriptrc
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
/**
* You can provide comments in `.npmscriptrc`
*/
{
"build":
{
"babel": { "source": "src", "destination": "dist" }
},
"publish":
{
"prepublish": { "scripts": ["npm run eslint", "npm run test", "npm run build"] }
},
"test":
{
// Provides a `coverage` handling command that is appended when running on Travis CI.
"travis":
{
"istanbul": { "command": "cover", "options": ["--report lcovonly", "--include-all-sources --root src"] },
"report": "./node_modules/.bin/codecov"
},
"istanbul": { "command": "cover", "options": ["--include-all-sources --root src"] },
"mocha": { "source": "./test/src", "options": [ "-u tdd", "--compilers js:babel-register", "-t 120000 --recursive" ] }
},
// For local developer testing.
"dev_test":
{
"istanbul": { "command": "cover", "options": ["--include-all-sources --root src"] },
"mocha": { "source": "./test/src", "options": ["-u tdd", "--compilers js:babel-register", "-t 120000 --recursive"] }
}
}