Skip to content

Commit ac44afe

Browse files
committed
Manifest: Use existing data structure to infer categorization.
1 parent 2e385a7 commit ac44afe

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed
File renamed without changes.

build/tasks/build.js

+8-10
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,21 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
88
base = {
99
core: {
1010
name: "ui.{plugin}",
11-
title: "jQuery UI {Plugin}",
12-
category: "core"
11+
title: "jQuery UI {Plugin}"
1312
},
14-
widgets: {
13+
widget: {
1514
name: "ui.{plugin}",
1615
title: "jQuery UI {Plugin}",
17-
dependencies: [ "core", "widget" ],
18-
category: "widget"
16+
dependencies: [ "core", "widget" ]
1917
},
20-
effects: {
18+
effect: {
2119
name: "ui.effect-{plugin}",
2220
title: "jQuery UI {Plugin} Effect",
2321
keywords: [ "effect", "show", "hide" ],
2422
homepage: "http://jqueryui.com/{plugin}-effect/",
2523
demo: "http://jqueryui.com/{plugin}-effect/",
2624
docs: "http://api.jqueryui.com/{plugin}-effect/",
27-
dependencies: [ "effect" ],
28-
category: "effect"
25+
dependencies: [ "effect" ]
2926
}
3027
};
3128

@@ -49,7 +46,6 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
4946
keywords: [ "ui", plugin ]
5047
.concat( baseManifest.keywords || [] )
5148
.concat( data.keywords || [] ),
52-
category: data.category || baseManifest.category,
5349
version: pkg.version,
5450
author: pkg.author,
5551
maintainers: pkg.maintainers,
@@ -64,7 +60,9 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
6460
download: "http://jqueryui.com/download/",
6561
dependencies: {
6662
jquery: ">=1.6"
67-
}
63+
},
64+
// custom
65+
category: data.category || type
6866
};
6967

7068
(baseManifest.dependencies || [])
File renamed without changes.

0 commit comments

Comments
 (0)