package.json里面配置的啥


{ "name": "Hello World", // 包名. "version": "0.0.1", //包的版本号 "author": "张三", //包的作者 "description": "第一个node.js程序", //包的描述 "keywords": [ //关键字。方便使用者在 npm search中搜索。格式为字符串。 "node.js", "javascript" ], "repository": { //用于指示源代码存放的位置 "type": "git", "url": "https://path/to/url" }, "license": "MIT", "engines": { //指明了该项目所需要的node.js版本 "node": "0.10.x" }, "bugs": { "url": "http://path/to/bug", "email": "bug@example.com" }, "contributors": [ //包的其他贡献者 { "name": "李四", "email": "lisi@example.com" } ], "scripts": { //指定了运行脚本命令的npm命令行缩写,使用scripts字段定义脚本命令。 "start": "node index.js" }, "dependencies": { // 生产/开发环境依赖包列表 "express": "latest", "mongoose": "~3.8.3", "handlebars-runtime": "~1.0.12", "express3-handlebars": "~0.5.0", "MD5": "~1.2.0" }, "devDependencies": { //指定项目开发所需要的模块。 "bower": "~1.2.8", "grunt": "~0.4.1", "grunt-contrib-concat": "~0.3.0", "grunt-contrib-jshint": "~0.7.2", "grunt-contrib-uglify": "~0.2.7", "grunt-contrib-clean": "~0.5.0", "browserify": "2.36.1", "grunt-browserify": "~1.3.0", } }


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM