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  //编译后的项目会保存在这里
  • 相关阅读:
    别样JAVA学习(六)继承下(2.3)异常下
    Reverse Integer
    Win10易升-在线升级工具
    yum实现仅仅下载不安装包
    redis对key的基本操作
    Win一键查看用户密码
    Linux常用基本命令
    mysql用户管理
    Linux下grub.cnf详解
    图片MassiGra045 简体中文|MG
  • 原文地址:https://www.cnblogs.com/eedc/p/7373690.html
Copyright © 2011-2022 走看看