Skip to content

Building for Mobile

Chris Clarke edited this page Feb 6, 2020 · 5 revisions

Instructions

Install global dependencies

npm i -g ionic cordova @sentry/cli

If using windows, ensure a linux subsystem (e.g. debian) is installed, and jarsigner

https://www.microsoft.com/store/productId/9MSVKQC78PK6 https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-debian-8

Build code

npm run build extension-toolkit

or for production build

npm run build:extension

Change working directory

cd apps/extension-toolkit

Run on device

cordova run android

Notes

Build is handled via ionic/cordova. Whilst there is some support for monorepo-style applications, it is still a partly manual process.

See documentation about ionic multi-apps here: https://ionicframework.com/docs/cli/configuration#multi-app-projects See documentation about adding ionic here: https://ionicframework.com/docs/cli/configuration#adding-an-app

Undocumented process includes a number of changes to angular.json, adding global.scss and src/global.scss (expected by ionic build scripts) and changes to index.html to reflect boilerplate code (mostly head/meta)

Some of the process may/may not be done in steps outlined here: https://medium.com/@haleminh27/ionic-4-nestjs-nx-monorepo-dream-come-true-a7eb4c01a646#1fb8 (will likely need to check angular.json updated correctly)

Note, if configured correctly all commands should still be run from the top level (with specified configurations and default projects)

Clone this wiki locally