interaction-kit icon indicating copy to clipboard operation
interaction-kit copied to clipboard

Make name input optional in create-ikit-app

Open IanMitchell opened this issue 1 year ago • 5 comments

Right now if you don't provide a top level name the command fails. Instead, it should prompt for a name if none is given

IanMitchell avatar Oct 16 '22 04:10 IanMitchell

Pinning this as a good first issue for potential contributors. To test this, run:

cd packages/create-ikit-app
npm run build
./dist/cli.js

IanMitchell avatar Oct 16 '22 22:10 IanMitchell

This doesn't look to be possible without forking create-create-app https://github.com/uetchy/create-create-app/blob/master/src/index.ts#L250

thewilloftheshadow avatar Oct 17 '22 05:10 thewilloftheshadow

Hm, time to throw up a PR I guess!

IanMitchell avatar Oct 17 '22 06:10 IanMitchell

Looks like plop or something like https://github.com/vitejs/vite/blob/main/packages/create-vite/src/index.ts would be good alternatives

IanMitchell avatar Oct 17 '22 20:10 IanMitchell

I can take on converting the create-create-app code to this. Which one do you prefer me to use?

thewilloftheshadow avatar Oct 17 '22 21:10 thewilloftheshadow