refactor: move nps build to package-scripts
MODIFY
templates/app/package-scripts.js.ejs
templates/app/package-scripts.js.ejs
@@ -50,6 +50,8 @@ test = concurrent({
})
if (process.env.CI) test = series(mkdirp('reports'), test)
+<%_ } else if (ts) { _%>
+let test = concurrent({...linters, build: 'nps build'})
<%_ } else { _%>
let test = concurrent(linters)
<%_ } _%>

MODIFY
test/run.js
test/run.js
@@ -32,11 +32,5 @@ module.exports = (type, features) => {
ctx.dir = dir
process.env = npmPath.env({env: process.env})
ctx.expectation = `build ${type} with ${features}`
-
- switch (features) {
- case 'typescript':
- sh.exec('nps build')
- break
- }
})
}

refactor: move nps build to package-scripts