Skip to content

Instantly share code, notes, and snippets.

@grayside
Created July 13, 2017 18:02
Show Gist options
  • Save grayside/61cc12364c80f524d5329f47d2956e97 to your computer and use it in GitHub Desktop.
Save grayside/61cc12364c80f524d5329f47d2956e97 to your computer and use it in GitHub Desktop.
Customize the `grunt install` command's drush site-install line for your project
/**
* Customized site install routine.
*
* Used as part of grunt install.
*
* Place this file wherever custom grunt-drupal-tasks plugins are loaded, such as bin/grunt for an Outrigger Drupal project.
*/
module.exports = function(grunt) {
// Modify the drush site-install component of the routine.
var config = grunt.config.get('drush.install');
config.args.push('--site-name="Project Name"');
grunt.config.set('drush.install', config);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment