Live data from Hacker News

Why we should stop using Grunt and Gulp

blog.keithcirkel.co.uk

31–40 of 108 posts

Re: Why we should stop using Grunt and Gulp

#31
post #10

Why don't people just use make?

One reason might be so that contributors on Windows don't have to install cygwin and nobody has to worry about the differences between various flavors of make. If you want things to work cross-platform, it's easier to start with a portable language.

Re: Why we should stop using Grunt and Gulp

#32
post #20

The author's npm scripts approach is great for a small scale project needing to run just jshint but if you start getting into something serious, running more than one task multiple times is a serious dent in your workflow.

I agree with that. I use npm commands for simple tasks.

And grunt/gulp for complex projects. grunt, cause it is simpler than gulp, but only when it match the projects use case.

gulp for "live" things, like livereload or quick partial builds on developement.

Startet now to use webpack too, it is comfortable (campared with grunt), it does many build-stuff that you define in grunt by your own.

Like always, use the right tools to get the job done.

It exist not THE one and only tool that solve all problems in the world.

Re: Why we should stop using Grunt and Gulp

#33
post #30

I simply use Make for all my web projects, whether it's a Ruby JSON API, or a React front-end. It's reliable, pre-installed everywhere, and can wrap anything in one consistent CLI. Why have to remember whether to type lein repl , pry , or rails console , when make repl will do everytime? Ditto, bundle install , npm install , lein deps => make deps . make server can easily wrap whatever command launches the server, ma…

keep in mind that make isn't going to work on Windows. For a lot of people, that's okay (including myself). Still, a ton of developers still work on Windows.

Re: Why we should stop using Grunt and Gulp

#34
post #30

I simply use Make for all my web projects, whether it's a Ruby JSON API, or a React front-end. It's reliable, pre-installed everywhere, and can wrap anything in one consistent CLI. Why have to remember whether to type lein repl , pry , or rails console , when make repl will do everytime? Ditto, bundle install , npm install , lein deps => make deps . make server can easily wrap whatever command launches the server, ma…

We default to Make too since we're all (all two of us) running a *nix OS. I'm currently sub-contracting for an agency with devs all running Windows so I'm hoping `npm run` works well enough. If I had it my way I'd just tell them to install MinGW but they might take that as me telling them to go fuck themselves.

Re: Why we should stop using Grunt and Gulp

#35
What NPM can't do is the async workflow of Grunt watch (or serve) and dynamically trigger specific (sub)processes in real-time. Turns out, this is the main way I'm using Grunt.

Also some plugins are complicated (or dynamically) to configure. His examples were very simple, he could just put it into a batchfile aswell.

Re: Why we should stop using Grunt and Gulp

#36

This article seems super weird -- do people actually use Grunt/Gulp to run a single command at a time? Most uses that I've encountered are along the lines of 'we've got this huge build process involving compass, sass, uglify, ng-annotate, and 13 other things', and Grunt/Gulp allow you to do the whole thing, automatically re-running on file changes, with a single command.

I agree, I'm just not buying his idea as a real alternative for projects at scale.

Re: Why we should stop using Grunt and Gulp

#38

tl;dr: The author meant to say "Use Browserify instead of Grunt/Gulp" but then got all confused and wrote some unrelated stuff about how npm has a case..esac statement built in. While we're at the subject, might I suggest using webpack instead of browserify? It's roughly the same, but less buggy.

How is Browserify/Webpack a replacement for Grunt/Gulp? Genuine question.

Re: Why we should stop using Grunt and Gulp

#39
post #12
post #10

Why don't people just use make?

People are scared of significant whitespace or old software or something.

I'm not sure how serious your comment is but this was one of the reasons for the invention of Apache Ant.

For years, the front page of Ant had a rant towards Makefiles on it, including this highly unprofessional quote: '"Is my command not executing because I have a space in front of my tab!!!" said the original author of Ant way too many times.'

https://web.archive.org/web/20100203102803/http://ant.apache...

They only removed it in 2010 with the release of 1.8.0.

Re: Why we should stop using Grunt and Gulp

#40
Just skimmed through the article and wanted to point out that it's a joy to read. Clear, readable fonts, good use of spacing, great code snippets with proper syntax highlighting, bravo to the author, I wish more technical articles were going the extra mile like that.
Post reply on HN