diff --git a/lib/drupal.js b/lib/drupal.js index 2162b8ba..4d641a07 100644 --- a/lib/drupal.js +++ b/lib/drupal.js @@ -51,6 +51,10 @@ module.exports = function(grunt) { return path.join(grunt.config('config.buildPaths.html'), 'profiles'); }; + module.configPath = function() { + return path.join(grunt.config('config.buildPaths.html'), 'config'); + }; + module.sitePath = function() { return path.join(grunt.config('config.buildPaths.html'), 'sites'); }; diff --git a/tasks/scaffold.js b/tasks/scaffold.js index e4f315b9..611e376a 100644 --- a/tasks/scaffold.js +++ b/tasks/scaffold.js @@ -28,7 +28,8 @@ module.exports = function(grunt) { create: [ drupal.libraryPath(), drupal.modulePath(), - drupal.profilePath() + drupal.profilePath(), + drupal.configPath() ] } }); @@ -50,6 +51,10 @@ module.exports = function(grunt) { dest: drupal.profilePath(), filter: 'isDirectory' }); + grunt.config(['symlink', 'config'], { + src: '<%= config.srcPaths.drupal %>/config', + dest: drupal.configPath() + }); grunt.config(['symlink', 'sites'], { expand: true, cwd: '<%= config.srcPaths.drupal %>/sites',