Skip to content
Permalink
Browse files

Build: Fix manifest dependencies

Clone bower dependencies instead of reusing and modifying the same object
multiple times.
  • Loading branch information
jzaefferer committed May 12, 2014
1 parent 56e092d commit 6ef5c3844dd20a5e8160edbd08a78746c3bbc6b3
Showing with 6 additions and 2 deletions.
  1. +6 −2 build/tasks/build.js
@@ -38,7 +38,7 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
bower = grunt.file.readJSON( "bower.json" );

Object.keys( plugins ).forEach(function( plugin ) {
var manifest,
var manifest, bowerKey,
data = plugins[ plugin ],
name = plugin.charAt( 0 ).toUpperCase() + plugin.substr( 1 );

@@ -65,11 +65,15 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
docs: data.docs || replace( baseManifest.docs ||
"http://api.jqueryui.com/{plugin}/" ),
download: "http://jqueryui.com/download/",
dependencies: bower.dependencies,
dependencies: {},
// custom
category: data.category || type
};

for ( bowerKey in bower.dependencies ) {
manifest.dependencies[ bowerKey ] = bower.dependencies[ bowerKey ];
}

(baseManifest.dependencies || [])
.concat(data.dependencies || [])
.forEach(function( dependency ) {

0 comments on commit 6ef5c38

Please sign in to comment.
You can’t perform that action at this time.