forked from esdoc/esdoc
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.npmscriptrc
More file actions
33 lines (28 loc) · 1004 Bytes
/
.npmscriptrc
File metadata and controls
33 lines (28 loc) · 1004 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
30
31
32
33
/**
* You can provide comments in `.npmscriptrc`
*/
{
"build":
{
"babel": { "source": "src", "destination": "out/src" },
// Copy templates
"copy": [{ "source": "./src/Publisher/Builder/template", "destination": "./out/src/Publisher/Builder/template/" }],
// chmod the CLI entry point to executable.
"chmod": [{ "path": "./out/src/ESDocCLI.js", "mode": "755" }]
},
"publish":
{
"prepublish": { "scripts": ["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"] },
"report": "./node_modules/.bin/codecov"
},
"istanbul": { "command": "cover", "options": ["--include-all-sources --root src -x '**/template/**'"] },
"mocha": { "source": "./test/src", "options": ["--compilers js:babel-register", "-t 120000 --recursive"] }
}
}