Boilerplate for npm create <...>
CLI creation.
npm create @ghom/creator <install-path> <git-repository> [package-name]
For example, if you want to create a npm creator for the user/todo
boilerplate named create-todo
, you can use the following command:
npm create @ghom/creator ./my-todo user/todo
And if you want to force the created package name to be @user/create-todo
, you can use the following command:
npm create @ghom/creator ./my-todo user/todo @user/create-todo
I would take as an example the boilerplate of a simple website: GhomKrosmonaute/Vitrined
- Generate the creator with
npm create @ghom/creator vitrined-CLI GhomKrosmonaute/Vitrined
- Move to the creator folder
cd vitrined-CLI
- Optionally check if everything is correct in the generated package.json
- Publish the creator with
npm publish --access public
- It's done! Then your boilerplate creator can be tested with
npm create vitrined