Grunt tasks for downloading atom-shell, and the compatible version of chromedriver
.
Install npm package, next to your project's Gruntfile.js
file:
npm install --save-dev grunt-download-atom-shell
Add this line to your project's Gruntfile.js
:
grunt.loadNpmTasks('grunt-download-atom-shell');
version
- Required The version of atom-shell you want to download.outputDir
- Required Where to put the downloaded atom-shell.downloadDir
- Where to find and save cached downloaded atom-shell.symbols
- Download debugging symbols instead of binaries, default tofalse
.rebuild
- Whether to rebuild native modules after atom-shell is downloaded.apm
- The path to apm.token
- The OAuth token to use for GitHub API requests.
Add the necessary configuration to your Gruntfile.js
:
module.exports = function(grunt) {
grunt.initConfig({
'download-atom-shell': {
version: '0.20.3',
outputDir: 'my-dependencies'
}
});
};
or your Gruntfile.coffee
:
module.exports = (grunt) ->
grunt.initConfig
'download-atom-shell':
version: '0.20.3'
outputDir: 'my-dependencies'
Then you can download atom-shell to the path you specified:
$ grunt download-atom-shell
If you're doing selenium-testing of your atom-shell app, you'll need chromedriver
, which is distributed with atom-shell. To download it into the atom-shell directory:
$ grunt download-atom-shell-chromedriver