zoukankan      html  css  js  c++  java
  • ionic 2.x 3.x项目结构解析

    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  //编译后的项目会保存在这里
  • 相关阅读:
    nodeJs小练习之爬取北京昌平区房价
    2016,加油,奋斗
    1339 字符串王国的种族
    1333 明信片和照片
    1316 你能知道这是几进制数?
    1309 简化版九宫格
    1295 爱翻译
    1288 幸运转盘(一)
    1287 孙武练兵
    1284 喜羊羊的新年礼物
  • 原文地址:https://www.cnblogs.com/eedc/p/7373690.html
Copyright © 2011-2022 走看看