@@ -123,33 +123,16 @@ module.exports = function(grunt) {
123
123
var pkg = grunt . file . readJSON ( 'package.json' ) ,
124
124
pkgBasename = grunt . config ( 'pluginName' ) ,
125
125
bowerFile = grunt . config ( 'bower' ) ,
126
- bower = grunt . file . readJSON ( bowerFile ) ,
127
- jqConfigFile = pkgBasename + '.jquery.json' ,
128
- jqConfig = grunt . file . readJSON ( jqConfigFile ) ;
126
+ bower = grunt . file . readJSON ( bowerFile ) ;
129
127
130
- [ 'main' , 'version' , ' dependencies', 'keywords' ] . forEach ( function ( el ) {
128
+ [ 'main' , 'dependencies' , 'keywords' ] . forEach ( function ( el ) {
131
129
bower [ el ] = pkg [ el ] ;
132
- jqConfig [ el ] = pkg [ el ] ;
133
130
} ) ;
134
131
135
- [ 'author' , 'repository' , 'homepage' , 'docs' , 'bugs' , 'demo' , 'licenses' ] . forEach ( function ( el ) {
136
- jqConfig [ el ] = pkg [ el ] ;
137
- } ) ;
138
-
139
- jqConfig . keywords . shift ( ) ;
140
-
141
- jqConfig . name = pkgBasename ;
142
132
bower . name = 'jquery-' + pkgBasename ;
143
133
144
134
grunt . file . write ( bowerFile , JSON . stringify ( bower , null , 2 ) + '\n' ) ;
145
135
grunt . log . writeln ( 'File "' + bowerFile + '" updated."' ) ;
146
-
147
- while ( / j q u e r y / i. test ( jqConfig . keywords [ 0 ] ) ) {
148
- jqConfig . keywords . shift ( ) ;
149
- }
150
-
151
- grunt . file . write ( jqConfigFile , JSON . stringify ( jqConfig , null , 2 ) + '\n' ) ;
152
- grunt . log . writeln ( 'File "' + jqConfigFile + '" updated."' ) ;
153
136
} ) ;
154
137
155
138
grunt . registerTask ( 'docs' , 'Convert readme.md to html and concat with header and footer for index.html' , function ( ) {
0 commit comments