{--项目基本信息
"name": "sinostandar",// 项目名称
"version": "1.0.0",// 版本
"description": "A Vue.js project",//描述
"author": "chend <13718063950@163.com>",//作者
"private": true,//是否是死人项目
"scripts": {--指定了运行脚本命令的npm命令行缩写
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",// npm run dev 的 dev
"start": "npm run dev",
"unit": "jest --config test/unit/jest.conf.js --coverage",
"e2e": "node test/e2e/runner.js",
"test": "npm run unit && npm run e2e",
"lint": "eslint --ext .js,.vue src test/unit test/e2e/specs",
"build": "node build/build.js"
},
"dependencies": {--项目运行所依赖的模块
"i": "^0.3.6",
"vue": "^2.5.2",// 项目依赖vue.js
"vue-router": "^3.0.1"//项目依赖vue-router
},
"devDependencies": {--项目开发所需要的模块
"autoprefixer": "^7.1.2",// 是用于给css3属性自动加属性前缀的
"babel-core": "^6.22.1",// babel相关的都是用于处理es6语法的
"babel-eslint": "^8.2.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-jest": "^21.0.2",
"babel-loader": "^7.1.1",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"babel-register": "^6.22.0",
"chalk": "^2.0.1",// chalk适用于格式化输出命令行信息的,比如run dev以后的start...颜色
"chromedriver": "^2.27.2",//没用
"copy-webpack-plugin": "^4.0.1",//复制包不知道怎么用
"cross-spawn": "^5.0.1",//跨平台没用
"css-loader": "^0.28.0",// 所有的*-loader都是 webpack的扩展,webpack是把各种资源理解为一个模块,css-loader就是读取css模块的加载器
"element-ui": "^2.0.11",//element-ui
"eslint": "^4.15.0",// eslint 是代码格式化检查工具,开启以后要严格遵照它规定的格式进行开发
"eslint-config-standard": "^10.2.1",
"eslint-friendly-formatter": "^3.0.0",
"eslint-loader": "^1.7.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-node": "^5.2.0",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-standard": "^3.0.1",
"eslint-plugin-vue": "^4.0.0",
"extract-text-webpack-plugin": "^3.0.0",//该插件的主要是为了抽离css样式,防止将样式打包在js中引起页面样式加载错乱的现象;
"file-loader": "^1.1.4",//文件加载器
"friendly-errors-webpack-plugin": "^1.6.1",优化错误提示
"html-webpack-plugin": "^2.30.1",// webpack 里载入和处理html的插件
"jest": "^22.0.4",//没用
"jest-serializer-vue": "^0.3.0",//没用
"nightwatch": "^0.9.12",//基于Nodejs的验收测试框架//没用
"node-notifier": "^5.1.2",//节点通知
"optimize-css-assets-webpack-plugin": "^3.2.0",//css优化插件//没用
"ora": "^1.2.0",
"portfinder": "^1.0.13",
"postcss-import": "^11.0.0",//管理css文件
"postcss-loader": "^2.0.8",
"postcss-url": "^7.2.1",
"rimraf": "^2.6.0",//没用
"selenium-server": "^3.0.1",//没用
"semver": "^5.3.0",// 版本检查工具 //没用
"shelljs": "^0.7.6",// selljs是在node里跑shell命令的工具,比如"rm -rf"
"style-loader": "^0.20.1",
"uglifyjs-webpack-plugin": "^1.1.1",
"url-loader": "^0.5.8",// 配合webpack的加载器
"vue-jest": "^1.0.2",
"vue-loader": "^13.3.0",// 配合webpack的加载器
"vue-style-loader": "^3.0.1",// 配合webpack的加载器
"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"
},
"engines":-- 指明了项目所需要的node.js版本
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
转载于:https://www.cnblogs.com/vindycxy/p/8482172.html