You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
Running npm run build will not search recursively inside child folders and so will not run npm run build:client. Is it a wanted comportment?
In my mind, running npm run stuff would run all subtasks, even with more than 1 :.
Hey, this is something I honestly waffled on, and decided not to support it right out the gate.
The reasons I held back:
I figured it was easier to add this later than to take it away later
The :'s are there as namespaces, so for instance if I have test:unit and test:cover:unit, conceptually that is just how I want it (the latter running code coverage instrumentation), but I wouldn't want to run test and have it also repetitively pick up the coverage stuff; when I reviewed my huge cache of npm scripts, I saw a lot of cases like this that made me want to be less aggressive)
The more scripts you have the more ordering is likely to matter, and right now the implicit batching just relies on unspecified glob-order, so before considering this I think I'd really want Order default-index/batch parent scripts by package.json order #2 to be included
Activity
searls commentedon Apr 30, 2016
Hey, this is something I honestly waffled on, and decided not to support it right out the gate.
The reasons I held back:
:'s are there as namespaces, so for instance if I havetest:unitandtest:cover:unit, conceptually that is just how I want it (the latter running code coverage instrumentation), but I wouldn't want to runtestand have it also repetitively pick up the coverage stuff; when I reviewed my huge cache of npm scripts, I saw a lot of cases like this that made me want to be less aggressive)texastoland commentedon Jul 26, 2018
I'll PR today.
I think
test:covershould have anindexlike my example in #59.💯 breaking change (
2.x).Glob order is guaranteed lexicographic so
build:step-0,build:step-1, etc but I should write tests against it.I envision these kinds of scripts running in parallel like
lint:cssandlint:js. Otherwise it feels like reinventing Grunt.