makeup-roving-tabindex
Advanced tools
Comparing version 0.3.1 to 0.3.2
15
index.js
@@ -1,9 +0,4 @@ | ||
'use strict'; | ||
/* Requires following polyfills or transforms for IE11 | ||
* Object.assign | ||
* NodeList.forEach | ||
* CustomEvent | ||
*/ | ||
'use strict'; // requires NodeList.forEach polyfill for IE | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -28,2 +23,8 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
require('nodelist-foreach-polyfill'); // requires CustomEvent polyfill for IE | ||
// https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent | ||
var CustomEvent = require('custom-event'); | ||
var NavigationEmitter = require('makeup-navigation-emitter'); | ||
@@ -30,0 +31,0 @@ |
{ | ||
"name": "makeup-roving-tabindex", | ||
"description": "Implements a roving tab index on given collection of elements", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"main": "index.js", | ||
@@ -11,17 +11,18 @@ "repository": "https://github.com/makeup-js/makeup-roving-tabindex.git", | ||
"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", | ||
"test": "karma start --autoWatch false --singleRun true", | ||
"prepublishOnly": "npm run clean && npm run lint && npm run build && npm run test && npm run transpile:module", | ||
"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", | ||
"build": "npm run transpile:module && npm run build:docs", | ||
"build:docs": "npm run transpile:docs && npm run bundle: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" | ||
"clean": "npm run clean:docs && npm run clean:tests", | ||
"clean:docs": "rimraf docs/transpiled/index.js", | ||
"clean:tests": "rimraf lint.txt coverage", | ||
"transpile:module": "babel src/index.js --out-file index.js", | ||
"transpile:docs": "mkdirp docs/transpiled && babel docs/src/index.js --out-file docs/transpiled/index.js", | ||
"bundle:docs": "webpack --config webpack.docs.js", | ||
"server": "browser-sync start -s --ss docs --index docs/index.html --files docs/index.html docs/bundled/docs.min.js", | ||
"watch": "onchange src/index.js docs/src/index.js -- npm run build", | ||
"version": "npm run prepublishOnly && git add -A docs/bundled" | ||
}, | ||
@@ -38,2 +39,3 @@ "keywords": [ | ||
"@babel/preset-env": "^7", | ||
"@ebay/browserslist-config": "^1", | ||
"babel-plugin-transform-object-assign": "^6", | ||
@@ -45,17 +47,21 @@ "browser-sync": "^2", | ||
"eslint-config-ebay": "^1", | ||
"istanbul-instrumenter-loader": "^3", | ||
"jasmine-core": "^3", | ||
"karma": "^4", | ||
"karma-chrome-launcher": "^3", | ||
"karma-coverage": "^1", | ||
"karma-html-reporter": "~0.2", | ||
"karma-jasmine": "^2", | ||
"lasso-cli": "^2", | ||
"karma-coverage": "^2", | ||
"karma-coverage-istanbul-reporter": "^2", | ||
"karma-jasmine": "^3", | ||
"karma-webpack": "^4", | ||
"mkdirp": "^1", | ||
"nodelist-foreach-polyfill": "^1", | ||
"onchange": "^6", | ||
"parallelshell": "^3", | ||
"puppeteer": "^1", | ||
"rimraf": "^2" | ||
"parallelshell": "3.0.1", | ||
"rimraf": "^3", | ||
"webpack": "^4", | ||
"webpack-cli": "^3" | ||
}, | ||
"dependencies": { | ||
"custom-event-polyfill": "^1", | ||
"makeup-navigation-emitter": "~0.3.0", | ||
"custom-event": "^1", | ||
"makeup-navigation-emitter": "~0.3.1", | ||
"nodelist-foreach-polyfill": "^1" | ||
@@ -62,0 +68,0 @@ }, |
@@ -16,3 +16,3 @@ # makeup-roving-tabindex | ||
This module is still in an experimental state, until it reaches v1.0.0 you must consider all minor releases as breaking changes. Patch releases may introduce new features, but will be backwards compatible. | ||
This CommonJS module is still in an experimental state, until it reaches v1.0.0 you must consider all minor releases as breaking changes. Patch releases may introduce new features, but will be backwards compatible. | ||
@@ -98,25 +98,6 @@ ## Install | ||
* `makeup-navigation-emitter` | ||
* [makeup-navigation-emitter](https://github.com/makeup-js/makeup-navigation-emitter) | ||
* [custom-event-polyfill](https://github.com/krambuhl/custom-event-polyfill) (for IE) | ||
* [nodelist-foreach-polyfill](https://github.com/imagitama/nodelist-foreach-polyfill) (for IE) | ||
## Requirements | ||
* CustomEvent polyfill for IE11 (included if bundling with Lasso) | ||
* NodeList.forEach polyfill for IE11 (included if bundling with Lasso) | ||
## Development | ||
* `yarn start` | ||
* `yarn test` | ||
* `yarn lint` | ||
* `yarn fix` | ||
* `yarn build` | ||
* `yarn clean` | ||
## 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 | ||
@@ -123,0 +104,0 @@ |
Sorry, the diff of this file is not supported yet
305271
25
178
108
+ Addedcustom-event@^1
- Removedcustom-event-polyfill@^1
- Removedcustom-event-polyfill@1.0.7(transitive)