[英]Is there any documentation on the package.json file?
Here's an instance of the package.json file that express.js generates 这是express.js生成的package.json文件的一个实例
{
"name": "packagename",
"version": "0.0.1",
"private": true,
"dependencies": {
"express": "2.5.5",
"stylus": "0.22.2"
}
}
It's fairly obvious that I can add packages to the dependencies object. 很明显,我可以将包添加到依赖项对象。 However I have no idea what
"private": true
means. 但是我不知道
"private": true
是什么"private": true
意思。 Nor do I know what syntax I can use in the dependencies value fields. 我也不知道我可以在依赖项值字段中使用什么语法。 I've Googled for quite a while without discovering anything.
我用Google搜索了一段时间而没有发现任何东西。
What I'm wondering is pretty much if a complete summary of all settings that the package.json file can contain exists, as I could not find one. 我想知道的是,如果package.json文件可以包含的所有设置的完整摘要存在,因为我找不到。 I haven't checked
man
since I'm on a windows PC. 因为我在Windows PC上,所以我没有检查过
man
。
Thanks 谢谢
You're looking for the output of npm help json
. 你正在寻找
npm help json
的输出。 It is available in Markdown format on NPM's GitHub project . 它在NPM的GitHub项目中以Markdown格式提供。
Also check out this interactive guide : 另请参阅此交互式指南 :
除了来自NPM的package.json的官方指南之外,来自Nodejitsu的人们为它做了一个很好的备忘单: http ://package.json.nodejitsu.com/
I've found this very useful... 我发现这非常有用......
https://npmjs.org/doc/json.html https://npmjs.org/doc/json.html
A package.json cheatsheet . 一个package.json备忘单 。 The most beautiful documentation that I could find for package.json.
我可以找到package.json最美的文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.