2.6.0 • Published 7 years ago
fyi-react-shell v2.6.0
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
scriptssection topackage.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 thescriptssection)
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
}- Copy the following files from the
fyi-sub-appproject:.gitignore,config-overrides.js,.eslintrc.js,.eslintignore - Copy the following folders from the
fyi-sub-appproject:src,public - Set the
mainexport property inpackage.jsonto point to your unthemed app component, e.g.src/FyiSubApp/FyiSubApp - Run
git initif 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