Skip to content

Commit 2e2206d

Browse files
committed
Rename (deprecated) component.json to bower.json
1 parent bf53003 commit 2e2206d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Gruntfile.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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');

component.json renamed to bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery.smooth-scroll",
3-
"version": "1.4.10",
3+
"version": "1.4.11",
44
"dependencies": {
55
"jquery": ">=1.3"
66
},

0 commit comments

Comments
 (0)