Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding overrides to options - allows custom data to be added to bower…

….json manifest
  • Loading branch information...
commit 93f6bc695897d6748258245a559ee9329d991f68 1 parent f8e70ca
Ben Plum benplum authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 tasks/sync.js
8 tasks/sync.js
View
@@ -40,6 +40,8 @@ module.exports = function (grunt) {
'private',
'license'
];
+ var overridesToSync = configValues.overrides || {};
+
grunt.verbose.writeln('syncing', propertiesToSync, 'from', sourceFilename,
'to', destinationFilename);
@@ -60,6 +62,12 @@ module.exports = function (grunt) {
}
options[propertyToSync] = pkg[propertyToSync] || configValues[propertyToSync];
}, this);
+
+ for (var overrideToSync in overridesToSync) {
+ options[overrideToSync] = overridesToSync[overrideToSync];
+ grunt.verbose.writeln(overrideToSync);
+ }
+
grunt.verbose.writeln('options added to bower', JSON.stringify(options, null, 2));
bower = JSON.stringify(_.extend(bower, options), null, 2);
Please sign in to comment.
Something went wrong with that request. Please try again.