Skip to content

一款服务端打包工具,适用于零碎JS模块 #1121

Open
xiongsongsong opened this Issue Mar 5, 2014 · 6 comments

4 participants

@xiongsongsong

spm是一套完整的构建工具,但在处理零碎文件时,则显得比较繁琐和复杂。

因此制作了一款简易的,针对零碎文件的打包工具。

地址:https://github.com/xiongsongsong/autoMain

图解

2014-03-07 12 28 54

假设在根目录中存在init.js,则:

seajs.use('http://localhost:8003/init',function(obj){
    console.log(obj);
})

如果需要访问压缩的版本,请usehttp://localhost:8003/init?build

@army8735
seajs member
army8735 commented Mar 5, 2014

很好的工具~可以考虑下对老的有define进行兼容~

@xiongsongsong

@army8735 嗯,我去考虑下怎么兼容,给define(fn)形式的module自动生成一个id。

@xiongsongsong

@army8735 可以兼容define了。

@kmvan
kmvan commented Mar 7, 2014

有没有PHP版呢?

@army8735
seajs member
army8735 commented Mar 7, 2014

抽空我弄个GUI的exe/bin

@xiongsongsong

@kmvan 抱歉暂时没有PHP版本,我对php不太熟练了,加上精力不够。安装Node的环境目前来说成本很低的哈。

@hotoo hotoo added the sharing label May 18, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.