-
Notifications
You must be signed in to change notification settings - Fork 1.3k
If watching, initially compile #1369
Comments
We have no plans to do this. We believe it's an unnecessary compilation to our CLI for a niche usecase. Your current solution is fine. |
Who is "we"? Sure you don't want to open this up to community discussion since it seems like a rather easy change that I'm sure a lot of people who use npm scripts would really appreciate? |
We are the maintainers of the this project.
Every new feature adds complexity and a maintenance burden for us. We weigh up the usefulness, and demand for a feature against the complexity, and ongoing support cost.
To be frank, if you're going to give the convenience of asset pipelines for something more low level like npm scripts, it's unreasonable to expect package authors to take on the work of making things convenient again.
What you're asking for is very trivially achieved using simple scripting.
|
Not DRY. Meh. |
Both sides seem reasonable to me. @corysimmons: You can remain DRY by leveraging NPM's custom script arguments:
|
Still looking forward to this feature. Would be handy if watch multiple files across different paths. Could save lots of lines in package.json. Still appreciate the effort from maintainers and communities. |
I can't understand why this feature isn't enabled by default, let alone not available. Is there a single scenario where an initial build is unwanted? |
"watch" should be building first then waiting for the updates to rebuild. |
No -ldl for FreeBSD
I'm using the cli in npm scripts. I want to watch stuff, but when I do, it doesn't initially trigger. It would be nice if it did, or if you're concerned about XYZ, at least offer a flag like
--initial
.This would make it so I didn't have to have 2 scripts:
❌
The text was updated successfully, but these errors were encountered: