A JavaScript module for interactive exploration of forecast evaluations.
You'll need to install Node.js and npm. Please see the installation instructions at https://docs.npmjs.com/downloading-and-installing-node-js-and-npm.
You must install the required Node.js packages via:
npm install --save-devThe dev-example folder has a minimal working example for local development, based on the flusight-dashboard. To use this example for development, use the following commands, starting from the root of the predevals repository:
npm run build
cp dist/predevals.bundle.js dev-example
cd dev-example
python3 -m http.server 8000Then open http://127.0.0.1:8000/ in your web browser. As you make changes to src/predevals.js, rebuild and recopy the updated predevals.bundle.js into the dev-example folder and then refresh the page in your browser.
We use webpack to package up all dependencies into a single dist/predevals.bundle.js file for end users. To do so, execute the package.json build script via the following command, which will update all files in dist/.
npm run buildYou'll then need to commit and push your updates (including dist/predevals.bundle.js) to GitHub.
For each version, create a new release of the package on GitHub using vX.Y.Z for the GitHub tag and release-vX.Y.Z for the release title. The release is now available for use via jsdelivr.