@@ -7,7 +7,7 @@ module.exports = function(grunt) {
7
7
8
8
// Project configuration.
9
9
grunt . initConfig ( {
10
- component : './component .json' ,
10
+ bower : './bower .json' ,
11
11
pkg : grunt . file . readJSON ( 'smooth-scroll.jquery.json' ) ,
12
12
meta : {
13
13
banner : '/*!<%= "\\n" %>' +
@@ -135,8 +135,8 @@ module.exports = function(grunt) {
135
135
136
136
grunt . registerTask ( 'deploy' , [ 'setshell:rsync' , 'shell:rsync' ] ) ;
137
137
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 ' ) ,
140
140
pkgName = grunt . config ( 'pkg' ) . name ,
141
141
pkg = grunt . file . readJSON ( pkgName + '.jquery.json' ) ,
142
142
json = { } ;
@@ -160,7 +160,7 @@ module.exports = function(grunt) {
160
160
grunt . log . writeln ( "File '" + comp + "' updated." ) ;
161
161
} ) ;
162
162
163
- grunt . registerTask ( 'docs' , function ( ) {
163
+ grunt . registerTask ( 'docs' , 'Convert readme.md to html and concat with header and footer for index.html' , function ( ) {
164
164
var marked = require ( 'marked' ) ,
165
165
readme = grunt . file . read ( 'readme.md' ) ,
166
166
head = grunt . template . process ( grunt . file . read ( 'lib/tmpl/header.tpl' ) ) ,
@@ -174,8 +174,8 @@ module.exports = function(grunt) {
174
174
grunt . file . write ( 'index.html' , head + doc + foot ) ;
175
175
} ) ;
176
176
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' ] ) ;
179
179
grunt . registerTask ( 'default' , [ 'build' ] ) ;
180
180
181
181
grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
0 commit comments