diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2014-05-07 22:39:21 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2014-05-12 21:52:46 +0200 |
commit | 6ef5c3844dd20a5e8160edbd08a78746c3bbc6b3 (patch) | |
tree | 5c0705831cec98f65ce17e4e859dbdf32ef32d3b | |
parent | 56e092d43d4a907eb1983114345d7ed5024ed88e (diff) | |
download | jquery-ui-6ef5c3844dd20a5e8160edbd08a78746c3bbc6b3.tar.gz jquery-ui-6ef5c3844dd20a5e8160edbd08a78746c3bbc6b3.zip |
Build: Fix manifest dependencies
Clone bower dependencies instead of reusing and modifying the same object
multiple times.
-rw-r--r-- | build/tasks/build.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build/tasks/build.js b/build/tasks/build.js index ca8eca9bf..1e08dc62f 100644 --- a/build/tasks/build.js +++ b/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 ) { |