spmjs / spm

Brand new static package manager.
http://spmjs.io
Other
903 stars 180 forks source link

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

Closed afc163 closed 8 years ago

afc163 commented 10 years ago

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

已发的 pull request 列表:


结果统计

欢迎大家也来帮忙一起推广。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

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

tiye commented 10 years ago

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

afc163 commented 10 years ago

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

popomore commented 10 years ago

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

sorrycc commented 10 years ago

试了下 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 commented 10 years ago

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

afc163 commented 10 years ago

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