diff --git a/README.md b/README.md index b330e2e..0974346 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,18 @@ To implement a card stack, follow the example provided by angular2-swing See https://github.com/ksachdeva/angular2-swing +## Notes regarding hammerjs + +This library need `hammerjs` but isn't shipped with it because some framework, like `Ionic v3`, already include it in their own resources. If it isn't your case, you would need to install `hammerjs` in your project + +```bash +$ npm install hammerjs --save +``` + +and add the following line to your `app.component.ts` + + import 'hammerjs'; + ## Development To generate the library using ng-packagr (https://github.com/dherges/ng-packagr) diff --git a/package-lock.json b/package-lock.json index b0af855..c364bd9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ionic-swing", - "version": "2.0.1", + "version": "2.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -5136,11 +5136,6 @@ "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", "dev": true }, - "hammerjs": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/hammerjs/-/hammerjs-2.0.8.tgz", - "integrity": "sha1-BO93hiz/K7edMPdpIJWTAiK/YPE=" - }, "handle-thing": { "version": "1.2.5", "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-1.2.5.tgz", diff --git a/package.json b/package.json index 797f60a..3c0e373 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ionic-swing", - "version": "2.0.1", + "version": "2.1.0", "license": "MIT", "scripts": { "ng": "ng", @@ -23,7 +23,6 @@ "@angular/platform-browser-dynamic": "^6.0.9", "@angular/router": "^6.0.9", "core-js": "^2.5.7", - "hammerjs": "^2.0.8", "raf": "^3.1.0", "rebound": "0.0.13", "sister": "^3.0.1",