Credijusto's custom react-scripts
This is a fork of Facebook's Create React App but with Creijusto's own preferences, this package is meant to be used on every React project to ensure consistency, ease of setup and improved developer-experience.
Usage
yarn add -D -E @credijusto/react-scripts
This installs the devDependency, it supports all things Create React App offers AND:
- Linting with AirBnb rules
- Formatting with Prettier for
.html, .js, .jsx, .json, .css, .scss
extensions - Precommit hook
If you are using VSCode editor, you can install it's EsLint extension and add an .eslintrc
file on the root of the project you're working on to enable editor linting marks, the file must contain the following:
{
"extends": "./node_modules/@credijusto/react-scripts/config/.eslintrc"
}
Development
We follow a simple process:
- Create your branch with a descriptive name.
- Make your changes, try them in your local projects, and push your commits.
- Do a Pull Request to @credijusto/react-scripts (not the original Facebook's repo)
- Once approved, use
npm version x.x.x
to update the scripts version. We follow the semver rules. - Commit the version update, publish using
npm publish
and push these changes to Github. - Merge your branch into master.
- Create a git tag in the master "Merge pull request..." commit with the version and a
-cj
ending. E.g.:v1.1.5-cj
Issues and Pull-Requests welcome.
Original react-scripts README:
react-scripts
This package includes scripts and configuration used by Create React App.
Please refer to its documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.