@rdlabo/support-ionic-appflow-monorepo
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

@rdlabo/support-ionic-appflow-monorepo

This script for support monorepo structure at Ionic AppFlow

oclif Version Downloads/week License

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.

  1. Check require packages from Ionic CLI and {APP_DIR} package.json
  2. Install require packages to project directory.
  3. 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}"
  },

Readme

Keywords

Package Sidebar

Install

npm i @rdlabo/support-ionic-appflow-monorepo

Weekly Downloads

12

Version

0.1.2

License

MIT

Unpacked Size

8.58 kB

Total Files

8

Last publish

Collaborators

  • rdlabo