Created
August 2, 2014 06:18
-
-
Save hehongwei44/53f32fee8fded450c382 to your computer and use it in GitHub Desktop.
npm包的模版样例
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* 线上环境的package.json是不能添加任何注释,该例子仅注释说明字段的含义 | |
* @url: https://www.npmjs.org/doc/files/package.json.html | |
* */ | |
{ | |
"name": "micro-dialog", //包的名称,必填选项 | |
"version": "0.0.1", //包的版本号,必填选项 | |
"description": "简易对话框", //包的描述 | |
"keywords": ["micro-dialog"], //包的关键字,方便上线时查找 | |
"homepage": "https://github.com/hehongwei44/micro-dialog", //包的主页地址 | |
"bugs": { //bug提交处理的信息 | |
"url": "http://github.com/owner/project/issues", //bug提交的地址 | |
"email": "[email protected]" //bug提交的受理者 | |
}, | |
"license": { | |
"license": "BSD-3-Clause", | |
"url": "http://www.license.com" | |
}, | |
"author": [ | |
{ | |
"name": "Barney Rubble", | |
"email": "[email protected]", | |
"url": "http://barnyrubble.tumblr.com/" | |
} | |
], | |
"contributors": [ | |
{ | |
"name": "Barney Rubble", | |
"email": "[email protected]", | |
"url": "http://barnyrubble.tumblr.com/" | |
} | |
], | |
"main": "test/test.js", | |
"dependencies": { | |
"foo": "1.0.0 - 2.9999.9999", | |
"bar": ">=1.0.2 <2.1.2", | |
"baz": ">1.0.2 <=2.3.4", | |
"thr": "3.3.x" | |
}, | |
"repository": { | |
"type": "git", | |
"url": "http://github.com/npm/npm.git" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment