码迷,mamicode.com
首页 > 其他好文 > 详细

ionic 2.x 3.x项目结构解析

时间:2017-08-16 17:21:00      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:资源   icon   service   pac   worker   node   color   样式表   theme   

myApp
│  config.xml  //项目配置文件,包名、名称、minSdkVersion等都在此处配置
│  ionic.config.json
│  package.json  //项目依赖文件列表
│  tsconfig.json
│  tslint.json
│  
├─hooks
│      
├─node_modules  //项目依赖文件
│                  
├─platforms  //项目添加的平台
├─resources  //项目图标
│  │  icon.png  //安装应用后桌面图标
│  │  splash.png  //打开APP后的闪屏图片
│  │  
│  ├─android
│  │  ├─icon
│  │  └─splash
│  │          
│  └─ios
│      ├─icon
│      └─splash
│              
├─src  //项目路径,在此编辑自己的项目
│  │  declarations.d.ts
│  │  index.html  //项目入口
│  │  manifest.json
│  │  service-worker.js
│  │  
│  ├─app
│  │      app.component.ts  //初始化项目,定义rootPage
│  │      app.module.ts  //项目中所有的module都要在次声明
│  │      app.scss  //全局样式表
│  │      main.dev.ts
│  │      main.prod.ts
│  │      
│  ├─assets  //资源文件,可将图片资源放于此处
│  │          
│  ├─pages  //项目页面
│  │  ├─about
│  │  │      
│  │  ├─contact
│  │  │      
│  │  ├─home
│  │  │      home.html  //.html 
│  │  │      home.scss  //.scss 样式代码
│  │  │      home.ts  //.ts 逻辑代码
│  │  │      
│  │  └─tabs
│  │          tabs.html
│  │          tabs.ts
│  │          
│  └─theme  //项目主题,比如可以定义所有页面的背景色$background-color
│          variables.scss
│          
└─www  //编译后的项目会保存在这里

 

ionic 2.x 3.x项目结构解析

标签:资源   icon   service   pac   worker   node   color   样式表   theme   

原文地址:http://www.cnblogs.com/eedc/p/7373690.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!