@@ -123,33 +123,16 @@ module.exports = function(grunt) {
123123 var pkg = grunt . file . readJSON ( 'package.json' ) ,
124124 pkgBasename = grunt . config ( 'pluginName' ) ,
125125 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 ) ;
129127
130- [ 'main' , 'version' , ' dependencies', 'keywords' ] . forEach ( function ( el ) {
128+ [ 'main' , 'dependencies' , 'keywords' ] . forEach ( function ( el ) {
131129 bower [ el ] = pkg [ el ] ;
132- jqConfig [ el ] = pkg [ el ] ;
133130 } ) ;
134131
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 ;
142132 bower . name = 'jquery-' + pkgBasename ;
143133
144134 grunt . file . write ( bowerFile , JSON . stringify ( bower , null , 2 ) + '\n' ) ;
145135 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."' ) ;
153136 } ) ;
154137
155138 grunt . registerTask ( 'docs' , 'Convert readme.md to html and concat with header and footer for index.html' , function ( ) {
0 commit comments