@icrc/esm-frontend-dependencies
v1.0.10
Published
Packages which bundles all the dependencies for ICRC OpenMRS
Downloads
290
Readme
OpenMRS Frontend Dashboard Dependencies
This module takes care of bundling all the required packages for dashboard and create frontend folder which can be deployed in OpenMRS MF Framework.
This module is using packmap for bundling dependencies & creating import-map.json file. For more information refer packmap documentation
Prerequisites
- Install NodeJS.
Access to the internal Nexus instance is no longer required. Every dependency now resolves from the public npm registry.
How to setup?
- Run
npm install --legacy-peer-depsto install the dependencies. - Run
npm --openssl-legacy-provider run buildto bundle the required packages.
How to update dependencies
- Edit
package.json - Remove
package-lock.json - Install with
npm install --legacy-peer-deps
Publishing is done via TFS...
Adding new dependency
- Install the dependent package as npm dev depedency
npm install <package-name>. - Update the same package with same version in
packmap-package.json.
Override import-map.json
Add entries to overriding-import-map.json (for prod) / overriding-import-map-local.json (for local) file to override the generated import-map.json file. For more information refer packmap documentation.
Bundling static files
If you want to bundle any static file along with frontend dependencies, add those files inside statics folder.
Deploy latest package to local docker instance
- Run
npm run deploy-dockercommand to build the package for local environment & deploy to OpenMRS docker instancedistro_web_1running in your local machine.
