{ "name": "项目名", "version": "1.0.0", "description": "项目描述", "author": "Handsome_jm", "private": true, "scripts": { "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", "start": "npm run dev", "unit": "jest test/unit/specs --coverage", "e2e": "node test/e2e/runner.js", "test": "npm run unit && npm run e2e", "lint": "eslint --ext .js,.vue src test/unit/specs test/e2e/specs", "build": "node build/build.js" }, "dependencies": { "axios": "^0.17.1", "fastclick": "^1.0.6", "less": "^2.7.3", "less-loader": "^4.0.5", "vue": "^2.5.2", "vue-router": "^3.0.1", "animate.css": "^3.6.1" }, "devDependencies": { "autoprefixer": "^7.1.2", "babel-core": "^6.22.1", "babel-eslint": "^7.1.1", "babel-jest": "^21.0.2", "babel-loader": "^7.1.1", "babel-plugin-transform-runtime": "^6.22.0", "babel-preset-env": "^1.3.2", "babel-preset-stage-2": "^6.22.0", "babel-register": "^6.22.0", "chalk": "^2.0.1", "chromedriver": "^2.27.2", "copy-webpack-plugin": "^4.0.1", "cross-spawn": "^5.0.1", "css-loader": "^0.28.0", "es6-promise": "^4.1.1", "eslint": "^3.19.0", "eslint-config-standard": "^10.2.1", "eslint-friendly-formatter": "^3.0.0", "eslint-loader": "^1.7.1", "eslint-plugin-html": "^3.0.0", "eslint-plugin-import": "^2.7.0", "eslint-plugin-node": "^5.2.0", "eslint-plugin-promise": "^3.4.0", "eslint-plugin-standard": "^3.0.1", "eventsource-polyfill": "^0.9.6", "extract-text-webpack-plugin": "^3.0.0", "fastclick": "^1.0.6", "file-loader": "^1.1.4", "friendly-errors-webpack-plugin": "^1.6.1", "html-webpack-plugin": "^2.30.1", "jest": "^21.2.0", "nightwatch": "^0.9.12", "node-notifier": "^5.1.2", "optimize-css-assets-webpack-plugin": "^3.2.0", "ora": "^1.2.0", "portfinder": "^1.0.13", "postcss-import": "^11.0.0", "postcss-loader": "^2.0.8", "rimraf": "^2.6.0", "selenium-server": "^3.0.1", "semver": "^5.3.0", "shelljs": "^0.7.6", "url-loader": "^0.5.8", "vue-jest": "^1.0.2", "vue-loader": "^13.3.0", "vue-style-loader": "^3.0.1", "vue-template-compiler": "^2.5.2", "webpack": "^3.6.0", "webpack-bundle-analyzer": "^2.9.0", "webpack-dev-server": "^2.9.1", "webpack-merge": "^4.1.0" }, "jest": { "moduleFileExtensions": [ "js", "json", "vue" ], "moduleNameMapper": { "^@/(.*)$": "<rootDir>/src/$1" }, "transform": { "^.+\.js$": "<rootDir>/node_modules/babel-jest", ".*\.(vue)$": "<rootDir>/node_modules/vue-jest" }, "setupFiles": [ "<rootDir>/test/unit/setup" ], "mapCoverage": true, "coverageDirectory": "<rootDir>/test/unit/coverage", "collectCoverageFrom": [ "src/**/*.{js,vue}", "!src/main.js", "!src/router/index.js", "!**/node_modules/**" ] }, "engines": { "node": ">= 4.0.0", "npm": ">= 3.0.0" }, "browserslist": [ "> 1%", "last 2 versions", "not ie <= 8" ] }
其中包括:
dependencies部分
1、"axios": "^0.17.1"
引用axios 使用ajax
2、"fastclick": "^1.0.6"
引用axios 处理移动端点击延迟问题
3、"less": "^2.7.3",
"less-loader": "^4.0.5"
引用less 使用less编译css
4、"vue": "^2.5.2",
"vue-router": "^3.0.1"
vue项目基本插件 + 路由
5、"animate.css"
"animate.css": "^3.6.1"
animate动画css
devDependencies部分
1、"es6-promise": "^4.1.1"
引用es6-promise 处理axios兼容问题