diff --git a/.jshintrc b/.jshintrc index e870dcc..3f67a09 100644 --- a/.jshintrc +++ b/.jshintrc @@ -1,9 +1,9 @@ { "strict": true, - "newcap": false, // "Tolerate uncapitalized constructors" + "newcap": false, "node": true, - "expr": true, // - true && call() "Expected an assignment or function call and instead saw an expression." - "supernew": true, // - "Missing '()' invoking a constructor." + "expr": true, + "supernew": true, "laxbreak": true, "white": true, "globals": { diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..ef9d5d1 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,18 @@ +# Contribution Guidelines + + +### Issue + + 1. Try [dev](https://github.com/RubaXa/Sortable/tree/dev/)-branch, perhaps the problem has been solved; + 2. [Use the search](https://github.com/RubaXa/Sortable/search?q=problem), maybe already have an answer; + 3. If not found, create example on [jsbin.com](http://jsbin.com/zunibaxada/1/edit?html,js,output) and describe the problem. + + +--- + + +### Pull Request + + 1. Before PR run `grunt`; + 2. Only into [dev](https://github.com/RubaXa/Sortable/tree/dev/)-branch. + diff --git a/Gruntfile.js b/Gruntfile.js index 0f1db6c..26e1656 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -5,7 +5,16 @@ module.exports = function (grunt) { pkg: grunt.file.readJSON('package.json'), version: { - src: ['<%= pkg.exportName %>.js', '*.json'] + js: { + src: ['<%= pkg.exportName %>.js', '*.json'] + }, + cdn: { + options: { + prefix: '(cdnjs\\.cloudflare\\.com\\/ajax\\/libs\\/Sortable|cdn\\.jsdelivr\\.net\\/sortable)\\/', + replace: '[0-9\\.]+' + }, + src: ['README.md'] + } }, jshint: { diff --git a/README.md b/README.md index d548c23..720c880 100644 --- a/README.md +++ b/README.md @@ -6,18 +6,30 @@ Demo: http://rubaxa.github.io/Sortable/ ## Features - * Supports touch devices and [modern](http://caniuse.com/#search=drag) browsers + * Supports touch devices and [modern](http://caniuse.com/#search=drag) browsers (including IE9) * Can drag from one list to another or within the same list * CSS animation when moving items * Supports drag handles *and selectable text* (better than voidberg's html5sortable) * Smart auto-scrolling * Built using native HTML5 drag and drop API - * Supports [Meteor](meteor/README.md) and [AngularJS](#ng) + * Supports [Meteor](meteor/README.md), [AngularJS](#ng) and [React](#react) * Supports any CSS library, e.g. [Bootstrap](#bs) * Simple API + * [CDN](#cdn) * No jQuery (but there is [support](#jq)) +
+ + +### Articles + * [Sortable v1.0 — New capabilities](https://github.com/RubaXa/Sortable/wiki/Sortable-v1.0-—-New-capabilities/) (December 22, 2014) + * [Sorting with the help of HTML5 Drag'n'Drop API](https://github.com/RubaXa/Sortable/wiki/Sorting-with-the-help-of-HTML5-Drag'n'Drop-API/) (December 23, 2013) + + +
+ + ### Usage ```html