r/programming • u/codeaddslife • Jan 19 '16
Why I Left Gulp and Grunt for npm Scripts
https://medium.com/@housecor/why-i-left-gulp-and-grunt-for-npm-scripts-3d6853dd22b82
u/flying-sheep Jan 19 '16 edited Jan 19 '16
2
Jan 19 '16
Q: How do you know if someone uses npm scripts instead of grunt or gulp?
A: Don't worry, they'll tell you.For real, goddamn
2
u/AngularBeginner Jan 19 '16
I think it's much more difficult to handle the tasks and their dependencies with NPM than it would be with Gulp. With Gulp you can just clearly state that a task depends on another - with NPM you'd have to call the other task explicitly, then do your own task. And I wonder how command line arguments are passed on when NPM scripts call each other - is this happening automatically, or do you always need to pass them on?
For simple cases NPM is likely enough. For more complex builds and tasks I'd still favor Gulp.
1
u/lennoff Jan 19 '16
people rediscover npm scripts again, and again... substacks original article from 2013
-1
5
u/[deleted] Jan 19 '16
Ah you're so special.