Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问有没有用spm3构建的demo #35

Open
fancyboynet opened this issue May 22, 2015 · 6 comments
Open

请问有没有用spm3构建的demo #35

fancyboynet opened this issue May 22, 2015 · 6 comments

Comments

@fancyboynet
Copy link

如何迁移,关键步骤?

@chengbapi
Copy link
Collaborator

构建项目可以用 yeoman
gazira有一个构建项目的工具 https://github.com/caolvchong/gazira-cli
但是不能自定义目录树的

@fancyboynet
Copy link
Author

@chengbapi 可能我没描述清楚,我是想问下现有的基于gazira的项目如何迁移到spm3?如何去seajs

@caolvchong
Copy link
Owner

我大概是这么做的:

  1. 搭建私有源,参考 https://github.com/spmjs/spmjs.io , 大部分gazira的包在 https://github.com/gazira
  2. 代码里面 去 CMD,即把 define 去了, require 路径修改(按spm3方式)
  3. 打包部署,还是参看 spm3。至于实际用什么方式构建可以自己选择

@fancyboynet
Copy link
Author

@caolvchong 嗯嗯,谢谢,是不是还要修改对应的页面引用,每个页面引用一个不同的js文件

@caolvchong
Copy link
Owner

最近太忙,周末得空写个demo吧

@wsw
Copy link

wsw commented May 29, 2015

用spm3,就可以不用加入seajs了?spm3好像变化好大了。

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

No branches or pull requests

4 participants