向开源项目推广 spm 的汇总(spm popularize)
afc163 opened this issue · 6 comments
afc163 commented
已发的 pull request 列表:
✅ jquery✅ moment❌ lodash✅ store.js✅ scrollMonitor🕙 expect.js❌ backbone❌ underscore✅ anijs🕙 keymaster❌ handlebars✅ jsUri✅ intro.js🕙 list.js✅ selection.js🕙 spin.js✅ animate.css🕙 formatter.js🕙 Placeholders.js❌ blueimp-md5✅ d3✅ zeroclipboard🕙 css-loaders✅ Mock🕙 topbar✅ mustache✅ vue✅ randomColor🕙 Numeral-js✅ interact.js❌ Cookies🕙 CodeMirror🕙 chinese-lunar✅ touchjs❌ multiline✅ echo.js✅ async✅ chancejs
结果统计
✅ 成功: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
星星之火可以燎原。 - 太祖
tiye commented
失败的几个说的往 package.json
里添加 namespace 的问题是回事啊
只能加 spm
属性, 不能兼容 main
吗?
afc163 commented
只有 package.json 的 meta 信息是公用的,这种运行时和构建时的属性的还是分开比较好,界限比较清晰。
popomore commented
如果同时支持 node 和 browser,而代码又不同,那么兼容 main 会很麻烦吧。
sorrycc commented
试了下 vue,build 失败。
-
有循环依赖
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
-
这里有个 require 目录的写法,spm 目前不支持
https://github.com/spmjs/vue/blob/master/src/main.js#L13
popomore commented
require 目录已经支持了,循环依赖还比较麻烦
afc163 commented