删除生产环境依赖, 添加测试依赖
This commit is contained in:
parent
2a19969d8c
commit
833be494bb
26
package.json
26
package.json
@ -5,7 +5,9 @@
|
||||
"main": "layui.js",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
"test": "karma start karma.conf.js",
|
||||
"test:cov": "npm test -- --reporters mocha,coverage",
|
||||
"test:watch": "npm test -- --auto-watch --no-single-run"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@ -23,7 +25,18 @@
|
||||
"gulp-rename": "^1.2.2",
|
||||
"gulp-uglify": "^1.5.4",
|
||||
"gulp-zip": "^4.0.0",
|
||||
"minimist": "^1.2.0"
|
||||
"minimist": "^1.2.0",
|
||||
"chai": "^3.5.0",
|
||||
"karma": "^1.5.0",
|
||||
"karma-chai": "^0.1.0",
|
||||
"karma-chai-sinon": "^0.1.5",
|
||||
"karma-coverage": "^1.1.1",
|
||||
"karma-mocha": "^1.3.0",
|
||||
"karma-mocha-reporter": "^2.2.3",
|
||||
"karma-phantomjs-launcher": "^1.0.4",
|
||||
"mocha": "^3.2.0",
|
||||
"sinon": "^2.0.0",
|
||||
"sinon-chai": "^2.8.0"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sentsin/layui/issues"
|
||||
@ -33,15 +46,6 @@
|
||||
"test": "test"
|
||||
},
|
||||
"dependencies": {
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-uglify": "^1.5.4",
|
||||
"gulp-minify-css": "^1.2.4",
|
||||
"gulp-concat": "^2.6.0",
|
||||
"gulp-header": "^1.8.8",
|
||||
"gulp-if": "^2.0.1",
|
||||
"gulp-rename": "^1.2.2",
|
||||
"del": "^2.2.2",
|
||||
"minimist": "^1.2.0"
|
||||
},
|
||||
"keywords": [
|
||||
"layui",
|
||||
|
Loading…
Reference in New Issue
Block a user