Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit 2993687

Browse files
As previously, remove hammerjs dependency
1 parent eb5d0bd commit 2993687

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@ To implement a card stack, follow the example provided by angular2-swing
3535

3636
See https://github.com/ksachdeva/angular2-swing
3737

38+
## Notes regarding hammerjs
39+
40+
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
41+
42+
```bash
43+
$ npm install hammerjs --save
44+
```
45+
46+
and add the following line to your `app.component.ts`
47+
48+
import 'hammerjs';
49+
3850
## Development
3951

4052
To generate the library using ng-packagr (https://github.com/dherges/ng-packagr)

package-lock.json

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ionic-swing",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"license": "MIT",
55
"scripts": {
66
"ng": "ng",
@@ -23,7 +23,6 @@
2323
"@angular/platform-browser-dynamic": "^6.0.9",
2424
"@angular/router": "^6.0.9",
2525
"core-js": "^2.5.7",
26-
"hammerjs": "^2.0.8",
2726
"raf": "^3.1.0",
2827
"rebound": "0.0.13",
2928
"sister": "^3.0.1",

0 commit comments

Comments
 (0)