DEV Community

Discussion on: Generate your web-app boilerplate like create-react-app does.

Collapse
 
spacerumsfeldcode profile image
spacerumsfeld-code

Thanks for putting this out there! Am I correct in ascertaining that because you use git clone in your commands to build the repository, anyone using the npx command with your package will start off with the original repo as a remote by default that they then will need to point to their own project?

Collapse
 
leopold profile image
Leopold

You're partially right yes but for my package this is the reason why I am deleting the git repo during the installation process, so you can just type git init afterwards.
They are probably more elegants ways to do this and for example we could have a closer look at how something like create-react-app is handling this to have a fresh new git folder once we install the app.