Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

支持在 package.json 里声明 spm.registry 的讨论 #1014

Closed
sorrycc opened this issue Sep 15, 2014 · 5 comments
Closed

支持在 package.json 里声明 spm.registry 的讨论 #1014

sorrycc opened this issue Sep 15, 2014 · 5 comments
Labels
Milestone

Comments

@sorrycc
Copy link
Member

sorrycc commented Sep 15, 2014

alipay- 的 pkg 有些是发外网的,有些是发内网的,容易误发布。通过在 package.json 指定 registry 可避免误发。

{
  "name": "a",
  "version": "0.1.0",
  "spm": {
+    "registry": "http://spm@alipay"
  }
}
@popomore
Copy link
Member

+1—
Sent from Mailbox for iPhone

On Mon, Sep 15, 2014 at 10:33 AM, chencheng (云谦) notifications@github.com
wrote:

alipay- 的 pkg 有些是发外网的,有些是发内网的,容易误发布。通过在 package.json 指定 registry 可避免误发。

{
  "name": "a",
  "version": "0.1.0",
  "spm": {
+    "registry": "http://spm@alipay"
  }
}

Reply to this email directly or view it on GitHub:
#1014

@hotoo
Copy link
Member

hotoo commented Sep 15, 2014

这个会不会涉嫌泄漏公司内部信息?

@hotoo
Copy link
Member

hotoo commented Sep 15, 2014

我一般是写 Makefile ,使用时只需要 make publish 即可,一键发布到源、打标签等操作。

publish:
    @aspm publish
    @aspm doc publish
    @git tag $(version)
    @git push origin $(version)

@afc163
Copy link
Member

afc163 commented Sep 15, 2014

private 够不够用?

@popomore
Copy link
Member

感觉 registry 比 private 好点,看配置也能知道发到哪个源上去。

@sorrycc sorrycc mentioned this issue Oct 21, 2014
@sorrycc sorrycc closed this as completed Nov 4, 2014
@popomore popomore added this to the 3.3 milestone Dec 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants