rslib icon indicating copy to clipboard operation
rslib copied to clipboard

[Bug]: `npx create-rslib --template` is broken

Open chenjiahan opened this issue 1 year ago • 2 comments

Version

Rslib 0.0.18

Details

This is expected to work:

npx create-rslib --template react-js --dir my-lib

Image

Ref:

  • https://github.com/rspack-contrib/create-rstack/issues/21
  • https://github.com/web-infra-dev/rslib/issues/46#issuecomment-2477890931

Reproduce link

/

Reproduce Steps

/

chenjiahan avatar Nov 15 '24 06:11 chenjiahan

The template is now generated with optional tools, and the name should be changed to pnpm create rslib --template "[react]-[]-js" --dir my-lib2.

Yes, the name is ugly. We might, should support an extra argv for tools, for example pnpm create rslib --template react-js --tool vitest --tool storybook. What do you think?

fi3ework avatar Nov 15 '24 06:11 fi3ework

Agreed, the template name should be clean and intuitive and a new tool flag is also helpful.

chenjiahan avatar Nov 15 '24 06:11 chenjiahan

@fi3ework @Timeless0911 Is there any progress on this issue?

chenjiahan avatar Nov 10 '25 02:11 chenjiahan

let me check this issue.

fi3ework avatar Nov 10 '25 03:11 fi3ework