Work in Progress
Requirements: Node.js and Yarn.
Install dependencies: yarn install or npm install
Install pre-commit: pre-commit install if pre-commit is not installed, run brew install pre-commit
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 INCORE_REMOTE_HOSTNAME=https://incore-dev.ncsa.illinois.edu and run yarn start or npm start
or npm run start:dev
Build: yarn run build or npm run build
Example of use this repository in child repositories
yarn linkto register the incore-playbook- Go to the child repository
npm installin child repository and link it byyarn link incore-playbookexport INCORE_REMOTE_HOSTNAME=https://incore-dev.ncsa.illinois.eduandnpm startornpm run start:dev- 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));