Skip to content

Commit

Permalink
Update jQuery dependency and fix bower.json building in Gruntfile.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kswedberg committed Sep 7, 2016
1 parent ab98c96 commit 7017931
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
6 changes: 3 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ module.exports = function(grunt) {

grunt.registerTask('updateBower', 'Update bower.json to match package.json', function() {
var pkg = require('./package.json');
var props = ['name', 'main', 'homepage', 'repository', 'dependencies', 'keywords', 'license'];
var props = ['name', 'main', 'homepage', 'version', 'repository', 'dependencies', 'keywords', 'license'];
var json = {
description: 'Easy implementation of smooth scrolling for same-page links'
};
Expand All @@ -152,11 +152,11 @@ module.exports = function(grunt) {
});

grunt.registerTask('lint', ['jshint', 'jscs']);
grunt.registerTask('build', ['lint', 'concat', 'version', 'uglify', 'docs']);
grunt.registerTask('build', ['lint', 'concat', 'version', 'updateBower', 'uglify', 'docs']);
grunt.registerTask('default', ['build']);

['patch', 'minor', 'major'].forEach(function(release) {
grunt.registerTask(release, ['lint', 'version:src:' + release, 'concat', 'uglify', 'version:banners:' + release, 'version:package:' + release]);
grunt.registerTask(release, ['lint', 'version:src:' + release, 'concat', 'uglify', 'version:banners:' + release, 'version:package:' + release, 'updateBower']);
});

grunt.loadNpmTasks('grunt-jscs');
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/kswedberg/jquery-smooth-scroll"
},
"dependencies": {
"jquery": ">=1.4.2"
"jquery": ">=1.7.0"
},
"keywords": [
"jQuery",
Expand Down
Loading

0 comments on commit 7017931

Please sign in to comment.