Skip to content

Commit

Permalink
README: use npmcdn, mention Draggabilly v1 for IE8
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Jan 4, 2016
1 parent 15ed9ca commit 451e05d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@ Grab a packaged source file:

### Package managers

Install with [Bower](http://bower.io): `bower install draggabilly`

Install with [npm](https://www.npmjs.com/package/draggabilly): `npm install draggabilly`

Install with [Bower](http://bower.io): `bower install draggabilly`

### CDN

Link directly to [Draggabilly files on cdnjs](https://cdnjs.com/libraries/draggabilly).
Link directly to Draggabilly files on [npmcdn.com](https://npmcdn.com).

``` html
<script src="https://cdnjs.cloudflare.com/ajax/libs/draggabilly/2.0.0/draggabilly.pkgd.min.js"></script>
<script src="https://npmcdn.com/draggabilly@2.0.0/dist/draggabilly.pkgd.min.js"></script>
<!-- or -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/draggabilly/2.0.0/draggabilly.pkgd.js"></script>
<script src="https://npmcdn.com/draggabilly@2.0.0/dist/draggabilly.pkgd.js"></script>
```

## Usage
Expand Down Expand Up @@ -414,6 +414,12 @@ $.bridget( 'draggabilly', Draggabilly );
$('.draggable').draggabilly({...})
```

## Browser support

IE10+, Android 4+, iOS 6+, and all modern browsers

Use [Draggabilly v1 for IE8 & 9, and Android 2.3+ support](http://draggabilly.desandro.com/v1)

## License

Draggabilly is released under the [MIT License](http://desandro.mit-license.org/). Have at it.
3 changes: 1 addition & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ gulp.task( 'version', function() {
.pipe( gulp.dest('.') );
// replace CDN links in README
gulp.src('README.md')
.pipe( replace( /ajax\/libs\/draggabilly\/\d\.\d\.\d/g,
'ajax/libs/draggabilly/' + version ))
.pipe( replace( /draggabilly@\d\.\d\.\d/g, 'draggabilly@' + version ) )
.pipe( gulp.dest('.') );
});

Expand Down

0 comments on commit 451e05d

Please sign in to comment.