makeup-prevent-scroll-keys
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "makeup-prevent-scroll-keys", | ||
"description": "Prevents default scroll event when pressing down arrow, page down, spacebar, etc.", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "index.js", | ||
"repository": "https://github.com/makeup-js/makeup-prevent-scroll-keys.git", | ||
"repository": "https://github.com/makeup/makeup-js/tree/master/packages/makeup-prevent-scroll-keys", | ||
"author": "Ian McBurnie <ianmcburnie@hotmail.com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"start": "npm run build && parallelshell \"npm run server\" \"npm run watch\"", | ||
"test": "npm run build:module && npm run lasso:tests && karma start --autoWatch false --singleRun true", | ||
"prepublishOnly": "npm run lint && npm run test && npm run clean:tests && npm run build:docs", | ||
"prep": "npm run prepublishOnly", | ||
"build": "npm run build:module && npm run build:docs", | ||
"build:module": "babel src/index.js --out-file index.js", | ||
"build:docs": "babel docs/src/index.js --out-file docs/index.js && npm run lasso:docs && npm run clean:docs", | ||
"fix": "eslint src/index.js --fix", | ||
"lint": "eslint src/index.js > lint.txt && eslint docs/src/index.js > lint.txt", | ||
"lasso:docs": "lasso require-run:./docs/index.js --out docs/static --inject-into docs/index.html --name bundle", | ||
"lasso:tests": "npm run clean:tests && lasso require-run:./test/index.js --name bundle-test --out test/static --config ./test/lasso-config.json", | ||
"clean:docs": "rimraf .cache build docs/index.js", | ||
"clean:tests": "rimraf lint.txt reports", | ||
"server": "browser-sync start -s --ss docs --index docs/index.html --files docs/index.html", | ||
"watch": "onchange src/*.js docs/src/index.js -- npm run build", | ||
"version": "npm run prepublishOnly && git add -A docs/static test/static" | ||
"compile": "babel src/index.js --out-file index.js", | ||
"clean": "rimraf *.log .DS_Store" | ||
}, | ||
@@ -33,29 +19,10 @@ "keywords": [ | ||
], | ||
"devDependencies": { | ||
"@babel/cli": "^7", | ||
"@babel/core": "^7", | ||
"@babel/preset-env": "^7", | ||
"babel-plugin-transform-object-assign": "^6", | ||
"browser-sync": "^2", | ||
"core-js-pure": "^3", | ||
"coveralls": "^3", | ||
"eslint": "^5", | ||
"eslint-config-ebay": "^1", | ||
"jasmine-core": "^3", | ||
"karma": "^4", | ||
"karma-chrome-launcher": "^2", | ||
"karma-coverage": "^1", | ||
"karma-html-reporter": "~0.2", | ||
"karma-jasmine": "^2", | ||
"lasso-cli": "^2", | ||
"onchange": "^5", | ||
"parallelshell": "^3", | ||
"puppeteer": "^1", | ||
"rimraf": "^2" | ||
}, | ||
"files": [ | ||
"browser.json", | ||
"index.js", | ||
"yarn.lock" | ||
"package-lock.json" | ||
], | ||
"browserslist": [ | ||
"extends @ebay/browserslist-config" | ||
] | ||
} |
# makeup-prevent-scroll-keys | ||
<p> | ||
<a href="https://travis-ci.org/makeup-js/makeup-prevent-scroll-keys"><img src="https://api.travis-ci.org/makeup-js/makeup-prevent-scroll-keys.svg?branch=master" alt="Build Status" /></a> | ||
<a href='https://coveralls.io/github/makeup-js/makeup-prevent-scroll-keys?branch=master'><img src='https://coveralls.io/repos/makeup-js/makeup-prevent-scroll-keys/badge.svg?branch=master&service=github' alt='Coverage Status' /></a> | ||
<a href="https://david-dm.org/makeup-js/makeup-prevent-scroll-keys"><img src="https://david-dm.org/makeup-js/makeup-prevent-scroll-keys.svg" alt="Dependency status" /></a> | ||
<a href="https://david-dm.org/makeup-js/makeup-prevent-scroll-keys#info=devDependencies"><img src="https://david-dm.org/makeup-js/makeup-prevent-scroll-keys/dev-status.svg" alt="devDependency status" /></a> | ||
</p> | ||
This CommonJS module prevents the default scroll event when pressing down arrow, page down, spacebar, etc. This behaviour is required for ARIA widgets such as menu, tabs and comboboxes. See [eBay MIND Patterns](https://ebay.gitbooks.io/mindpatterns/content/) for further information. | ||
A vanilla JavaScript port of <a href="https://github.com/ianmcburnie/jquery-prevent-scroll-keys">jquery-prevent-scroll-keys</a>. | ||
This module prevents the default scroll event when pressing down arrow, page down, spacebar, etc. This behaviour is required for ARIA widgets such as menu, tabs and comboboxes. See [eBay MIND Patterns](https://ebay.gitbooks.io/mindpatterns/content/) for further information. | ||
## Experimental | ||
@@ -56,30 +47,1 @@ | ||
None | ||
## Development | ||
* `npm start` | ||
* `npm test` | ||
* `npm run lint` | ||
* `npm run fix` | ||
* `npm run build` | ||
* `npm run clean` | ||
The following hooks exist, and do not need to be invoked manually: | ||
* `npm prepublishOnly` cleans, lints, tests and builds on every `npm publish` command | ||
* `pre-commit` cleans, lints, tests and builds on every `git commit` command | ||
## Test Reports | ||
Each test run will generate the following reports: | ||
* `/reports/coverage` contains Istanbul code coverage report | ||
* `/reports/html` contains HTML test report | ||
## CI Build | ||
https://travis-ci.org/makeup-js/makeup-prevent-scroll-keys | ||
## Code Coverage | ||
https://coveralls.io/github/makeup-js/makeup-prevent-scroll-keys |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
0
3202
5
47