{"id":21822191,"url":"https://github.com/soybeanjs/vite-ionic-vue","last_synced_at":"2025-07-01T05:05:10.229Z","repository":{"id":105059241,"uuid":"427568652","full_name":"soybeanjs/vite-ionic-vue","owner":"soybeanjs","description":"vite-ionic-vue is an ionic app template, based on Ionic + Vite + TS，which can complier to android、ios and h5.  基于vite+ionic+vue3的混合app，支持编译成h5、安卓和ios","archived":false,"fork":false,"pushed_at":"2021-12-31T05:41:07.000Z","size":1328,"stargazers_count":9,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T03:56:04.634Z","etag":null,"topics":["android","ionic6","ios","typescript","vite","vue3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soybeanjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-13T04:31:46.000Z","updated_at":"2025-02-10T07:36:22.000Z","dependencies_parsed_at":"2023-03-26T01:07:16.956Z","dependency_job_id":null,"html_url":"https://github.com/soybeanjs/vite-ionic-vue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soybeanjs/vite-ionic-vue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soybeanjs%2Fvite-ionic-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soybeanjs%2Fvite-ionic-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soybeanjs%2Fvite-ionic-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soybeanjs%2Fvite-ionic-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soybeanjs","download_url":"https://codeload.github.com/soybeanjs/vite-ionic-vue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soybeanjs%2Fvite-ionic-vue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262900158,"owners_count":23381661,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ionic6","ios","typescript","vite","vue3"],"created_at":"2024-11-27T17:13:35.645Z","updated_at":"2025-07-01T05:05:10.216Z","avatar_url":"https://github.com/soybeanjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"基于vite+ionic+vue3的混合app，支持编译成h5、安卓和ios\n\n#### 一、安装依赖\n\n##### 1.项目依赖\n\n```bash\nnpm i\n```\n\n##### 2.全局依赖\n\n```bash\nnpm i -g @ionic/cli\n```\n\n本地开发环境额外安装：\n\n```bash\nnpm i -g commitizen\n```\n\n#### 二、编译、构建\n\n##### 1.H5平台\n\n###### (1)开发模式\n\n例如：\n\n```bash\n# 默认dev环境\nnpm run dev\n\n# pro环境\nnpm run dev:pro\n```\n\n###### (2)构建模式\n\n例如：\n\n```bash\n# 默认pro环境\nnpm run build\n\n#fat环境\nnpm run build:fat\n```\n\n##### 2.安卓平台\n\n##### 3.IOS平台\n\n###### 1.第一次构建\n\n(1)生成web资源\n\n```bash\n# uat环境\nnpm run build:uat\n```\n\n(2)生成ios\n\n```bash\nnpm run add:ios\n```\n\n(3)修复插件并同步\n\n```bash\nnpm run sync\n```\n\n###### 2.已存在dist目录和ios目录(二者不可或缺， 如缺失按照第一次构建的步骤生成对应目录)\n\n(1)只更改了vue工程相关的，只需重新生成并拷贝web资源\n\n```bash\n# pro环境\nnpm run copy:pro\n```\n\n(2)更改了插件相关的，执行修复和同步插件的命令(该命令会自动把已存在的web资源拷贝到原生工程里面)\n\n```bash\nnpm run:sync\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoybeanjs%2Fvite-ionic-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoybeanjs%2Fvite-ionic-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoybeanjs%2Fvite-ionic-vue/lists"}