Start work on bower.
Showing
1 changed file
with
16 additions
and
0 deletions
... | @@ -286,6 +286,22 @@ module.exports = function (grunt) { | ... | @@ -286,6 +286,22 @@ module.exports = function (grunt) { |
286 | } | 286 | } |
287 | } | 287 | } |
288 | 288 | ||
289 | if (common.bower) { | ||
290 | externalMultiTask('bower', 'run bower externally', 'bower', function(target, options, configFile) { | ||
291 | return ['--config.directory=' + options.directory, target]; | ||
292 | }); | ||
293 | initConfig.bower = { | ||
294 | options: { | ||
295 | directory: 'src/' + common.bower.directory, | ||
296 | }, | ||
297 | install: {}, | ||
298 | update: {}, | ||
299 | }; | ||
300 | if (common.useRev) { | ||
301 | initConfig.rev.dist.files.push({src: 'dist/' + common.bower.directory}); | ||
302 | } | ||
303 | } | ||
304 | |||
289 | buildList.push('useminPrepare'); // html | 305 | buildList.push('useminPrepare'); // html |
290 | //buildList.push('usemin:views' | 306 | //buildList.push('usemin:views' |
291 | //buildList.push('requirejs'); // script | 307 | //buildList.push('requirejs'); // script | ... | ... |
-
Please register or sign in to post a comment