@nxtend/ionic-angular plugin to your Nx workspace is trivial, and works just like any other Nx plugin.
Now, create your Ionic Angular application.
By default, a Capacitor project will be generated that will allow you to compile your application as a native platform.
@nxtend/ionic-angular uses the
@nxtend/capacitor plugin to add Capacitor support to an Ionic Angular application in an Nx workspace. By default, Capacitor configuration are added to new
@nxtend/ionic-angular applications. To disable this, pass
--capacitor false into the
@nxtend/ionic-angular application schematic command.
Nx will ask you some questions about the application, but you can customize it further by passing these options:
Generated applications expose several functions to the CLI that allow users to build, lint, test, and so on.
These applications are also supported by the Nx affected commands.
Add Native Platform
First, ensure that the frontend project has been built:
Now that a Capacitor project has been added to your Nx workspace you can begin adding support for native platforms. Currently, Capacitor supports Android and iOS, but other platforms can be added with Capacitor plugins.
Open Native Platform
Finally, you can open the native platform in it's respective IDE:
To learn more about using Capacitor with
@nxtend/capacitor then visit the Getting Started page.
If you receive a
Collection cannot be resolved error when attempting to generate an application then you likely need to execute the