-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: new core task for automatically running npm update/install #569
Comments
-1 |
I agree that However, I try to keep The Joel Test in mind when working on projects, and number 2 is:
|
I don't like the idea of it happening magically behind the scenes, but can see it being helpful to mention that |
We should mention it to the user, have heard complaint about that before, but we should never do it automagically. |
There are a few reasons I'm against this idea.
|
This is not grunt's job--Grunt is not an "all purpose" build engine, just a web/javascript build engine. Orchestrate npm, grunt, and anything else you want to do behind a shell/batch script to get to "build in one step" if you need it. |
Fair enough. |
If this is already possible then please tell me how (it's very hard to find anything specific if you just search for "grunt task npm update"). :P
It would be terrific if grunt could be configured to automatically run
npm install
and perhaps evennpm update
. I'm not sure what sort of smarts or options we'd need to stop it from running on every single build, but it definitely needs to happen at least once.This can't really be done as a grunt plugin, because then it would need the developer to run
npm update
which defeats the purpose of this request.This would facilitate the easy use of grunt plugins, without the extra step (provided package.json is properly defined).
proposed behaviour
npm install
npm install
I'm not sure when it would be best to run
npm update
, maybe have a task option that lets the developer choose the frequency or something?The text was updated successfully, but these errors were encountered: