Working with Capacitor involves several key additions to your workflow.
Capacitor turns your web app into a native binary for each platform. Thus, much of your work will consist of developing and then building a mobile-focused web app.
npm run build.
You may wish to sync your web app with your native project(s) in the following circumstances:
To sync your project, run:
npx cap sync
There are a few ways to deploy your project on native devices, depending on your use case. Most common is on the command-line with
npx cap run.
You may wish to open your project in a Native IDE in the following circumstances:
To update Capacitor Core and CLI:
npm install @capacitor/cli@3 npm install @capacitor/core@3
To update any or all of the platforms you are using:
npm install @capacitor/ios@3 npm install @capacitor/android@3
You can subscribe to the Capacitor repo to be notified of new releases. At the top of the repository index, click Watch -> Releases only.