Closed kentcdodds closed 6 years ago
After thinking about it more. I think that I'd prefer this live in nps-utils
. And I'm thinking that we could do something like:
const {mergeScripts, runAll} = require('nps-utils')
const npsConfig = {
scripts: {/* scripts */},
}
mergeScripts(npsConfig, {
test: runAll('test.*'),
validate: runAllConcurrent('validate.*'),
})
module.exports = npsConfig
There would have to be some fancy logic to make this work, but I think that's the best API.
Basically so people transitioning from
npm-run-all
can have something for their scripts that are like:npm-run-all test:*
Could be something like:
By
runs ___
I don't mean it actually runs those scripts, it simply returns a script that would run those things :)Anyone wanna take this one? The biggest challenge will be figuring out what the scripts are. Thinking that it may be better to support this in
nps
itself actually... Thoughts welcome!