-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-scripts.js
More file actions
42 lines (41 loc) · 1.2 KB
/
package-scripts.js
File metadata and controls
42 lines (41 loc) · 1.2 KB
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
const nps = require('nps-utils')
module.exports = {
scripts: {
bundle: {
description: `bundle the uh, bundle`,
script: `webpack`
},
precommit: {
description: `do stuff before committing (use --no-verify to skip -- at your peril)`,
script: nps.concurrent.nps(`bundle`, `lint`)
},
serve: {
description: `serve up application locally`,
script: `webpack-dev-server --inline --progress`
},
build: {
description: `build all-the-things`,
// ostensibly this will contain more than one thing
script: nps.concurrent.nps(`bundle`)
},
test: {
description: `right now there are no tests, so be wary`,
script: `echo "let's remember to add tests"`
},
lint: {
description: `wish this was eslint, 'cause the rules here are loose`,
script: `tslint source/*/*.ts*`
},
dependencies: {
script: `nps dependencies.graph`,
description: `do stuff relative to dependencies`,
graph: {
description: `draw a dependency graph, or whatever`,
script: nps.series(
`madge source/index.ts --image dependency-graph.svg`,
`svgo dependency-graph.svg`
)
}
}
}
}