1. cd myPlugin & npm adduser
2. npm i -g plugman(if not install)
3. plugman createpackagejson ./ (make sure ecosystem:cordova in the keywords member)
4. npm publlish ./
注意如果publish时提示413 Request Entity Too Large...nginx/1.4.6,则将npm源切换为官方源即可
本文介绍了一套详细的 Cordova 插件发布流程,包括使用 cdmyPlugin 和 npm 进行用户添加、安装插件管理器、创建 package.json 文件及通过 npm 发布等关键步骤。
1. cd myPlugin & npm adduser
2. npm i -g plugman(if not install)
3. plugman createpackagejson ./ (make sure ecosystem:cordova in the keywords member)
4. npm publlish ./
注意如果publish时提示413 Request Entity Too Large...nginx/1.4.6,则将npm源切换为官方源即可

被折叠的 条评论
为什么被折叠?