swipelistener-js
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "swipelistener-js", | ||
"description": "Small JS plugin to handle swipe gestures.", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"scripts": { | ||
"ghpages": "git subtree push --prefix build origin gh-pages", | ||
"start": "rollup -c -w", | ||
@@ -37,2 +38,4 @@ "build": "rollup -c" | ||
"babel-preset-es2015-rollup": "^3.0.0", | ||
"rollup-plugin-generate-html-template": "^1.7.0", | ||
"rollup-plugin-import-css": "^3.0.2", | ||
"rollup-plugin-uglify": "^6.0.4" | ||
@@ -39,0 +42,0 @@ }, |
# swipelistener-js | ||
Small JS plugin to handle swipe gestures. | ||
### [Demo](https://yurayarosh.github.io/swipelistener-js/) | ||
### Install | ||
```html | ||
yarn add swipelistener | ||
```bash | ||
$ yarn add swipelistener | ||
``` | ||
@@ -42,3 +46,3 @@ | ||
swipe.on(eventName, callback) | ||
popup.off(eventName, callback) | ||
swipe.off(eventName, callback) | ||
swipe.destroy() | ||
@@ -45,0 +49,0 @@ ``` |
import babel from '@rollup/plugin-babel' | ||
import css from 'rollup-plugin-import-css' | ||
import htmlTemplate from 'rollup-plugin-generate-html-template' | ||
import { uglify } from 'rollup-plugin-uglify' | ||
@@ -6,5 +8,5 @@ | ||
{ | ||
input: 'src/main.js', | ||
input: './src/main.js', | ||
output: { | ||
file: 'index.js', | ||
file: './build/index.js', | ||
name: 'Popup', | ||
@@ -22,6 +24,6 @@ format: 'umd', | ||
{ | ||
input: 'src/main.js', | ||
input: './src/main.js', | ||
output: [ | ||
{ | ||
file: 'index.es.js', | ||
file: './build/index.es.js', | ||
format: 'es', | ||
@@ -32,5 +34,5 @@ }, | ||
{ | ||
input: 'src/test.js', | ||
input: './src/test.js', | ||
output: { | ||
file: 'test.js', | ||
file: './build/test.js', | ||
format: 'cjs', | ||
@@ -43,4 +45,9 @@ }, | ||
}), | ||
htmlTemplate({ | ||
template: './src/index.html', | ||
target: './index.html', | ||
}), | ||
css(), | ||
], | ||
}, | ||
] |
import Swipe from './main' | ||
import './test.css' | ||
@@ -3,0 +4,0 @@ const isTouch = 'ontouchstart' in window || navigator.maxTouchPoints |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26180
14
643
60
7
1