Skip to content

Commit 08cef6f

Browse files
Merge pull request #2429 from adaptlearning/issue/2428
Process symlinks in Handlebars and Less tasks
2 parents 725807f + e2c5b8a commit 08cef6f

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

Gruntfile.js

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,17 @@ module.exports = function(grunt) {
8787
partialRegex: /^part_/,
8888
partialsPathRegex: /\/partials\//
8989
},
90-
files: {
91-
"frontend/src/templates/templates.js": [
92-
"frontend/src/core/**/*.hbs",
93-
"frontend/src/modules/**/*.hbs",
94-
"frontend/src/plugins/**/*.hbs"
95-
]
96-
}
90+
files: [
91+
{
92+
follow: true,
93+
src: [
94+
'frontend/src/core/**/*.hbs',
95+
'frontend/src/modules/**/*.hbs',
96+
'frontend/src/plugins/**/*.hbs'
97+
],
98+
dest: 'frontend/src/templates/templates.js'
99+
}
100+
]
97101
}
98102
},
99103
requirejs: {
@@ -217,7 +221,10 @@ module.exports = function(grunt) {
217221
var ret = '';
218222

219223
for (var i = 0, l = src.length; i < l; i++) {
220-
grunt.file.expand({ filter: options.filter }, src[i]).forEach(function(lessPath) {
224+
grunt.file.expand({
225+
filter: options.filter,
226+
follow: true
227+
}, src[i]).forEach(function(lessPath) {
221228
ret += '@import \'' + path.normalize(lessPath) + '\';\n';
222229
});
223230
}

0 commit comments

Comments
 (0)