当我具有离子CLI 3.0.0时可以运行离子v1项目吗 [英] Can i run the ionic v1 project when i have ionic CLI 3.0.0
问题描述
现在我有了离子3.0.0的最新版本.我的离子版本
: 3.0.0
.
Now i have the latest version of ionic 3.0.0. My ionic version
: 3.0.0
.
还有我的离子信息
:
global packages:
@ionic/cli-utils : 1.0.0
Ionic CLI : 3.0.0
System:
Node : v7.3.0
OS : macOS Sierra
Xcode : Xcode 8.3.2 Build version 8E2002
ios-deploy : 1.9.0
ios-sim : 5.0.13
现在我有两个问题.我搜索了,但无法弄清楚.如果有人可以回答.这将对像我这样的许多新手有所帮助.
Now i have two question in this. I searched , but not able to get the clear. If any one can answer. It will be helpful for many new bie like me.
所以
1.现在我有离子3.0.0.然后,如果我想在ionic v2中打开项目.我将给ionic ion newapp空白--v2或(--ts_).我将使用ionic 3.0.0中的一些更新插件.它会解决.还是我需要为离子版本3创建一个单独的项目?
1.Now i have ionic 3.0.0. Then if i want to open the project in ionic v2. i will give ` ionic start newapp blank --v2 or (--ts_)'. And i will use some updated plugin having in ionic 3.0.0. Does it will work out. or i need to create a seperate project for ionic version 3 ??
- 现在我有一个旧的ionic 1项目,我仍在努力.因此,一旦我将离子更新为
3.0.0
.现在我要做的是:
- Now i have old ionic 1 project that i am still working on. So once i update my ionic to
3.0.0
. Now what i done is :
ionic开始newapp空白--v1
,然后我将旧项目 www
文件夹复制到此 newapp
,然后替换了它.
ionic start newapp blank --v1
then i copied my old project www
folder to this newapp
and i replaced it.
我的问题是.我仍然可以使用angular js1对此项目进行编码.而make ionic release
表示我何时要将其放到我的应用商店中.请问有什么问题会发生.因为我已经将该项目创建为-v1
.
My question is. Still can i use angular js1 to code for this project also. And while make ionic release
means when i want to put it in my app store. Does any problem will occur. Because i have create this project as --v1
.
如果是,当我创建一个新项目时, ionic启动newapp空白--v1
,它问我将此应用程序链接到您的Ionic Dashboard,以使用Ionic View之类的工具吗?y/N
:我该怎么办
If yes when i create a new project ionic start newapp blank --v1
its asking me Link this app to your Ionic Dashboard to use tools like Ionic View? y/N
: what should i need to do
请先澄清一下我..谢谢
Please clarify me..thanks in advance
推荐答案
使用ionic-cli 3.0版,您应该可以处理所有版本的ionic项目.
Using the ionic-cli version 3.0 you should be able to work on all versions of ionic projects.
默认情况下,新的cli将创建一个ionic v3应用程序.如果要创建离子v1应用程序,则需要添加-v1
.但是,如果您是从一个新的应用程序开始,我强烈建议您使用v2 +.
The new cli will create an ionic v3 app by default. If you want to create an ionic v1 app, you need to add --v1
. But if you are starting with a new app, I strongly recommend going for v2+.
根据您的离子应用程序的版本,您需要添加一些其他插件:
Depending on the version your ionic app has, you need to add some additional plugins:
@ ionic/cli-plugin-ionic-angular
– Ionic Angular项目插件,提供有用的构建工具和生成器.(离子v2 +) @ ionic/cli-plugin-ionic1
–具有从旧CLI移植的功能的Ionic 1项目插件. @ ionic/cli-plugin-cordova
–对于Ionic/Cordova应用程序必不可少. @ ionic/cli-plugin-proxy
–用于通过防火墙代理CLI请求.
@ionic/cli-plugin-ionic-angular
– Ionic Angular project plugin that provides useful build tools and generators. (ionic v2+)
@ionic/cli-plugin-ionic1
– Ionic 1 project plugin that has functionality ported from the old CLI.
@ionic/cli-plugin-cordova
– Essential for an Ionic/Cordova app.
@ionic/cli-plugin-proxy
– For proxying CLI requests through a firewall.
我无法告诉您是否需要将应用程序链接到仪表板.如果您使用的是Ionic服务(推送,查看等),那么这是有道理的.
I can't tell you if you need to link your app to the dashboard. If you are using the Ionic services (Push, View, etc), then it makes sense.
话虽如此,但我在新cli上遇到了很多错误"或行为不一致的情况,因此,如果某些操作不起作用,您可能需要降级.
That being said, I have experienced quite a few "bugs" or inconsistent behaviour with the new cli, so you might need to downgrade if something doesn't work.
这篇关于当我具有离子CLI 3.0.0时可以运行离子v1项目吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!