Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ionic-team/capacitor-testapp
https://github.com/ionic-team/capacitor-testapp
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ionic-team/capacitor-testapp
- Owner: ionic-team
- Created: 2020-06-27T01:02:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T11:37:33.000Z (6 months ago)
- Last Synced: 2024-10-01T06:21:00.518Z (2 months ago)
- Language: TypeScript
- Size: 29.8 MB
- Stars: 34
- Watchers: 9
- Forks: 27
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-capacitorjs - capacitor-testapp - The Capacitor TestApp is used to develop new features and verify bug fixes in Capacitor and the official plugins. (Demo Apps / Community Plugins)
- awesome-capacitor - capacitor-testapp - The Capacitor TestApp is used to develop new features and verify bug fixes in Capacitor and the official plugins. (Demo apps / Case study)
README
# Capacitor TestApp
The Capacitor TestApp is used to develop new features and verify bug fixes in Capacitor and the [official plugins](https://github.com/ionic-team/capacitor-plugins). It is built with [Ionic React](https://ionicframework.com/react).
## Setup
1. Fork and clone this repo.
2. Install the dependencies.```shell
npm install
```The TestApp is just like any other Ionic React app. See [the docs](https://ionicframework.com/docs/react) to learn what you can do.
- `ionic build` to build web assets
- `ionic serve` to run web version in your browser
- `ionic cap sync`
- `ionic cap run ` (also w/ livereload: just add `-l --external` flags)You can also opt-out of the Ionic CLI and use npm scripts and the Capacitor CLI directly:
- `npm run build`
- `npm start`
- `npx cap sync`
- `npx cap run ` (no automatic livereload)### Developing Capacitor
> New to Capacitor development? Start [here](https://github.com/ionic-team/capacitor/blob/HEAD/CONTRIBUTING.md#developing-capacitor).
To use the TestApp to develop Capacitor and official plugins, make sure you have set up the sibling repositories. Clone Capacitor and the plugins repo into the same parent directory.
```
cd ../
git clone [email protected]:ionic-team/capacitor.git
git clone [email protected]:ionic-team/capacitor-plugins.git
```Follow the setup instructions for each repo:
- [`capacitor`](https://github.com/ionic-team/capacitor/blob/HEAD/CONTRIBUTING.md)
- [`capacitor-plugins`](https://github.com/ionic-team/capacitor-plugins/blob/main/CONTRIBUTING.md) (make sure to run `npm run toggle-local`)Then, back in this repo, run the following to link the packages in both repos to this app:
```shell
npm install
npm run toggle-local
```