]> source.dussan.org Git - jquery-ui.git/commitdiff
Build: Base manifest dependencies off of Bower configuration
authorTJ VanToll <tj.vantoll@gmail.com>
Tue, 4 Feb 2014 14:16:26 +0000 (09:16 -0500)
committerTJ VanToll <tj.vantoll@gmail.com>
Thu, 20 Feb 2014 14:17:54 +0000 (09:17 -0500)
build/tasks/build.js

index cdc03bd600803860bdf457d52d5a02f292f5f6ad..3d399884e7598fc96d00e7e0e16a9fef39bb38a1 100644 (file)
@@ -32,7 +32,8 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
 
        Object.keys( base ).forEach(function( type ) {
                var baseManifest = base[ type ],
-                       plugins = grunt.file.readJSON( "build/" + type + ".json" );
+                       plugins = grunt.file.readJSON( "build/" + type + ".json" ),
+                       bower = grunt.file.readJSON( "bower.json" );
 
                Object.keys( plugins ).forEach(function( plugin ) {
                        var manifest,
@@ -62,9 +63,7 @@ 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: {
-                                       jquery: ">=1.6"
-                               },
+                               dependencies: bower.dependencies,
                                // custom
                                category: data.category || type
                        };