developit / microbundle

📦 Zero-configuration bundler for tiny modules.
https://npm.im/microbundle
MIT License
8k stars 361 forks source link

npx microbundle create myLib #1010

Closed devinrhode2 closed 1 year ago

devinrhode2 commented 1 year ago

Would love to have this tsdx feature:

npx tsdx create mylib

This may be a starting point: https://github.com/gribnoysup/create-microbundle-module#whats-in-the-package

devinrhode2 commented 1 year ago

For now, I'll bootstrap with tsdx, and maybe use microbundle if needed

rschristian commented 1 year ago

I think it's best to leave opinionated dev environments to users to configure and create. tsdx has a way bigger scope, as it specifically aims to help with things like Jest, TS, ESLint, and VSCode, which is why it supplies that creation tool. However, none of those tools fall into Microbundle's scope.

The only things a create-microbundle package would do is create a directory, install microbundle into it, and maybe copy a "kitchen sink" package.json config. It would just replace a handful of shell commands, not terribly useful.

What you can do, and what I'd suggest, is to create a template repository on GitHub for yourself. You can create other repos from that template, allowing you to easily set a standardized config without needing to publish a package (and take up another package name).

rschristian commented 1 year ago

Closing this out as I don't think it's likely to become a first-party feature. Happy to see if anyone in the community creates a configuration though!

devinrhode2 commented 1 year ago

Yeah I think your idea of creating a template is 100% the way to go