# ionic_vue **Repository Path**: hotsuitor/ionic_vue ## Basic Information - **Project Name**: ionic_vue - **Description**: 基于vue-cli4,搭建ionic项目(vue2+ionic5) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2019-12-30 - **Last Updated**: 2025-01-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ionic-vue ## Project setup ``` yarn install ``` ### Compiles and hot-reloads for development ``` yarn serve ``` ### Compiles and minifies for production ``` yarn build ``` ### Lints and fixes files ``` yarn lint ``` git hook postcss 该命令会修改src下的源码,取消改配置 ``` "postcss --config postcss.config.js --replace", ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ## 目录结构 ``` ├─.editorconfig # 编辑器文件格式统一插件的配置文件 ├─.prettierrc # 代码格式化配置文件 ├─babel.config.js # babel配置文件 ├─package.json ├─postcss.config.js # postcss配置文件 ├─README.md # 了解一个项目前,看我 ├─stylelint.config.js # css、scss样式文件格式化插件 ├─vue.config.js # vue配置文件,webpack配置也在这里 ├─yarn.lock # yarn 包管理工具锁文件 ├─src | ├─App.vue | ├─main.js | ├─utils # js工具目录 | ├─store | | ├─actions.js | | ├─getters.js | | ├─index.js | | ├─muations.js | | └muations_type.js # muations定义常量配置文件 | ├─routers | | └index.js | ├─pages | | └Home.vue | ├─components | | └HelloIonic.vue | ├─assets | | ├─styles | | | └hello.css | | ├─scripts | | ├─img | | ├─fonts | ├─api | | └base.js ├─public | ├─favicon.ico | └index.html ``` ## 开发规范 遵循 vue[风格指南](https://cn.vuejs.org/v2/style-guide/) ### 文件命名规范: - 普通文件采用小写+下划线方式命名,eg: `config_url.json`; - 单文件组件名采用单词大写开头 (PascalCase)命名,eg: `HelloIonic.vue`; - 在单文件组件和字符串模板中组件名应该总是 PascalCase 的——但是在 DOM 模板中(即`