Skip to content

πŸ’πŸ’ŽπŸ’πŸ’ŽπŸ’πŸ’Ž An Always up-to-date React template with Typescript, Jest, Prettier, Github Actions and Renovate

License

Notifications You must be signed in to change notification settings

pegasussx/up-to-date-react-template

Repository files navigation

Up to date React Template

Lint, Test and Build License: MIT Last commit GitHub Pages Deploy

Click the badges to have a lookπŸ˜‰

An always up to date React Template with the following technologies:

Motivation

In software development keeping up to date with technologies is crucial and when working on a project for a long time updating the packages that are being used is usually forgotten. And why should you do it if the project works perfectly with the current ones?

This kind of thinking makes updating and renewing the project packages to be forgotten and never done. This is why I made this always up to date React Template which always will have the dependencies updated without making the project fail.

How? Adding the renovate bot to check for dependencies updates and submit PRs to update them. Also, set up a CI with GitHub Actions to always check the build passes with the updated dependencies in the PR before merging it with master. Here I explain the full process.

I did not add any styling library to leave that personal option to the user.

Setup the project

Just run npm install

To update the Github Actions badge on the README.md replace reymon359

![](https://github.com/reymon359/up-to-date-react-template/workflows/Build,%20Format%20and%20Test/badge.svg)

With your GitHub username (and repository name in case you have renamed it).

![](https://github.com/<USERNAME>/<REPOSITORY>/workflows/Build,%20Format%20and%20Test/badge.svg)

Available Scripts

In the project directory, you can run:

npm run dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run lint & npm run lint:fix

Run ESLint on the project to report wrong patterns on the code, and the second one also tries to fix and format them.

npm run new:component

It asks for a path and a name and creates a new functional component with that name in the path provided.

If no path is provided it is created in the default src/components/ path.

npm run test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run deploy

Builds the app for production and deploys it to GitHub Pages
Have a look at the Create React App docs about how to configure it.

Authors

  • RamΓ³n Morcillo - Initial work - reymon359

About

πŸ’πŸ’ŽπŸ’πŸ’ŽπŸ’πŸ’Ž An Always up-to-date React template with Typescript, Jest, Prettier, Github Actions and Renovate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •