Skip to content

Reduce dependencies for programmatic usage #236

@bluwy

Description

@bluwy

Describe the feature

Context: https://bsky.app/profile/pi0.io/post/3m22qguxfm22w

Currently they're a few libraries that only utilizes the programmatic downloadTemplate API, e.g. create-astro, create-hono, @storybook/cli, etc. However, they don't require some CLI deps like citty, consola, etc, or also not need nypm to install dependencies.

It would be nice to be able to trim them, or have a separate programmatic core package, or any solution in mind to support this case. Understandably, the deps currently isn't a lot nor large in size (2MB total), but as create-* CLIs, reducing as much as possible helps users to start projects quickly.


I've made a "core package" fork at https://github.com/bluwy/giget-core for create-astro that may be used as inspiration. I took some changes a bit to the extreme, but maybe some parts can be ported back here.

Additional information

  • Would you be willing to help implement this feature?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions