Skip to content

Commit 9165228

Browse files
committed
Update docs & fix out-of-sync versions for bower.json and jquery config json
1 parent d34cb80 commit 9165228

9 files changed

+46
-15
lines changed

Gruntfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ module.exports = function(grunt) {
8787
version: {
8888
patch: {
8989
src: [
90-
'<%= pluginName %>.jquery.json',
9190
'package.json',
91+
'<%= pluginName %>.jquery.json',
92+
'bower.json',
9293
'src/jquery.<%= pluginName %>.js',
9394
'jquery.<%= pluginName %>.js'
9495
],
@@ -136,7 +137,7 @@ module.exports = function(grunt) {
136137
grunt.registerTask( 'deploy', ['setshell:rsync', 'shell:rsync']);
137138

138139
grunt.registerTask( 'configs', 'Update json configs based on package.json', function() {
139-
var pkg = grunt.config('pkg'),
140+
var pkg = grunt.file.readJSON('package.json'),
140141
pkgBasename = grunt.config('pluginName'),
141142
bowerFile = grunt.config('bower'),
142143
bower = grunt.file.readJSON(bowerFile),

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.5.0",
3+
"version": "1.5.2",
44
"dependencies": {
55
"jquery": ">=1.3"
66
},

index.html

Lines changed: 14 additions & 4 deletions
Large diffs are not rendered by default.

jquery.smooth-scroll.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*!
2-
* jQuery Smooth Scroll - v1.5.1 - 2014-10-01
2+
* jQuery Smooth Scroll - v1.5.2 - 2014-10-01
33
* https://github.com/kswedberg/jquery-smooth-scroll
44
* Copyright (c) 2014 Karl Swedberg
55
* Licensed MIT (https://github.com/kswedberg/jquery-smooth-scroll/blob/master/LICENSE-MIT)
66
*/
77

88
(function($) {
9-
var version = '1.5.1',
9+
var version = '1.5.2',
1010
optionOverrides = {},
1111
defaults = {
1212
exclude: [],

jquery.smooth-scroll.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jquery-smooth-scroll",
33
"title": "jQuery Smooth Scroll",
4-
"version": "1.5.1",
4+
"version": "1.5.2",
55
"scripts": {},
66
"main": "jquery.smooth-scroll.js",
77
"author": {

readme.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
11
# Smooth Scroll Plugin
22

3+
Allows for easy implementation of smooth scrolling for same-page links.
4+
5+
## Download
6+
7+
Using npm:
8+
9+
```bash
10+
npm install jquery-smooth-scroll
11+
```
12+
13+
Using bower:
14+
15+
```bash
16+
bower install jquery-smooth-scroll
17+
```
18+
19+
The old-fashioned way:
20+
21+
Go to the following URL in your browser and copy/paste the code into your own file:
22+
https://raw.githubusercontent.com/kswedberg/jquery-smooth-scroll/master/jquery.smooth-scroll.js
23+
324
## Features
425

526
### $.fn.smoothScroll
627

7-
* Allows for easy implementation of smooth scrolling for same-page links.
828
* Works like this: `$('a').smoothScroll();`
929
* Specify a containing element if you want: `$('#container a').smoothScroll();`
1030
* Exclude links if they are within a containing element: `$('#container a').smoothScroll({excludeWithin: ['.container2']});`

smooth-scroll.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "smooth-scroll",
3-
"version": "1.5.0",
3+
"version": "1.5.2",
44
"title": "Smooth Scroll",
55
"description": "Easy implementation of smooth scrolling for same-page links",
66
"author": {

src/jquery.smooth-scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(function($) {
2-
var version = '1.5.1',
2+
var version = '1.5.2',
33
optionOverrides = {},
44
defaults = {
55
exclude: [],

0 commit comments

Comments
 (0)