fyi-react-shell
v2.6.0
Published
fyi-react-shell -------------
Downloads
3
Readme
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 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 thescripts
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 inpackage.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