@rdlabo/support-ionic-appflow-monorepo
v0.1.2
Published
Script for support ionic appflow monorepo
Downloads
7
Readme
@rdlabo/support-ionic-appflow-monorepo
This script for support monorepo structure at Ionic AppFlow
Ionic AppFlow don't support monorepo structure now. So this script will solve your problem, if your repository looks like this:
project
├── package.json
├── api/ -- framework like NestJS
└── {APP_DIR}/ -- capacitor apps
This script work three step.
- Check require packages from Ionic CLI and {APP_DIR} package.json
- Install require packages to project directory.
- Copy file for using Ionic AppFlow from {APP_DIR}.
Usage
You can freely name the app directory. In this usage, app directory name display {APP_DIR}. Please replace name at your environment.
1. Copy file
Copy capacitor.config.json
file from {APP_DIR} to project directory. Ionic AppFlow checked these file before npm build. So you should copy manually.
{APP_DIR}/capacitor.config.json
=>./capacitor.config.json
You can use this command:
% cp -r -f {APP_DIR}/capacitor.config.json ./
2. Set npm script
"scripts": {
...
+ "postbuild": "npx @rdlabo/support-ionic-appflow-monorepo --path={APP_DIR}"
},