Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

blueambr/create-react-app-extended

Repository files navigation

Create React App eXtended v.1.3.0

"react": "^17.0.1"

Content

How to launch What is this? Pre-commit Dependencies License

How to launch:

  1. git clone
  2. git remote set-url origin https://github.com/USERNAME/REPOSITORY.git to update the origin remote with your own repository / git remote rm origin to remove the origin remote
  3. yarn / npm i
  4. yarn start / npm start
  5. Navigate to your localhost address (default is http://localhost:3000/)

For more info visit the original CRA repository.

P.S. Don't forget to remove extra info like keywords, repository, etc. from package.json.

What is this?

Create React App eXtended or CRAX is an opinionated version of Create React App.

It contains the whole CRA +

Pre-commit

CRAX has a pre-commit script, based on Husky and lint-staged. It looks like this:

"lint-staged": {
  "src/**/*.{js,jsx}": [
    "pretty-quick --pattern './src/**/*.{js,jsx}'",
    "eslint './src/**/*.{js,jsx}' --fix"
  ],
  "src/**/*.{scss,sass,css}": [
    "stylelint './src/**/*.{scss,sass,css}' --fix"
  ]
},
"husky": {
  "hooks": {
    "pre-commit": "lint-staged && yarn build && git add ."
  }
}

And it can be configured in any preferrable way. Enjoy!

Dependencies

You should yarn upgrade --latest / npm update && npm audit fix -f as CRAX will always be ok working with the latest versions of the dependencies, so it is strongly recommended. If anything goes wrong, visit the original CRA repository for explanations.

"dependencies": {
  "normalize.css": "^8.0.1",
  "react": "^17.0.1",
  "react-app-polyfill": "^2.0.0",
  "react-dom": "^17.0.1",
  "react-router-dom": "^5.2.0",
  "react-scripts": "4.0.0"
},
"devDependencies": {
  "css-loader": "^5.0.0",
  "eslint-config-airbnb": "^18.2.0",
  "eslint-config-prettier": "^6.15.0",
  "eslint-plugin-import": "^2.22.1",
  "eslint-plugin-jsx-a11y": "^6.4.1",
  "eslint-plugin-prettier": "^3.1.4",
  "eslint-plugin-react": "^7.21.5",
  "husky": "^4.3.0",
  "lint-staged": "^10.5.1",
  "prettier": "^2.1.2",
  "pretty-quick": "^3.1.0",
  "sass": "^1.28.0",
  "stylelint": "^13.7.2",
  "stylelint-config-standard": "^20.0.0",
  "stylelint-order": "^4.1.0"
},

License

Copyright © 2019 - 2020, based on Create React App by Facebook, Inc.

Licensed under the MIT license.