{
"name": "test", //当前目录名,全部小写
"version": "1.0.0", //版本号,x.x.x 的格式
"description": "", //描述信息,有助于搜索
"main": "index.js", //入口文件,一般都是 index.js
"scripts":{ //支持的脚本,默认是一个空的 test
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": { //在生产环境中需要用到的依赖
"babel-loader": "^7.1.5",
"gulp": "^4.0.2",
"gulp-imagemin": "^6.1.1",
"gulp-less": "^4.0.1",
"gulp-minify-css": "^1.2.4",
"gulp-uglify": "^3.0.2",
"mixin": "^0.2.0",
"react": "^16.11.0",
"react-dom": "^16.11.0",
"webpack-cli": "^3.3.10"
},
"devDependencies": { //在开发、测试环境中用到的依赖
"@babel/cli": "^7.6.4",
"@babel/core": "^7.6.4",
"@babel/preset-es2015": "^7.0.0-beta.53",
"@babel/preset-react": "^7.6.3",
"webpack": "^4.41.2"
},
"keywords": [], //关键字,有助于使用 npm search 搜索到你的项目
"author": "", //作者信息
"license": "ISC", //许可证默认是 MIT
"bugs": "", //当前项目的一些错误信息,如果有的话
}
网友评论