Skip to content

Commit 8428821

Browse files
committed
Add symlink for src/config directory
1 parent 7510d31 commit 8428821

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

lib/drupal.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ module.exports = function(grunt) {
5151
return path.join(grunt.config('config.buildPaths.html'), 'profiles');
5252
};
5353

54+
module.configPath = function() {
55+
return path.join(grunt.config('config.buildPaths.html'), 'config');
56+
};
57+
5458
module.sitePath = function() {
5559
return path.join(grunt.config('config.buildPaths.html'), 'sites');
5660
};

tasks/scaffold.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ module.exports = function(grunt) {
2828
create: [
2929
drupal.libraryPath(),
3030
drupal.modulePath(),
31-
drupal.profilePath()
31+
drupal.profilePath(),
32+
drupal.configPath()
3233
]
3334
}
3435
});
@@ -50,6 +51,10 @@ module.exports = function(grunt) {
5051
dest: drupal.profilePath(),
5152
filter: 'isDirectory'
5253
});
54+
grunt.config(['symlink', 'config'], {
55+
src: '<%= config.srcPaths.drupal %>/config',
56+
dest: drupal.configPath()
57+
});
5358
grunt.config(['symlink', 'sites'], {
5459
expand: true,
5560
cwd: '<%= config.srcPaths.drupal %>/sites',

0 commit comments

Comments
 (0)