Last active
August 29, 2015 14:05
-
-
Save karl-gustav/bc95580a5ff61c4a04ea to your computer and use it in GitHub Desktop.
Why Grunt sux and Gulp rules:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/')); | |
}); |
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
And the Grunt could be even bigger if we did the gunzip-ing and untar-ing in two steps!