From 10f4cf449ff3dd0b27041d30ca9bf79a7cecbba3 Mon Sep 17 00:00:00 2001 From: ustbhuangyi <280309453@qq.com> Date: Thu, 21 Dec 2017 15:14:23 +0800 Subject: [PATCH] add phtomjs mouse event polyfill --- package.json | 73 +++++++++++++++++----------------- test/unit/specs/modules/dom.js | 2 + 2 files changed, 39 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index c5d9c24f..76975a42 100755 --- a/package.json +++ b/package.json @@ -38,56 +38,37 @@ "babel-runtime": "^6.0.0" }, "devDependencies": { + "autoprefixer": "^7.1.1", "babel-core": "^6.9.1", "babel-eslint": "^6.1.2", "babel-loader": "^7.1.2", - "babel-preset-es2015": "^6.9.0", - "babel-plugin-external-helpers": "^6.22.0", "babel-plugin-add-module-exports": "^0.2.1", + "babel-plugin-external-helpers": "^6.22.0", + "babel-plugin-istanbul": "^4.1.4", "babel-plugin-transform-es2015-modules-umd": "^6.12.0", "babel-plugin-transform-runtime": "^6.9.0", + "babel-preset-es2015": "^6.9.0", "babel-preset-stage-2": "^6.5.0", + "basic-mouse-event-polyfill-phantomjs": "0.0.2", + "chai": "^3.5.0", + "chalk": "^1.1.3", + "codecov": "^2.2.0", + "copy-webpack-plugin": "^4.0.1", + "cross-env": "^5.0.5", + "css-loader": "^0.28.0", "eslint": "^2.10.2", + "eslint-config-standard": "^5.1.0", "eslint-friendly-formatter": "^2.0.7", "eslint-loader": "^1.3.0", "eslint-plugin-html": "^1.3.0", - "eslint-config-standard": "^5.1.0", "eslint-plugin-promise": "^1.0.8", "eslint-plugin-standard": "^1.3.2", - "webpack": "^3.4.1", - "webpack-dev-middleware": "^1.12.0", - "webpack-hot-middleware": "^2.18.2", - "webpack-merge": "^4.1.0", - "html-webpack-plugin": "^2.28.0", - "friendly-errors-webpack-plugin": "^1.1.3", - "stylus": "^0.54.5", - "stylus-loader": "^2.1.1", - "opn": "^4.0.2", "eventsource-polyfill": "^0.9.6", "express": "^4.14.1", - "rollup": "^0.43.0", - "rollup-plugin-babel": "^2.7.1", - "css-loader": "^0.28.0", - "postcss-loader": "^2.0.5", - "style-loader": "^0.13.1", - "vue-loader": "^11.3.4", - "vue-style-loader": "^2.0.5", - "vue-template-compiler": "^2.4.2", - "vue": "^2.4.2", - "vue-router": "^2.7.0", - "vue-i18n": "^7.2.0", - "autoprefixer": "^7.1.1", - "uglify-js": "^3.0.27", "extract-text-webpack-plugin": "^3.0.0", - "optimize-css-assets-webpack-plugin": "^1.3.0", - "copy-webpack-plugin": "^4.0.1", - "chalk": "^1.1.3", - "ora": "^1.2.0", - "rimraf": "^2.6.0", - "url-loader": "^0.5.9", "file-loader": "^0.11.1", - "vconsole": "^2.5.2", - "cross-env": "^5.0.5", + "friendly-errors-webpack-plugin": "^1.1.3", + "html-webpack-plugin": "^2.28.0", "karma": "^1.7.0", "karma-coverage": "^1.1.1", "karma-mocha": "^1.3.0", @@ -97,10 +78,30 @@ "karma-spec-reporter": "0.0.31", "karma-webpack": "^2.0.4", "mocha": "^3.5.0", - "chai": "^3.5.0", + "opn": "^4.0.2", + "optimize-css-assets-webpack-plugin": "^1.3.0", + "ora": "^1.2.0", + "postcss-loader": "^2.0.5", + "rimraf": "^2.6.0", + "rollup": "^0.43.0", + "rollup-plugin-babel": "^2.7.1", "sinon": "^2.1.0", "sinon-chai": "^2.13.0", - "babel-plugin-istanbul": "^4.1.4", - "codecov": "^2.2.0" + "style-loader": "^0.13.1", + "stylus": "^0.54.5", + "stylus-loader": "^2.1.1", + "uglify-js": "^3.0.27", + "url-loader": "^0.5.9", + "vconsole": "^2.5.2", + "vue": "^2.4.2", + "vue-i18n": "^7.2.0", + "vue-loader": "^11.3.4", + "vue-router": "^2.7.0", + "vue-style-loader": "^2.0.5", + "vue-template-compiler": "^2.4.2", + "webpack": "^3.4.1", + "webpack-dev-middleware": "^1.12.0", + "webpack-hot-middleware": "^2.18.2", + "webpack-merge": "^4.1.0" } } diff --git a/test/unit/specs/modules/dom.js b/test/unit/specs/modules/dom.js index 5ee40728..19d6f851 100644 --- a/test/unit/specs/modules/dom.js +++ b/test/unit/specs/modules/dom.js @@ -1,3 +1,5 @@ +import 'basic-mouse-event-polyfill-phantomjs' + import { addEvent, removeEvent, offset, getRect, preventDefaultException, tap, click, prepend } from 'scroll/util/dom' describe('dom.js', () => {