3 ms·
Making small shell scripts and the appearance of the syntax is a matter of taste, I guess. I personally quite enjoy knowing exactly what a script does but the a
by andrey-p 13y ago
Making small shell scripts and the appearance of the syntax is a matter of taste, I guess. I personally quite enjoy knowing exactly what a script does but the appeal of make to me is that I can use it in non-JS projects, too.
I recently had the need to automate batch of converting XCF files to PNG files. Writing and publishing a Grunt module just for that seems a bit over the top, and it would end up a wrapper for a few lines of bash anyway.
- lowboy 13y agoYou can use Grunt and gulp for any sort of projects, not just ones involving JS.
- andrey-p 13y agoI've only used Grunt briefly so I could be completely wrong, but I was under the impression you still need to create a node module for your task if it doesn't exist? You need to package it up somehow, link it in the gruntfile and so on. In my use case, I was using a CLI utility called xcf2png. Writing a wrapper module seems like loads more work than a bash one-liner that calls xcf2png, no?
- WickyNilliams 13y agogrunt-shell let's you call out to the shell. Very easy to set up https://github.com/sindresorhus/grunt-shell https://github.com/sindresorhus/grunt-shell