{"id":26197798,"url":"https://github.com/techiediaries/vue-cli-plugin-capacitor","last_synced_at":"2025-04-15T04:26:21.584Z","repository":{"id":57164867,"uuid":"135931467","full_name":"techiediaries/vue-cli-plugin-capacitor","owner":"techiediaries","description":"Vue CLI 3.x/4.x plugin for Ionic Capacitor.","archived":false,"fork":false,"pushed_at":"2020-08-11T16:57:30.000Z","size":11,"stargazers_count":7,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T15:51:54.439Z","etag":null,"topics":["capacitor","ionic-framework","plugin","vue-cli"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techiediaries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-03T18:51:28.000Z","updated_at":"2020-08-11T16:59:24.000Z","dependencies_parsed_at":"2022-08-29T19:11:50.790Z","dependency_job_id":null,"html_url":"https://github.com/techiediaries/vue-cli-plugin-capacitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techiediaries%2Fvue-cli-plugin-capacitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techiediaries%2Fvue-cli-plugin-capacitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techiediaries%2Fvue-cli-plugin-capacitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techiediaries%2Fvue-cli-plugin-capacitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techiediaries","download_url":"https://codeload.github.com/techiediaries/vue-cli-plugin-capacitor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249005456,"owners_count":21197063,"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":["capacitor","ionic-framework","plugin","vue-cli"],"created_at":"2025-03-12T02:49:02.586Z","updated_at":"2025-04-15T04:26:21.552Z","avatar_url":"https://github.com/techiediaries.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue CLI Plugin Capacitor\n\nThis plugin allows you to convert your Vue app to an Android or iOS app using Ionic [Capacitor](https://capacitor.ionicframework.com/)\n\n## How to Install?\n\nHead over to a command-line interface and run the following command from your Vue project's folder:\n\n```bash\nvue add @techiediaries/capacitor\n```\n\nNext, configure Capacitor to [hide your app's splash screen](https://capacitor.ionicframework.com/docs/apis/splash-screen/#hiding-the-splash-screen) when VueJS is ready by adding the following code to your `src/app.js`:\n\n```diff\nimport Vue from 'vue'\nimport App from './App.vue'\n+ import { Plugins } from '@capacitor/core'\n+ const { SplashScreen } = Plugins\n\nVue.config.productionTip = false\n\nnew Vue({\n  render: h =\u003e h(App),\n+ mounted() {\n+   SplashScreen.hide()\n+ }\n}).$mount('#app')\n\n```\n\n## Run the Development Server\n\n\n\n```shell\nnpm run capacitor:serve # add --android or --ios to specify a target platform\n```\n\nThis will start a dev server, then open your native IDE (Android Studio or XCode). From here, run your app on an emulator or physical device. The app will connect to the dev server, allowing HMR.\n\n## Build Your App\n\nBuild your app by running:\n\n```shell\nnpm run capacitor:build # add --android and/or --ios to specify a target platform(s)\n```\n\nThis will bundle your app, then open your native IDE (Android Studio or XCode). From here, build your app with the IDE tooling to create an Android/iOS app.\n\n\n\n## How It Works\n\n### Dev Server\n\n1. The normal development server is started with `vue-cli-service serve`.\n2. Capacitor is configured to load your app from the dev server's network url.\n3. The platform's native IDE is opened with `cap open [platform]`.\n4. When the native app is run, it connects to the dev server, allowing for HMR.\n\n### Build\n\n1. Your app is built as normal with `vue-cli-service build`.\n2. The bundled output is copied to the native app with `cap copy [platform]`. This runs for each platform specified.\n3. The platform's native IDE is opened, allowing you to create a final build of the native app.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechiediaries%2Fvue-cli-plugin-capacitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechiediaries%2Fvue-cli-plugin-capacitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechiediaries%2Fvue-cli-plugin-capacitor/lists"}