@@ -8,24 +8,21 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
8
8
base = {
9
9
core : {
10
10
name : "ui.{plugin}" ,
11
- title : "jQuery UI {Plugin}" ,
12
- category : "core"
11
+ title : "jQuery UI {Plugin}"
13
12
} ,
14
- widgets : {
13
+ widget : {
15
14
name : "ui.{plugin}" ,
16
15
title : "jQuery UI {Plugin}" ,
17
- dependencies : [ "core" , "widget" ] ,
18
- category : "widget"
16
+ dependencies : [ "core" , "widget" ]
19
17
} ,
20
- effects : {
18
+ effect : {
21
19
name : "ui.effect-{plugin}" ,
22
20
title : "jQuery UI {Plugin} Effect" ,
23
21
keywords : [ "effect" , "show" , "hide" ] ,
24
22
homepage : "http://jqueryui.com/{plugin}-effect/" ,
25
23
demo : "http://jqueryui.com/{plugin}-effect/" ,
26
24
docs : "http://api.jqueryui.com/{plugin}-effect/" ,
27
- dependencies : [ "effect" ] ,
28
- category : "effect"
25
+ dependencies : [ "effect" ]
29
26
}
30
27
} ;
31
28
@@ -49,7 +46,6 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
49
46
keywords : [ "ui" , plugin ]
50
47
. concat ( baseManifest . keywords || [ ] )
51
48
. concat ( data . keywords || [ ] ) ,
52
- category : data . category || baseManifest . category ,
53
49
version : pkg . version ,
54
50
author : pkg . author ,
55
51
maintainers : pkg . maintainers ,
@@ -64,7 +60,9 @@ grunt.registerTask( "manifest", "Generate jquery.json manifest files", function(
64
60
download : "http://jqueryui.com/download/" ,
65
61
dependencies : {
66
62
jquery : ">=1.6"
67
- }
63
+ } ,
64
+ // custom
65
+ category : data . category || type
68
66
} ;
69
67
70
68
( baseManifest . dependencies || [ ] )
0 commit comments