stacksjs / stacks

⚛️ Type-safe full-stack framework for Artisans. Develop modern clouds, apps & framework-agnostic libraries, faster.
https://stacksjs.org
MIT License
497 stars 9 forks source link

Stacks CLI – too many dependencies #1108

Open m93a opened 1 month ago

m93a commented 1 month ago

Clear and concise description of the problem

From the package description, Stacks CLI looks like a nice way to create CLI apps. In Rust I use clap, and I'd love to have a similar library for Bun – Stacks CLI looks like it could be precisely that. However, it has tons of dependencies and it installs forever (even with Bun as the package manager, which is, in my experience, significantly faster than the alternatives). Having 4k+ dependencies is totally unacceptable for me. This is a CLI helper library, not a fucking operating system.

image

Trying to check the bundle size with Bundlephobia crashed the site.

image

image

Suggested solution

Throw away 99% of the dependencies to get to a reasonable install time & bundle size.

Alternative

The only other alternative for me is not to use this library.

Additional context

As I'm submitting this issue, the library still has not finished installing.

Validations

m93a commented 1 month ago

The installation just finished – node_modules has 720 MB :skull:

chrisbbreuer commented 1 month ago

not yet usable, dependencies are still all over the place, apologies still.

Slowly but surely getting there, so stacks/cli can be used to properly build CLIs

chrisbbreuer commented 1 month ago

Once we are in beta, this issue should/will be resolved. Bigger goal for us atm is to finish the binary which will be significantly reduced in size as well haha

The stacksjs.org site will soon work again too. A bun issue was just resolved that led cdk to not work for half a year, lots of things to get caught up now on that front. currently wip 🏗️