1. 编写 package.json
注意填写name, version,main, description,keywords, dependencies
可参见https://github.com/pgfxm/gulp-automerge/blob/master/package.json
2. 编写 index.js
可参见:https://github.com/pgfxm/gulp-automerge/blob/master/index.js
3. 注册npmjs
4. 添加用户信息
npm addusernpm login
5. 发布
npm publish
啦啦啦,不要重名,此时,你就可以看到你的插件上传上去了
https://www.npmjs.com/package/gulp-automerge
6. update
更新 package.json 中的 version, `npm publish`
网友评论