如何在稳定版本的 ionic 2 中使用 app(不稳定结构)文件夹
How to make use of app(unstable structure) folder in ionic 2 inside the stable version
我已经将我的 ionic 2 版本更新到稳定版。
在给 ionic start myProject blank --v2 之后,我得到了像 ionic 1 这样的文件夹结构。看看我得到的文件夹 structure。
这是我的离子信息命令结果
Cordova CLI: 6.3.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS
Node Version: v4.2.6
这是我的package.json文件
{
"name": "ionic-hello-world",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"build": "ionic-app-scripts build",
"watch": "ionic-app-scripts watch",
"serve:before": "watch",
"emulate:before": "build",
"deploy:before": "build",
"build:before": "build",
"run:before": "build"
},
"dependencies": {
"ionic-angular": "^2.0.0-rc.0",
"ionicons": "^3.0.0",
"@ionic/storage": "^1.0.3",
"ionic-native": "^2.0.3"
},
"devDependencies": {
"@ionic/app-scripts": "^0.0.23",
"typescript": "^2.0.3"
},
"description": "myProject: An Ionic project",
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": []
}
问题:
After updating my ionic 2 and try to create a project when i see the structure i am not able to see my app folder. why ???
when i give ionic serve --lab command i believe i am getting index.html file loaded. if so how my indicate my unstable app folder to the existing(updated stable version) project
can any one reefer me to understand the structure. i believe it is similar to the ionic 1. but i have completed my project into ionic 2(unstable). but now the structure is different. so how can i make use of it.
这是正确的行为,RC 0 中的目录结构已更改。
src
文件夹将包含所有源文件和资产,www
文件夹将完全生成。
关注后 https://github.com/driftyco/ionic/blob/master/CHANGELOG.md#steps-to-upgrade-to-rc0
我能够解决我的问题
我已经将我的 ionic 2 版本更新到稳定版。
在给 ionic start myProject blank --v2 之后,我得到了像 ionic 1 这样的文件夹结构。看看我得到的文件夹 structure。
这是我的离子信息命令结果
Cordova CLI: 6.3.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Distributor ID: Ubuntu Description: Ubuntu 16.04.1 LTS
Node Version: v4.2.6
这是我的package.json文件
{
"name": "ionic-hello-world",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"build": "ionic-app-scripts build",
"watch": "ionic-app-scripts watch",
"serve:before": "watch",
"emulate:before": "build",
"deploy:before": "build",
"build:before": "build",
"run:before": "build"
},
"dependencies": {
"ionic-angular": "^2.0.0-rc.0",
"ionicons": "^3.0.0",
"@ionic/storage": "^1.0.3",
"ionic-native": "^2.0.3"
},
"devDependencies": {
"@ionic/app-scripts": "^0.0.23",
"typescript": "^2.0.3"
},
"description": "myProject: An Ionic project",
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": []
}
问题:
After updating my ionic 2 and try to create a project when i see the structure i am not able to see my app folder. why ???
when i give ionic serve --lab command i believe i am getting index.html file loaded. if so how my indicate my unstable app folder to the existing(updated stable version) project
can any one reefer me to understand the structure. i believe it is similar to the ionic 1. but i have completed my project into ionic 2(unstable). but now the structure is different. so how can i make use of it.
这是正确的行为,RC 0 中的目录结构已更改。
src
文件夹将包含所有源文件和资产,www
文件夹将完全生成。
关注后 https://github.com/driftyco/ionic/blob/master/CHANGELOG.md#steps-to-upgrade-to-rc0
我能够解决我的问题