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

向开源项目推广 spm 的汇总(spm popularize) #781

Closed
afc163 opened this issue May 16, 2014 · 6 comments
Closed

向开源项目推广 spm 的汇总(spm popularize) #781

afc163 opened this issue May 16, 2014 · 6 comments

Comments

@afc163
Copy link
Member

afc163 commented May 16, 2014

迁移业界优秀模块到 spmjs.io 并反推的简易教程

已发的 pull request 列表:


结果统计

  • ✅ 成功:20
  • ❌ 失败:7
  • 🕙 未回应:11

欢迎大家也来帮忙一起推广。We need you!

推广模板

A nice package manager: http://spmjs.io
Documentation: http://spmjs.io/documentation

http://spmjs.io/package/snabbt.js

---

It is a browser-side package manager popular in China, suppling a complete lifecycle managment of package via [spm](https://github.com/spmjs/spm/tree/master).

> If you need ownership of snabbt.js in spmjs, I would like add it for your account after signing in http://spmjs.io.

spmjs/spm#781

星星之火可以燎原。 - 太祖

@afc163 afc163 changed the title 关于给开源项目推广 spm@3.x 的行为汇总 向开源项目推广 spm 的汇总 May 16, 2014
@tiye
Copy link

tiye commented May 29, 2014

失败的几个说的往 package.json 里添加 namespace 的问题是回事啊
只能加 spm 属性, 不能兼容 main 吗?

@afc163
Copy link
Member Author

afc163 commented May 29, 2014

只有 package.json 的 meta 信息是公用的,这种运行时和构建时的属性的还是分开比较好,界限比较清晰。

@popomore
Copy link
Member

如果同时支持 node 和 browser,而代码又不同,那么兼容 main 会很麻烦吧。

@afc163 afc163 added this to the 3.0 milestone May 29, 2014
@sorrycc
Copy link
Member

sorrycc commented Jun 2, 2014

试了下 vue,build 失败。

  1. 有循环依赖

          start: build vue@0.10.4
      arguments: dest = dist
      arguments: cwd = $CWD
      arguments: include = relative
      arguments: ignore =
      arguments: idleading = {{name}}/{{version}}
      arguments: install = true
        package: analyse infomation
          error: found src/viewmodel.js has recursive dependency
  2. 这里有个 require 目录的写法,spm 目前不支持
    https://github.com/spmjs/vue/blob/master/src/main.js#L13

@popomore
Copy link
Member

popomore commented Jun 3, 2014

require 目录已经支持了,循环依赖还比较麻烦

@afc163 afc163 modified the milestones: 3.0, 3.1 Jun 10, 2014
@afc163 afc163 changed the title 向开源项目推广 spm 的汇总 向开源项目推广 spm 的汇总(spm popularize) Jul 15, 2014
@sorrycc sorrycc removed this from the 3.1 milestone Jul 22, 2014
@afc163
Copy link
Member Author

afc163 commented Aug 20, 2014

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants