-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage-scripts.js
More file actions
40 lines (27 loc) · 848 Bytes
/
package-scripts.js
File metadata and controls
40 lines (27 loc) · 848 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
34
35
36
37
38
39
40
const concurrent = require('nps-utils').concurrent.nps
const series = require('nps-utils').series.nps
const nps = {}
exports.scripts = nps
nps.develop = concurrent('watch.develop', 'serve.develop')
nps.produce = concurrent('watch.produce', 'serve.produce')
nps.release = series('clean', 'build.produce')
nps.clean = 'rimraf public/*'
nps.lint = concurrent('eslint', 'stylelint')
nps.test = series('jest')
nps.build = {
develop: 'rollup --config',
produce: 'rollup --config',
}
nps.watch = {
develop: 'rollup --config --watch',
produce: 'rollup --config --watch',
}
nps.nodemon = 'nodemon -e js -w webpack -x webpack-dev-server --hot --develop'
nps.stylelint = {
default: 'stylelint source/**/*.ss',
fix: 'stylelint --fix source/**/*.ss',
}
nps.eslint = {
default: 'eslint source webpack',
fix: 'eslint --fix source webpack',
}