Recently I started working in some projects using ReactJS and at the moment of deciding what our team was going to use a good friend of mine ran into Parcel while watching a nice course by Brian Holt at Frontend Masters called Complete Intro to React, v5. So he said why don't we use it instead of webpack, because seriously sometimes it gets really strange and does stuff hard to work with.
So I remembered about Parcel and said okay, let's use it in the following project, I read about it and started making the setup of all the dependencies we think we are going to need for the project. Everything is working properly so I started another toy project and realized quickly that I needed a lot of the dependencies that the other project has, so I decided to extract a new Template or Boilerplate for any other projects that you or I would need.
- React Router
- JSON Web token
- React Hook Form
npm run devStarts parcel and storybook servers in development mode
npm run startStarts parcel in development mode
npm run formatFormats code beautifully
npm run clear-build-cacheClears cache and dist folders
npm run lintUsers ESLint to check code
npm run testRun tests
npm run test:coverageRuns tests displaying code coverage
npm run test:updateUpdates snapshots
npm run test:watchRuns Jest in watch mode
npm run cypressStarts Cypress
The repository is available at Github. and can be used as a template for any project you what to build with.