Skip to content

Instantly share code, notes, and snippets.

@karl-gustav
Last active August 29, 2015 14:05
Show Gist options
  • Save karl-gustav/bc95580a5ff61c4a04ea to your computer and use it in GitHub Desktop.
Save karl-gustav/bc95580a5ff61c4a04ea to your computer and use it in GitHub Desktop.
Why Grunt sux and Gulp rules:
grunt.initConfig({
curl: {
'/tmp/myDonwloadedFile.tar.gz': 'https://gitlab.fronter.net/facilitation/selenium-browser-drivers/raw/master/v1.0.0.tar.gz',
},
untar: {
options: {
mode: 'tgz'
},
files: {
'selenium/browser-drivers': '/tmp/myDonwloadedFile.tar.gz'
}
},
remove: {
options: {
trace: true
},
fileList: ['/tmp/myDonwloadedFile.tar.gz']
}
});
grunt.registerTask('install-selenium', [
['curl', 'untar', 'remove']
]);
gulp.task('install-selenium', function () {
plugins.download(
'https://gitlab.fronter.net/facilitation/selenium-browser-drivers/raw/master/v1.0.0.tar.gz')
.pipe(plugins.gunzip())
.pipe(plugins.untar())
.pipe(gulp.dest('selenium/browser-drivers/'));
});
@karl-gustav
Copy link
Author

And the Grunt could be even bigger if we did the gunzip-ing and untar-ing in two steps!

@plumpNation
Copy link

Ha ha. You'd be surprised that a lot of devs are comfortable with grunt syntax. I use gulp at home btw so poo to your hating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment