From ac44afe4e864aec8e420d7f9ba806be45be1e833 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 16 Jul 2012 08:50:00 -0400 Subject: Manifest: Use existing data structure to infer categorization. --- build/effect.json | 41 ++++++++++++++++ build/effects.json | 41 ---------------- build/tasks/build.js | 18 +++---- build/widget.json | 136 +++++++++++++++++++++++++++++++++++++++++++++++++++ build/widgets.json | 136 --------------------------------------------------- 5 files changed, 185 insertions(+), 187 deletions(-) create mode 100644 build/effect.json delete mode 100644 build/effects.json create mode 100644 build/widget.json delete mode 100644 build/widgets.json diff --git a/build/effect.json b/build/effect.json new file mode 100644 index 000000000..b35bbb371 --- /dev/null +++ b/build/effect.json @@ -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 index b35bbb371..000000000 --- a/build/effects.json +++ /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." - } -} 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/widget.json b/build/widget.json new file mode 100644 index 000000000..12993e828 --- /dev/null +++ b/build/widget.json @@ -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 index 12993e828..000000000 --- a/build/widgets.json +++ /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": [] - } -} -- cgit v1.2.3