Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacks CLI – too many dependencies #1108

Open
3 tasks done
cshaa opened this issue Jul 25, 2024 · 3 comments
Open
3 tasks done

Stacks CLI – too many dependencies #1108

cshaa opened this issue Jul 25, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@cshaa
Copy link

cshaa commented Jul 25, 2024

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

@cshaa cshaa added the enhancement New feature or request label Jul 25, 2024
@cshaa
Copy link
Author

cshaa commented Jul 25, 2024

The installation just finished – node_modules has 720 MB 💀

@chrisbbreuer
Copy link
Member

chrisbbreuer commented Jul 25, 2024

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
Copy link
Member

chrisbbreuer commented Jul 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants