具有自耕农require.js HOWTO引导骨干应用启用 [英] Howto bootstrap Backbone app with yeoman having require.js enabled

查看:121
本文介绍了具有自耕农require.js HOWTO引导骨干应用启用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与自耕农现在玩了一段时间。我不知道如何实现中启动一个主干应用程序,并且在同一时间启用require.js。

I'm playing with yeoman for a time now. I wonder how I accomplish bootstrapping a Backbone application and having require.js enabled at the same time.

yeoman init

为我提供了一个安装在那里我可以在AMD样式模块的工作。

provides me with a setup where I can work with modules in AMD style.

yeoman init backbone:all

为我提供了一个骨干支架,但我不得不包括我的所有车型,收藏等index.html中手动。

provides me with a Backbone scaffold but I had to "include" all my models, collection etc. manually in index.html.

有没有办法兼得?

问候菲利克斯

推荐答案

有是已经是公开的问题这一点。添加您的想法有:)

There's already an open issue for this. Add your thoughts there :)

这篇关于具有自耕农require.js HOWTO引导骨干应用启用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆