0.1.2 • Published 4 years ago

@rdlabo/support-ionic-appflow-monorepo v0.1.2

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

@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}"
  },
0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago