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

Commit

Permalink
As previously, remove hammerjs dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Aug 4, 2018
1 parent eb5d0bd commit 2993687
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 1 addition & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ionic-swing",
"version": "2.0.1",
"version": "2.1.0",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand All @@ -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",
Expand Down

0 comments on commit 2993687

Please sign in to comment.