Skip to content

Instantly share code, notes, and snippets.

@hehongwei44
Created August 2, 2014 06:18
Show Gist options
  • Save hehongwei44/53f32fee8fded450c382 to your computer and use it in GitHub Desktop.
Save hehongwei44/53f32fee8fded450c382 to your computer and use it in GitHub Desktop.
npm包的模版样例
/**
*
* 线上环境的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": "project@hostname.com" //bug提交的受理者
},
"license": {
"license": "BSD-3-Clause",
"url": "http://www.license.com"
},
"author": [
{
"name": "Barney Rubble",
"email": "b@rubble.com",
"url": "http://barnyrubble.tumblr.com/"
}
],
"contributors": [
{
"name": "Barney Rubble",
"email": "b@rubble.com",
"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