Skip to content

Commit

Permalink
Add symlink for src/config directory
Browse files Browse the repository at this point in the history
mike-potter committed Aug 16, 2017
1 parent 7510d31 commit 8428821
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/drupal.js
Original file line number Diff line number Diff line change
@@ -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');
};
7 changes: 6 additions & 1 deletion tasks/scaffold.js
Original file line number Diff line number Diff line change
@@ -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',

0 comments on commit 8428821

Please sign in to comment.