stacksjs/stacks

Stacks CLI – too many dependencies

cshaa opened this issue · 3 comments

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

The installation just finished – node_modules has 720 MB 💀

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

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 🏗️