2.6.0 • Published 6 years ago

fyi-react-shell v2.6.0

Weekly downloads
9
License
-
Repository
-
Last release
6 years ago

fyi-react-shell

How to install manually

  • In a new folder, run npm init
  • Run npx install-peerdeps fyi-react-shell --dev
  • Add the following scripts section to package.json:
"scripts": {
  "start": "react-app-rewired start",
  "build": "react-app-rewired build",
  "test": "react-app-rewired test --env=jsdom",
  "lint": "eslint .",
  "lint-fix": "eslint . --fix",
  "precommit": "lint-staged && CI=true npm test"
}
  • Add the following section to package.json (not in the scripts section)
"lint-staged": {
  "*.js": [
    "eslint --fix",
    "git add"
  ]
}
  • Copy the following files from the fyi-sub-app project: .gitignore, config-overrides.js, .eslintrc.js, .eslintignore
  • Copy the following folders from the fyi-sub-app project: src, public
  • Set the main export property in package.json to point to your unthemed app component, e.g. src/FyiSubApp/FyiSubApp
  • Run git init if necessary

Tasks

Create boilerplate project using degit - https://github.com/Rich-Harris/degit

How to install automatically (🚧 not built yet 🚧)

  • In a new folder, run npx degit fyi-react-shell-template