analogjs / analog

The fullstack meta-framework for Angular. Powered by Vite and Nitro
https://analogjs.org
MIT License
2.5k stars 240 forks source link

Feature: Add support for generating a new application in an Nx workspace #293

Closed brandonroberts closed 1 year ago

brandonroberts commented 1 year ago

Which scope/s are relevant/related to the feature request?

create-analog

Information

This effort would add a generator to support creating a new Analog app within an Nx workspace

nx g @analogjs/platform:app

This would do the same as create-analog but would customize the app name, and enable integration with Nx console.

Describe any alternatives/workarounds you're currently using

Generate a new Angular app and add Analog support manually.

https://github.com/brandonroberts/analog-nx-migration

I would be willing to submit a PR to fix this issue

goetzrobin commented 1 year ago

@brandonroberts I was playing around with a generator like this and have a POC working!

I might need some help with things setting up. I am thinking of the publishing of the package and some input on a couple requirements, but I can work on this!

I assume it should take similar inputs to the create-analog cli?

The Nx workspace will already have an Angular version in its package.json. What validations should happen? What versions can be supported?

Should there be an option for an e2e app to be created or is that something we want to add later?