配置项

参考: https://docs.npmjs.com/files/package.json

main: 

The main field is a module ID that is the primary entry point to your program. That is, 
if your package is named foo, and a user installs it, and then does require("foo"), 
then your main module's exports object will be returned.

This should be a module ID relative to the root of your package folder.

NPM私有包开发

1. 创建npm账号 https://www.npmjs.com/

2. 创建org

3. npm adduser

4. npm login

5. npm init (--scope="orgName") (添加以下文件 .npmignore reame.md )

6. npm publish --access public(restricted)



Markdown文件编辑 : https://en.wikipedia.org/wiki/Markdown

results matching ""

    No results matching ""