发布
http://cordova.apache.org/docs/en//latest/guide/hybrid/plugins/index.html#publishing-plugins
You can publish your plugin to any npmjs-based registry, but the recommended one is the npm registry. Other developers can install your plugin automatically using either plugman or the Cordova CLI.
To publish a plugin to npm you need to follow these steps:
- install the plugman CLI:
$ npm install -g plugman
- create a package.json file for your plugin:
$ plugman createpackagejson /path/to/your/plugin
- publish it:(进入插件文件夹npm publish ,否则报错)
$ npm adduser # that is if you don't have an account yet
$ npm publish /path/to/your/plugin