From cd82b335a8d6029481383b3da3d920f0658acaf0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Mon, 16 Jul 2012 14:08:10 +0200 Subject: [PATCH] Manifest: Add category field --- build/core.json | 4 +++- build/tasks/build.js | 10 +++++++--- build/widgets.json | 3 ++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/build/core.json b/build/core.json index 5273ebf7a..aac41f7aa 100644 --- a/build/core.json +++ b/build/core.json @@ -13,7 +13,8 @@ "calendar", "date", "i18n" - ] + ], + "category": "widget" }, "effect": { "title": "jQuery UI Effects Core", @@ -27,6 +28,7 @@ "transition", "easing" ], + "category": "effect", "homepage": "http://jqueryui.com/", "demo": "http://jqueryui.com/", "docs": "http://api.jqueryui.com/category/effects-core" diff --git a/build/tasks/build.js b/build/tasks/build.js index 5dff38f6a..d1211f60b 100644 --- a/build/tasks/build.js +++ b/build/tasks/build.js @@ -8,12 +8,14 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function( base = { core: { name: "ui.{plugin}", - title: "jQuery UI {Plugin}" + title: "jQuery UI {Plugin}", + category: "core" }, widgets: { name: "ui.{plugin}", title: "jQuery UI {Plugin}", - dependencies: [ "core", "widget" ] + dependencies: [ "core", "widget" ], + category: "widget" }, effects: { name: "ui.effect-{plugin}", @@ -22,7 +24,8 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function( homepage: "http://jqueryui.com/{plugin}-effect/", demo: "http://jqueryui.com/{plugin}-effect/", docs: "http://api.jqueryui.com/{plugin}-effect/", - dependencies: [ "effect" ] + dependencies: [ "effect" ], + category: "effect" } }; @@ -46,6 +49,7 @@ 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, diff --git a/build/widgets.json b/build/widgets.json index b518e6d0b..9c70726ea 100644 --- a/build/widgets.json +++ b/build/widgets.json @@ -66,7 +66,8 @@ "description": "Abstracts mouse-based interactions to assist in creating certain widgets.", "keywords": [ "abstraction" - ] + ], + "category": "core" }, "progressbar": { "dependencies": [], -- 2.39.5