Skip to content

Commit

Permalink
Merge pull request #4 from raulmangolin/npm-package
Browse files Browse the repository at this point in the history
adding the possibility of using NPM and RequireJS
  • Loading branch information
snake-345 authored Jul 18, 2016
2 parents 7cd7532 + 48afb04 commit fa45c83
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ $('.jcarousel').jcarouselSwipe({
});
```

### node.js usage

#####Installation
`npm install snake-345/jcarouselSwipe`

#####Usage
```
var jcarouselSwipe = require('jcarouselSwipe');
```

## Examples
You can find examples in the corresponding directory. I'm included my plugin in all jcarousel examples and added vertical carousel example.

Expand Down
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,17 @@
"run-sequence": "^1.1.5",
"selenium-standalone": "^5.1.0",
"webdriverio": "^4.0.5"
}
},
"main": "dist/jquery.jcarousel-swipe.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/snake-345/jcarouselSwipe.git"
},
"bugs": {
"url": "https://github.com/snake-345/jcarouselSwipe/issues"
},
"homepage": "https://github.com/snake-345/jcarouselSwipe#readme"
}

0 comments on commit fa45c83

Please sign in to comment.