nxext / nx-extensions-ionic

Nx Extension for Ionic
MIT License
35 stars 9 forks source link

ionic-angular: No support for Standalone Components #18

Open paulmojicatech opened 10 months ago

paulmojicatech commented 10 months ago

Is your feature request related to a problem? Please describe. This feature is not related to a problem but seeing as the Angular team is making standalone components the default with their generate component command, it would be nice to have this option when creating a new application with the nx g @nxext/ionic-angular:application "<% my app name %>" --standalone

Describe the solution you'd like Having a different set of template file when the standalone flag is specified. It looks like the code has this already in the generator script but the template files have not been created yet.

Describe alternatives you've considered We can work around it by manually updating the main.ts file, creating a routes file, removing the modules and updating the generated components with the standalone: true option.

Additional context files.ts

const filesDir = options.standalone
    ? normalizePath(__dirname + `/../files/${options.template}-standalone`)
    : normalizePath(__dirname + `/../files/${options.template}`);