[英]Best workflow for to work with Ionic2 and Angular2
I'm usually developing PHP backend apps. 我通常在开发PHP后端应用程序。 I'm developing on Windows and use Vagrant to create virtual machine.
我正在Windows上进行开发,并使用Vagrant创建虚拟机。
Workflow looks like that: 工作流程如下所示:
Almost everything it's fine with that workflow (sometimes I have to download some generated files on virtual machine), but that workflow is not the best for working with Ionic2 and Angular. 该工作流程几乎一切正常(有时我必须在虚拟机上下载一些生成的文件),但是该工作流程并不是使用Ionic2和Angular的最佳方法。
Ionic uses many nodejs modules -> this causing many problems in PhpStorm to hinting errors and code completion. Ionic使用了许多nodejs模块->这在PhpStorm中引起很多问题,提示错误和代码完成。 Second problem is debuging I can't connect typescript debugging from PhpStorm because all files all generated by gulp on virtual machine.
第二个问题是调试我无法连接PhpStorm的打字稿调试,因为所有文件都是由gulp在虚拟机上生成的。
My question is: 我的问题是:
If you have Ionic CLI installed you can start new project by ionic start command. 如果安装了Ionic CLI,则可以通过ionic start命令启动新项目。 It provides you workflow with everything you can need.
它为您提供所需的一切工作流。 For example:
例如:
$ ionic start cutePuppyPics --v2 //create new project $ cd cutePuppyPics $ ionic serve //start server, live reload etc.
Yes, you should install it all on your non-virutal desktop, because if you want to test app on your device, it will be hard to link this device to ADB in your virtual machine. 是的,应该将其全部安装在非虚拟桌面上,因为如果要在设备上测试应用程序,则很难将该设备链接到虚拟机中的ADB。
It works very well with PhpStorm :) 与PhpStorm一起使用效果很好:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.