Permalink
Browse files

Added to NPM registry and Bower. Added Grunt config with tasks jshint…

… for linting and uglify for creating minified file jquery.jscroll.min.js. Updates to .gitignore and README.md.
  • Loading branch information...
1 parent bc31cbb commit 0809b1b493a8dc02decad662b4eb6c8a7afb314b @pklauzinski committed Apr 13, 2015
Showing with 307 additions and 197 deletions.
  1. +4 −1 .gitignore
  2. +58 −0 Gruntfile.js
  3. +19 −14 README.md
  4. +38 −0 bower.json
  5. +146 −139 jquery.jscroll.js
  6. +4 −2 jquery.jscroll.min.js
  7. +0 −41 jscroll.jquery.json
  8. +38 −0 package.json
View
@@ -1,3 +1,6 @@
-.settings/
+.idea/
.project
+.settings/
+bower_components/
+node_modules/
View
@@ -0,0 +1,58 @@
+module.exports = function(grunt) {
+
+ 'use strict';
+
+ grunt.initConfig({
+
+ pkg: grunt.file.readJSON('package.json'),
+
+ /**
+ * https://github.com/gruntjs/grunt-contrib-jshint
+ */
+ jshint: {
+ options: {
+ curly: true,
+ eqeqeq: true,
+ eqnull: true,
+ browser: true,
+ newcap: false,
+ es3: true,
+ forin: true,
+ indent: 4,
+ unused: 'vars',
+ strict: true,
+ trailing: true,
+ quotmark: 'single',
+ latedef: true,
+ globals: {
+ jQuery: true
+ }
+ },
+ files: {
+ src: ['Grunfile.js', 'jquery.jscroll.js']
+ }
+ },
+
+ /**
+ * https://github.com/gruntjs/grunt-contrib-uglify
+ */
+ uglify: {
+ options: {
+ preserveComments: 'some'
+ },
+ jscroll: {
+ files: {
+ 'jquery.jscroll.min.js': [
+ 'jquery.jscroll.js'
+ ]
+ }
+ }
+ }
+
+ });
+
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+
+ grunt.registerTask('default', ['jshint', 'uglify']);
+};
View
@@ -1,9 +1,9 @@
-# jScroll jQuery Plugin for Infinite Scrolling / Auto-Paging
+# jScroll - jQuery Plugin for Infinite Scrolling / Auto-Paging
Official site at [jscroll.com](http://jscroll.com/).
-* Copyright (C) 2011-2013, [Philip Klauzinski](http://klauzinski.com/)
-* Current Version: 2.2.4
+* Copyright © 2011-2015, [Philip Klauzinski](http://klauzinski.com/)
+* Current Version: 2.3.0
* Dual licensed under the MIT and GPL Version 2 licenses.
* http://jscroll.com/#license
* http://www.opensource.org/licenses/mit-license.php
@@ -36,17 +36,22 @@ $('.jscroll').jscroll({
## Options
-* debug (false) When set to true, outputs useful information to the console display if the `console` object exists.
-* autoTrigger (true) When set to true, triggers the loading of the next set of content automatically when the user scrolls to the bottom of the containing element. When set to false, the required next link will trigger the loading of the next set of content when clicked.
-* autoTriggerUntil (false) Set to an integer great than 0 to turn off `autoTrigger` of paging after the specified number of pages. Requires `autoTrigger` to be `true`.
-* loadingHtml (`'<small>Loading...</small>'`) The HTML to show at the bottom of the content while loading the next set.
-* padding (0) The distance from the bottom of the scrollable content at which to trigger the loading of the next set of content. This only applies when autoTrigger is set to true.
-* nextSelector ('a:last') The selector to use for finding the link which contains the href pointing to the next set of content. If this selector is not found, or if it does not contain a href attribute, jScroll will self-destroy and unbind from the element upon which it was called.
-* contentSelector ('') A convenience selector for loading only part of the content in the response for the next set of content. This selector will be ignored if left blank and will apply the entire response to the DOM.
-* pagingSelector ('') Optionally define a selector for your paging controls so that they will be hidden, instead of just hiding the next page link.
-* callback () Optionally define a callback function to be called after a set of content has been loaded.
-
-For more information on the *contentSelector* option and how it loads a response fragment, see the [jQuery documentation for the .load() method](http://api.jquery.com/load/).
+* `debug (false)` - When set to true, outputs useful information to the console display if the `console` object exists.
+* `autoTrigger (true)` - When set to true, triggers the loading of the next set of content automatically when the user scrolls to the bottom of the containing element. When set to false, the required next link will trigger the loading of the next set of content when clicked.
+* `autoTriggerUntil (false)` - Set to an integer great than 0 to turn off `autoTrigger` of paging after the specified number of pages. Requires `autoTrigger` to be `true`.
+* `loadingHtml (`'<small>Loading...</small>')` - The HTML to show at the bottom of the content while loading the next set.
+* `padding (0)` - The distance from the bottom of the scrollable content at which to trigger the loading of the next set of content. This only applies when autoTrigger is set to true.
+* `nextSelector ('a:last')` - The selector to use for finding the link which contains the href pointing to the next set of content. If this selector is not found, or if it does not contain a href attribute, jScroll will self-destroy and unbind from the element upon which it was called.
+* `contentSelector ('')` - A convenience selector for loading only part of the content in the response for the next set of content. This selector will be ignored if left blank and will apply the entire response to the DOM.
+* `pagingSelector ('')` - Optionally define a selector for your paging controls so that they will be hidden, instead of just hiding the next page link.
+* `callback (false)` - Optionally define a callback function to be called after a set of content has been loaded.
+
+For more information on the `contentSelector` option and how it loads a response fragment, see the [jQuery documentation for the .load() method](http://api.jquery.com/load/).
+
+## Contributing
+
+In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](http://gruntjs.com).
+
## LICENSES:
View
@@ -0,0 +1,38 @@
+{
+ "name": "jscroll",
+ "version": "2.3.0",
+ "homepage": "http://jscroll.com",
+ "authors": [
+ {
+ "name": "Philip Klauzinski",
+ "homepage": "http://gui.ninja"
+ }
+ ],
+ "description": "jScroll - jQuery Plugin for Infinite Scrolling / Auto-Paging",
+ "main": "jquery.jscroll.js",
+ "dependencies": {
+ "jquery": ">=1.4.3"
+ },
+ "moduleType": [
+ "globals"
+ ],
+ "keywords": [
+ "jscroll",
+ "infinite-scroll",
+ "infinite-scrolling",
+ "jquery-scrolling",
+ "ajax-scrolling",
+ "scrolling",
+ "auto-paging",
+ "jquery-plugin",
+ "ecosystem:jquery"
+ ],
+ "license": "MIT, GPL-2.0",
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "test",
+ "tests"
+ ]
+}
Oops, something went wrong.

0 comments on commit 0809b1b

Please sign in to comment.