0.3.1 • Published 2 years ago

@in-core/incore-playbook v0.3.1

Weekly downloads
-
License
MPL-2.0
Repository
-
Last release
2 years ago

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

  1. If you are using npm@6, run npm install in the current repository; if npm@7 and later run npm install --legacy-peer-deps
  2. yarn link to register the incore-playbook
  3. Go to the child repository
  4. npm install in child repository and link it by yarn link incore-playbook
  5. export DEPLOY_ENV=development and npm start
  6. 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));