This repo contains the following basic setup for a React project.
Like Create-React-Apps, it allows you to scaffold a React project with only the dependencies listed in package.json
by running one command.
CSS loader and Style loader are not included because I like using css-in-js for styling. Feel free to customise for your own purpose.
- Webpack 4
- Babel 7
- Eslint (Airbnb style)
- Jest
- Clone this template repo to local machine
- Create an alias on the shells config file e.g.
~/.bash_profile
or~/.zshrc
alias create-react='bash {PATH_TO_REPO}/create-react-template.sh'
- Restart terminal
- Create a new project folder on your desired path
cd
inside the new project folder- Run
create-react new-project "Project Title"
Substitudenew-project
with your npm project name andProject Title
with the desired title on index.html