GWT-Bootstrap与GwtBootstrap3 [英] GWT-Bootstrap vs. GwtBootstrap3

查看:131
本文介绍了GWT-Bootstrap与GwtBootstrap3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,在GWT中有两个用于Twitter Bootstrap集成的库。有 GWT-Bootstrap GwtBootstrap3 。我刚开始创建一个基于GWT-Bootstrap的项目,因为我没有意识到还有另外一个GWT Bootstrap集成。



这两个项目在GitHub上看起来非常活跃,尽管GWT-Bootstrap确实有更多的成员。我知道GWT-Bootstrap基于Bootstrap版本2.另一方面,GwtBootstrap3包装Bootstrap版本3,似乎还有一些可用的小部件。由于GWT-Bootstrap项目仍然具有动态性,因此我认为它们迟早会转向版本3.

那么这两个项目有什么区别?有人对他们有经验吗?你会选择哪一个? GwtBootstrap3是否值得开发一个已经正在运行的项目?

GwtBootstrap3 。在我开始使用GwtBootstrap3之前,我一直在使用GWT-Bootstrap,修复了一些bug并添加了一些功能。当Bootstrap 3发布时,我决定从头开始创建一个新项目,因为Bootstrap 2和3之间的许多变化。一些组件被删除,而新的被添加,CSS类已经改变等。另外BS3的主要焦点是移动优先。关于GWT-Bootstrap,这意味着很多重构。基于BS3的GWT-Bootstrap版本肯定不会向后兼容。我不确定GWT-Bootstrap的迁移有多远,请参阅#448 问题。



虽然并非所有功能都已在GwtBootstrap3中实现,并且需要整理一些问题,但我会说GwtBootstrap3已准备好用于新的项目。一些真实的生活项目已经使用GwtBootstrap3实施。从GWT-Bootstrap的迁移可能是可能的,但由于我们不打算成为GWT-Bootstrap兼容,所以当然需要重构。



在设计GwtBootstrap3时,我们非常小心地将任何第三方组件外包到额外模块。在这个模块中,你会发现不属于核心BS3发行版的有用的小部件。不幸的是,GWT-Bootstrap将核心组件和第三方组件混合到一个库中,这使得它不必要的复杂和难以维护。



如果你满意BS2,那么你应该坚持使用GWT-Bootstrap。

如果你想使用BS3,你现在唯一的选择似乎是GwtBootstrap3。


As far as I can tell there are two librarys for Twitter Bootstrap integration in GWT. There is GWT-Bootstrap and GwtBootstrap3. I have just started a project built on GWT-Bootstrap, since I did not realize that there is another GWT Bootstrap integration out there.

Both project look pretty active on GitHub, althought GWT-Bootstrap does have more members. I understand that GWT-Bootstrap is based on Bootstrap version 2. On the other hand GwtBootstrap3 wrapps Bootstrap version 3 and seems to have some more widgets avaliable. Since the GWT-Bootstrap project is still avtive, I assume they will move to version 3 as well, sooner or later.

So what is the difference between the two projects? Does someone have experience with both of them? Which would you choose? Is GwtBootstrap3 worth to swicht an already running project?

解决方案

I'm the author of GwtBootstrap3. Before I started to work on GwtBootstrap3 I've been using GWT-Bootstrap, fixed some bugs and added some features. When Bootstrap 3 was released I decided to create a new project from scratch because lots has changed between Bootstrap 2 and 3. Some components were removed while new ones were added, CSS classes have changed etc. Also BS3's primary focus was "mobile first". Regarding GWT-Bootstrap this means lots of refactoring. A GWT-Bootstrap version based on BS3 would definitively not be backwards-compatible. I'm not sure how far GWT-Bootstrap's migration is, see issue #448.

While not all features have yet been implemented in GwtBootstrap3 and some issues need to be sorted out, I would say that GwtBootstrap3 is ready for use in new projects. Some real life projects were already implemented using GwtBootstrap3. A migration from GWT-Bootstrap might be possible but since we didn't intend to be GWT-Bootstrap compatible refactoring is certainly required.

When designing GwtBootstrap3 we took great care to outsource any third party components into an extra module. In this module you'll find useful widgets that are not part of the core BS3 distribution. Unfortunately GWT-Bootstrap mixes core and third party components into one library which imho makes it unnecessarily complex and hard to maintain.

If you're happy with BS2 then you should stick with GWT-Bootstrap.
If you want to use BS3 your only options seems to be GwtBootstrap3 at the moment.

这篇关于GWT-Bootstrap与GwtBootstrap3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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