Permalink
Browse files

Manifest: Use existing data structure to infer categorization.

  • Loading branch information...
1 parent 2e385a7 commit ac44afe4e864aec8e420d7f9ba806be45be1e833 @scottgonzalez scottgonzalez committed Jul 16, 2012
File renamed without changes.
View
@@ -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 || [])
File renamed without changes.

0 comments on commit ac44afe

Please sign in to comment.