Ionic + IBM MobileFirst [英] Ionic + IBM MobileFirst

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

问题描述

我发现了一些有关此主题的帖子,但未能找到最佳解决方案。

I've found a few post on this topic but have not been able to find the best solution.

尝试将Ionic集成到IBM MobileFirst(Worklight)中。

Attempted to integrate Ionic into IBM MobileFirst (Worklight).

目前 - 我已经构建了一个普通的离子项目并将WWW文件夹移到'common'文件夹中。还添加了initOptions,main.js和messages.js。

At the moment - I have built a normal Ionic project and moved the WWW folder in the 'common' folder. Also added in the initOptions, main.js and messages.js.

MobileFirst有一个糟糕的构建过程 - 我讨厌必须部署到mobilefirst开发服务器+预览应用程序任何代码更改。我希望能在mobileFirst中使用某种类型的自动重装,或者至少使用离子正常开发并开展工作以将我的更改带入我的工作灯项目...这比我现在的情况更好。

MobileFirst has an awful build process - I hate having to deploy to a mobilefirst development server + preview app for any code changes. I am hoping to get some type of auto reload working within mobileFirst, or at least develop with ionic normally and hav ea job to bring my changes into my worklight project... something that is better than me current situation.

有没有人有一个实际自动构建或自动获取代码更改的示例项目?

Does anyone have a sample project that actually auto-builds or picks up code changes automatically?

非常感谢任何和所有帮助。

Any and all help is greatly appreciated.

推荐答案

为了查看Web组件(CSS,JavaScript,HTML)中的更改,需要重新构建当时Worklight的早期版本令人烦恼,现在是MobileFirst。我忘了当重建的需要被删除但是当然在Worklight 6.2及以后你现在只需要在你的浏览器中刷新。

The need to rebuild in order to see changes in your Web components (CSS, JavaScript, HTML) did used to be an annoyance in early versions of what was then Worklight and is now MobileFirst. I forget when the need for a rebuild was removed but certainly in Worklight 6.2 and beyond you now simply need to refresh in your browser.


UPDATE :如果使用MobileFirst 6.3,您需要确保您处于
合适的补丁级别。我发现简单的刷新在
6.3.0.00-20150106-1717 中不起作用,但是如果我更新(帮助 - >检查更新)到 6.3.0.00-20150214- 1702 然后编辑/保存/刷新工作为
预期。

UPDATE: If using MobileFirst 6.3 you need to ensure that you are on a suitable patch level. I find that simple refresh does not work in 6.3.0.00-20150106-1717, but if I update (Help->Check for Updates) to 6.3.0.00-20150214-1702 then edit/save/refresh works as expected.

我个人的做法总是有移动在我的项目中的Web环境,然后从控制台中选择。这会将应用程序加载到基于浏览器的Mobile Simulator中,您可以根据自己的目标形状因子进行定制。这有一个开始/刷新按钮,可以立即反映您的编辑。

My personal practice is always to have Mobile Web environment in my project and then choose that from the Console. This loads the application in the browser-based Mobile Simulator that you can tailor to fit your target form-factor. This has a "Go/Refresh" button that immediately reflects your edits.

或者,有些人现在不使用Studio,而是使用命令行界面。可能这可能更符合您的口味。您可以在此处下载

Alternatively, some folks these days do not use Studio, instead they use the Command Line Interfacer. Possibly this may be more to your taste. You can download it here.

这篇关于Ionic + IBM MobileFirst的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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