]> source.dussan.org Git - jquery-ui.git/commitdiff
Manifest: Use existing data structure to infer categorization.
authorScott González <scott.gonzalez@gmail.com>
Mon, 16 Jul 2012 12:50:00 +0000 (08:50 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 16 Jul 2012 12:50:00 +0000 (08:50 -0400)
build/effect.json [new file with mode: 0644]
build/effects.json [deleted file]
build/tasks/build.js
build/widget.json [new file with mode: 0644]
build/widgets.json [deleted file]

diff --git a/build/effect.json b/build/effect.json
new file mode 100644 (file)
index 0000000..b35bbb3
--- /dev/null
@@ -0,0 +1,41 @@
+{
+       "blind": {
+               "description": "Blinds the element."
+       },
+       "bounce": {
+               "description": "Bounces an element horizontally or vertically n times."
+       },
+       "clip": {
+               "description": "Clips the element on and off like an old TV."
+       },
+       "drop": {
+               "description": "Moves an element in one direction and hides it at the same time."
+       },
+       "explode": {
+               "description": "Explodes an element in all directions into n pieces. Implodes an element to its original wholeness."
+       },
+       "fade": {
+               "description": "Fades an element."
+       },
+       "fold": {
+               "description": "Folds an element first horizontally and then vertically."
+       },
+       "highlight": {
+               "description": "Highlights the background of an element in a defined color for a custom duration."
+       },
+       "pulsate": {
+               "description": "Pulsates an element n times by changing the opacity to zero and back."
+       },
+       "scale": {
+               "description": "Grows or shrinks an element and its content. Restores an elemnt to its original size."
+       },
+       "shake": {
+               "description": "Shakes an element horizontally or vertically n times."
+       },
+       "slide": {
+               "description": "Slides an element in and out of the viewport."
+       },
+       "transfer": {
+               "description": "Displays a transfer effect from one element to another."
+       }
+}
diff --git a/build/effects.json b/build/effects.json
deleted file mode 100644 (file)
index b35bbb3..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-{
-       "blind": {
-               "description": "Blinds the element."
-       },
-       "bounce": {
-               "description": "Bounces an element horizontally or vertically n times."
-       },
-       "clip": {
-               "description": "Clips the element on and off like an old TV."
-       },
-       "drop": {
-               "description": "Moves an element in one direction and hides it at the same time."
-       },
-       "explode": {
-               "description": "Explodes an element in all directions into n pieces. Implodes an element to its original wholeness."
-       },
-       "fade": {
-               "description": "Fades an element."
-       },
-       "fold": {
-               "description": "Folds an element first horizontally and then vertically."
-       },
-       "highlight": {
-               "description": "Highlights the background of an element in a defined color for a custom duration."
-       },
-       "pulsate": {
-               "description": "Pulsates an element n times by changing the opacity to zero and back."
-       },
-       "scale": {
-               "description": "Grows or shrinks an element and its content. Restores an elemnt to its original size."
-       },
-       "shake": {
-               "description": "Shakes an element horizontally or vertically n times."
-       },
-       "slide": {
-               "description": "Slides an element in and out of the viewport."
-       },
-       "transfer": {
-               "description": "Displays a transfer effect from one element to another."
-       }
-}
index d1211f60b04e8f1da0e92889b7ffc63452f34b94..1e1795230f00c384d2834352fa0f55a3201a9628 100644 (file)
@@ -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/widget.json b/build/widget.json
new file mode 100644 (file)
index 0000000..12993e8
--- /dev/null
@@ -0,0 +1,136 @@
+{
+       "accordion": {
+               "dependencies": [],
+               "description": "Displays collapsible content panels for presenting information in a limited amount of space.",
+               "keywords": [
+                       "navigation",
+                       "panel",
+                       "collapse",
+                       "expand"
+               ]
+       },
+       "autocomplete": {
+               "dependencies": [ "menu", "position" ],
+               "description": "Lists suggested words as the user is typing.",
+               "keywords": [
+                       "form",
+                       "word",
+                       "predict",
+                       "suggest"
+               ]
+       },
+       "button": {
+               "dependencies": [],
+               "description": "Enhances a form with themable buttons.",
+               "keywords": [
+                       "form",
+                       "radio",
+                       "checkbox"
+               ]
+       },
+       "dialog": {
+               "dependencies": [ "button", "draggable", "position", "resizable" ],
+               "description": "Displays customizable dialog windows.",
+               "keywords": [
+                       "modal",
+                       "alert",
+                       "popup"
+               ]
+       },
+       "draggable": {
+               "dependencies": [ "mouse" ],
+               "description": "Enables dragging functionality for any element.",
+               "keywords": [
+                       "drag",
+                       "drop"
+               ]
+       },
+       "droppable": {
+               "dependencies": [ "draggable", "mouse" ],
+               "description": "Enables drop targets for draggable elements.",
+               "keywords": [
+                       "drag",
+                       "drop"
+               ]
+       },
+       "menu": {
+               "dependencies": [ "position" ],
+               "description": "Creates nestable menus.",
+               "keywords": [
+                       "dropdown",
+                       "flyout"
+               ]
+       },
+       "mouse": {
+               "dependencies": [],
+               "description": "Abstracts mouse-based interactions to assist in creating certain widgets.",
+               "keywords": [
+                       "abstraction"
+               ],
+               "category": "core"
+       },
+       "progressbar": {
+               "dependencies": [],
+               "description": "Displays a status indicator for loading state, standard percentage, and other progress indicators.",
+               "keywords": [
+                       "determinate",
+                       "status"
+               ]
+       },
+       "resizable": {
+               "dependencies": [ "mouse" ],
+               "description": "Enables resize functionality for any element.",
+               "keywords": [
+                       "resize"
+               ]
+       },
+       "selectable": {
+               "dependencies": [ "mouse" ],
+               "description": "Allows groups of elements to be selected with the mouse.",
+               "keywords": [
+                       "selection"
+               ]
+       },
+       "slider": {
+               "dependencies": [ "mouse" ],
+               "description": "Displays a flexible slider with ranges and accessibility via keyboard.",
+               "keywords": [
+                       "form",
+                       "number",
+                       "range"
+               ]
+       },
+       "sortable": {
+               "dependencies": [ "mouse" ],
+               "description": "Enables items in a list to be sorted using the mouse.",
+               "keywords": [
+                       "sort",
+                       "list"
+               ]
+       },
+       "spinner": {
+               "dependencies": [ "button" ],
+               "description": "Displays buttons to easily input numbers via the keyboard or mouse.",
+               "keywords": [
+                       "form",
+                       "number",
+                       "spinbutton",
+                       "stepper"
+               ]
+       },
+       "tabs": {
+               "dependencies": [],
+               "description": "Transforms a set of container elements into a tab structure.",
+               "keywords": [
+                       "navigation",
+                       "panel",
+                       "collapse",
+                       "expand"
+               ]
+       },
+       "tooltip": {
+               "dependencies": [ "position" ],
+               "description": "Shows additional information for any element on hover or focus.",
+               "keywords": []
+       }
+}
diff --git a/build/widgets.json b/build/widgets.json
deleted file mode 100644 (file)
index 12993e8..0000000
+++ /dev/null
@@ -1,136 +0,0 @@
-{
-       "accordion": {
-               "dependencies": [],
-               "description": "Displays collapsible content panels for presenting information in a limited amount of space.",
-               "keywords": [
-                       "navigation",
-                       "panel",
-                       "collapse",
-                       "expand"
-               ]
-       },
-       "autocomplete": {
-               "dependencies": [ "menu", "position" ],
-               "description": "Lists suggested words as the user is typing.",
-               "keywords": [
-                       "form",
-                       "word",
-                       "predict",
-                       "suggest"
-               ]
-       },
-       "button": {
-               "dependencies": [],
-               "description": "Enhances a form with themable buttons.",
-               "keywords": [
-                       "form",
-                       "radio",
-                       "checkbox"
-               ]
-       },
-       "dialog": {
-               "dependencies": [ "button", "draggable", "position", "resizable" ],
-               "description": "Displays customizable dialog windows.",
-               "keywords": [
-                       "modal",
-                       "alert",
-                       "popup"
-               ]
-       },
-       "draggable": {
-               "dependencies": [ "mouse" ],
-               "description": "Enables dragging functionality for any element.",
-               "keywords": [
-                       "drag",
-                       "drop"
-               ]
-       },
-       "droppable": {
-               "dependencies": [ "draggable", "mouse" ],
-               "description": "Enables drop targets for draggable elements.",
-               "keywords": [
-                       "drag",
-                       "drop"
-               ]
-       },
-       "menu": {
-               "dependencies": [ "position" ],
-               "description": "Creates nestable menus.",
-               "keywords": [
-                       "dropdown",
-                       "flyout"
-               ]
-       },
-       "mouse": {
-               "dependencies": [],
-               "description": "Abstracts mouse-based interactions to assist in creating certain widgets.",
-               "keywords": [
-                       "abstraction"
-               ],
-               "category": "core"
-       },
-       "progressbar": {
-               "dependencies": [],
-               "description": "Displays a status indicator for loading state, standard percentage, and other progress indicators.",
-               "keywords": [
-                       "determinate",
-                       "status"
-               ]
-       },
-       "resizable": {
-               "dependencies": [ "mouse" ],
-               "description": "Enables resize functionality for any element.",
-               "keywords": [
-                       "resize"
-               ]
-       },
-       "selectable": {
-               "dependencies": [ "mouse" ],
-               "description": "Allows groups of elements to be selected with the mouse.",
-               "keywords": [
-                       "selection"
-               ]
-       },
-       "slider": {
-               "dependencies": [ "mouse" ],
-               "description": "Displays a flexible slider with ranges and accessibility via keyboard.",
-               "keywords": [
-                       "form",
-                       "number",
-                       "range"
-               ]
-       },
-       "sortable": {
-               "dependencies": [ "mouse" ],
-               "description": "Enables items in a list to be sorted using the mouse.",
-               "keywords": [
-                       "sort",
-                       "list"
-               ]
-       },
-       "spinner": {
-               "dependencies": [ "button" ],
-               "description": "Displays buttons to easily input numbers via the keyboard or mouse.",
-               "keywords": [
-                       "form",
-                       "number",
-                       "spinbutton",
-                       "stepper"
-               ]
-       },
-       "tabs": {
-               "dependencies": [],
-               "description": "Transforms a set of container elements into a tab structure.",
-               "keywords": [
-                       "navigation",
-                       "panel",
-                       "collapse",
-                       "expand"
-               ]
-       },
-       "tooltip": {
-               "dependencies": [ "position" ],
-               "description": "Shows additional information for any element on hover or focus.",
-               "keywords": []
-       }
-}