diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-07-16 08:50:00 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-07-16 08:50:00 -0400 |
commit | ac44afe4e864aec8e420d7f9ba806be45be1e833 (patch) | |
tree | a742e346cbafd61c5e8f83bbb736f2d14e3f6529 /build | |
parent | 2e385a71e17138a95a9fd2c66049d51206e1e2f8 (diff) | |
download | jquery-ui-ac44afe4e864aec8e420d7f9ba806be45be1e833.tar.gz jquery-ui-ac44afe4e864aec8e420d7f9ba806be45be1e833.zip |
Manifest: Use existing data structure to infer categorization.
Diffstat (limited to 'build')
-rw-r--r-- | build/effect.json (renamed from build/effects.json) | 0 | ||||
-rw-r--r-- | build/tasks/build.js | 18 | ||||
-rw-r--r-- | build/widget.json (renamed from build/widgets.json) | 0 |
3 files changed, 8 insertions, 10 deletions
diff --git a/build/effects.json b/build/effect.json index b35bbb371..b35bbb371 100644 --- a/build/effects.json +++ b/build/effect.json diff --git a/build/tasks/build.js b/build/tasks/build.js index d1211f60b..1e1795230 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -8,24 +8,21 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function( base = { core: { name: "ui.{plugin}", - title: "jQuery UI {Plugin}", - category: "core" + title: "jQuery UI {Plugin}" }, - widgets: { + widget: { name: "ui.{plugin}", title: "jQuery UI {Plugin}", - dependencies: [ "core", "widget" ], - category: "widget" + dependencies: [ "core", "widget" ] }, - effects: { + effect: { name: "ui.effect-{plugin}", title: "jQuery UI {Plugin} Effect", keywords: [ "effect", "show", "hide" ], homepage: "http://jqueryui.com/{plugin}-effect/", demo: "http://jqueryui.com/{plugin}-effect/", docs: "http://api.jqueryui.com/{plugin}-effect/", - dependencies: [ "effect" ], - category: "effect" + dependencies: [ "effect" ] } }; @@ -49,7 +46,6 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function( keywords: [ "ui", plugin ] .concat( baseManifest.keywords || [] ) .concat( data.keywords || [] ), - category: data.category || baseManifest.category, version: pkg.version, author: pkg.author, maintainers: pkg.maintainers, @@ -64,7 +60,9 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function( download: "http://jqueryui.com/download/", dependencies: { jquery: ">=1.6" - } + }, + // custom + category: data.category || type }; (baseManifest.dependencies || []) diff --git a/build/widgets.json b/build/widget.json index 12993e828..12993e828 100644 --- a/build/widgets.json +++ b/build/widget.json |