Skip to content

Commit d380e07

Browse files
committed
Build: Base manifest dependencies off of Bower configuration
1 parent e837d11 commit d380e07

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build/tasks/build.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
3232

3333
Object.keys( base ).forEach(function( type ) {
3434
var baseManifest = base[ type ],
35-
plugins = grunt.file.readJSON( "build/" + type + ".json" );
35+
plugins = grunt.file.readJSON( "build/" + type + ".json" ),
36+
bower = grunt.file.readJSON( "bower.json" );
3637

3738
Object.keys( plugins ).forEach(function( plugin ) {
3839
var manifest,
@@ -62,9 +63,7 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
6263
docs: data.docs || replace( baseManifest.docs ||
6364
"http://api.jqueryui.com/{plugin}/" ),
6465
download: "http://jqueryui.com/download/",
65-
dependencies: {
66-
jquery: ">=1.6"
67-
},
66+
dependencies: bower.dependencies,
6867
// custom
6968
category: data.category || type
7069
};

0 commit comments

Comments
 (0)