建立自己的bower 私库的方式参考http://blog.csdn.net/nsrainbow/article/details/35988611 这篇文章
我们如果想注册自己创造的js库到私库怎么办呢?
前提条件
你必须在 github 有一个库
注册
$ curl -X POST http://<serverip>:5678/registerPackages -d '{"packages":[{"name":"testbowerregistry","repo":"https://github.com/alexxiyang/testbowerregistry.git"}]}' -H "Content-Type: application/json"
如果有带权限控制的话
$ curl -X POST http://<span style="font-family: Arial, Helvetica, sans-serif;"><serverip></span><span style="font-family: Arial, Helvetica, sans-serif;">:5678/registerPackages -d '{"packages":[{"name":"testbowerregistry","repo":"https://github.com/alexxiyang/testbowerregistry.git"}]}' -H "Content-Type: application/json" --header "Auth-Key:123456"</span>
删除
$ curl -X POST http://xmseapp01:5678/removePackage -d '{"name":"testbowerregistry"}' -H "Content-Type: application/json"