0.3.1 • Published 2 years ago
@in-core/incore-playbook v0.3.1
NIST Community Resilience Planning Playbook
Work in Progress
Requirements: Node.js and Yarn.
Install dependencies: yarn install
or npm install
Install peer dependencies: npm install react@~16.14.0 react-dom@~16.14.0 react-redux@~7.1.0 redux-thunk@~2.3.0 redux@~4.0.1 react-router-dom@~5.2.0 @material-ui/core@^4.11.0 @material-ui/icons@^4.9.1 babel-polyfill@^6.26.0 --no-save
Develop: export DEPLOY_ENV=development
and run yarn start
or npm start
Build: yarn run build
or npm run build
Publish to npm
Example of use this repository in child repositories
- If you are using npm@6, run
npm install
in the current repository; if npm@7 and later runnpm install --legacy-peer-deps
yarn link
to register the incore-playbook- Go to the child repository
npm install
in child repository and link it byyarn link incore-playbook
export DEPLOY_ENV=development
andnpm start
- Note: you should be able to set map configuration and allowed hazard types here: https://github.com/IN-CORE/Joplin-Playbook/blob/main/src/index.jsx
import render from "incore-playbook/src/render";
import baseReducer from "incore-playbook/src/reducers";
import baseRoutes from "incore-playbook/src/routes";
import {createTheme} from "@material-ui/core/styles";
const newTheme = createTheme({
typography: {
fontFamily: "Times New Roman"
},
palette:{
fontFamily: "Times New Roman"
}
});
export default (render(aggregatedReducer, aggregatedRoutes, newTheme));