@@ -7,7 +7,7 @@ module.exports = function(grunt) {
77
88 // Project configuration.
99 grunt . initConfig ( {
10- component : './component .json' ,
10+ bower : './bower .json' ,
1111 pkg : grunt . file . readJSON ( 'smooth-scroll.jquery.json' ) ,
1212 meta : {
1313 banner : '/*!<%= "\\n" %>' +
@@ -135,8 +135,8 @@ module.exports = function(grunt) {
135135
136136 grunt . registerTask ( 'deploy' , [ 'setshell:rsync' , 'shell:rsync' ] ) ;
137137
138- grunt . registerTask ( 'component ' , 'Update component .json' , function ( ) {
139- var comp = grunt . config ( 'component ' ) ,
138+ grunt . registerTask ( 'bower ' , 'Update bower .json' , function ( ) {
139+ var comp = grunt . config ( 'bower ' ) ,
140140 pkgName = grunt . config ( 'pkg' ) . name ,
141141 pkg = grunt . file . readJSON ( pkgName + '.jquery.json' ) ,
142142 json = { } ;
@@ -160,7 +160,7 @@ module.exports = function(grunt) {
160160 grunt . log . writeln ( "File '" + comp + "' updated." ) ;
161161 } ) ;
162162
163- grunt . registerTask ( 'docs' , function ( ) {
163+ grunt . registerTask ( 'docs' , 'Convert readme.md to html and concat with header and footer for index.html' , function ( ) {
164164 var marked = require ( 'marked' ) ,
165165 readme = grunt . file . read ( 'readme.md' ) ,
166166 head = grunt . template . process ( grunt . file . read ( 'lib/tmpl/header.tpl' ) ) ,
@@ -174,8 +174,8 @@ module.exports = function(grunt) {
174174 grunt . file . write ( 'index.html' , head + doc + foot ) ;
175175 } ) ;
176176
177- grunt . registerTask ( 'build' , [ 'jshint' , 'concat' , 'version:same' , 'component ' , 'uglify' , 'docs' ] ) ;
178- grunt . registerTask ( 'patch' , [ 'jshint' , 'concat' , 'version:bannerPatch' , 'version:patch' , 'component ' , 'uglify' ] ) ;
177+ grunt . registerTask ( 'build' , [ 'jshint' , 'concat' , 'version:same' , 'bower ' , 'uglify' , 'docs' ] ) ;
178+ grunt . registerTask ( 'patch' , [ 'jshint' , 'concat' , 'version:bannerPatch' , 'version:patch' , 'bower ' , 'uglify' ] ) ;
179179 grunt . registerTask ( 'default' , [ 'build' ] ) ;
180180
181181 grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
0 commit comments