aralejs得spm和新版 seajs(gruntjs) 的关系问题

64 views
Skip to first unread message

古井好月

unread,
Jun 24, 2013, 6:10:07 AM6/24/13
to se...@googlegroups.com
升级了新版seajs, 和以前的有很多得不同, 现在碰到一个问题:

新版本的 aralejs 是用spm 来创建项目和开发, 

如果我要做类似seajs/examples/下的todo 项目的话, spm 和 grunt 该如何配合使用呢?

因为spm 不会生成 gruntfile, 不知道我的理解是否正确? 

我现在的需求就是在类似example/todo的项目中使用 aralejs 的组件, 而这些组件是通过spm install 来下载安装的。 

我有必要先用 spm init xxx && spm install 来生成arale 项目和组件, 然后用grunt-init 来新建 自己得 grunt 项目吗?

谢谢!


Frank Wang

unread,
Jun 24, 2013, 11:17:06 PM6/24/13
to seajs
如果遵守 arale 的模块规范(http://aralejs.org/docs/develop-components.html),直接用 spm 就好。

如果有自己的定制规范,直接用 grunt 就好。

如果要混用,建议构建部分只用 grunt,spm 只用来 install 模块。


2013/6/24 古井好月 <hto...@gmail.com>


--
You received this message because you are subscribed to the Google Groups "seajs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seajs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
王保平 / 玉伯(射雕)
送人玫瑰手有余香

古井好月

unread,
Jun 25, 2013, 1:47:34 AM6/25/13
to se...@googlegroups.com

基本理解了, 我现在用grunt-init 来创建项目, 在生成的package.json 里面加入对

spm 的设置, 然后用spm install 来安装,  整个项目用grunt 来build , 这样的操作是否正确?

Frank Wang

unread,
Jun 25, 2013, 3:19:30 AM6/25/13
to seajs
对的


2013/6/25 古井好月 <hto...@gmail.com>

tom hu

unread,
Jun 25, 2013, 4:20:35 AM6/25/13
to se...@googlegroups.com
再次感谢!


--
You received this message because you are subscribed to a topic in the Google Groups "seajs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/seajs/v310svFM0XI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to seajs+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages