thisdot / open-source

Repository for open source packages
MIT License
34 stars 11 forks source link

Nx-Vite plugin #139

Closed BigAB closed 2 years ago

BigAB commented 2 years ago

What do you want to build?

I would like to build an Nx-Plugin for adding and running Vite projects and libraries to an Nx Monorepo.

Where did your idea come from?

I have previously worked on a project where we used Nx and Vite, and we wrote a workspace plugin with Vite executors for building and serving our Vite libraries and MFE playground.

Though there are quite a few community Nx Plugins for Vite, none of them seem "finished" or work very well, so I think there is an opportunity to pave this path and maybe influence Nrwls "official" implementation with ours if they go in that direction.

How long will it take to build? What milestones exist (if applicable)?

Milestone 1 - MVP (0.1 release)

A base minimum for a public Nx-Vite Plugin would require:

I can't give accurate estimates at all at this stage, but a wild guess that may be far too short or far too long is probably better than nothing so...

Est Time: 15hrs

Milestone 2 - Vitest + React + Preset (1.0 release)

Assuming the executors from the first milestone do not require any new features, the next step towards a general "release" would require:

Again, I don't think I can give accurate estimates at all, but...

Est Time: 15hrs

Milestone 2 - Vite Storybook (1.1 release)

Est Time: 8hrs

dustinsgoodman commented 2 years ago

Repeating from Slack - let's do as follows:

NachoVazquez commented 2 years ago

I'm excited about this effort.

I'm pretty sure you are aware, but this is the most mature Vite plugin collection and can be a good inspiration.

https://nxext.dev/docs/vite/overview.html

BigAB commented 2 years ago

So the Nx team has decided to make a @nrwl/vite plugin as one of the foundational plugins (like @nrwl/cypress or @nrwl/rollup) so this project is pretty much dead in the water.