This repository includes all the custom LabKey modules developed by the WNPRC for use in the EHR system. Each subfolder contains a separate module.
To build the WNPRC EHR modules for development:
- Follow the instructions to set up a LabKey development machine.
- From the LabKey root directory:
- Clone this repo into the external modules directory:
git clone https://github.com/WNPRC-EHR-Services/wnprc-modules.git externalModules/wnprc-modules
- Add the following to ~/.gradle/gradle.properties:
moduleSet=../../externalModules/wnprc-modules/gradle/settings/wnprc
- Build LabKey, which includes all of our modules, too:
./gradlew deployApp
- Clone this repo into the external modules directory:
From there, all standard Gradle rules apply; you can build individual modules or even individual steps. For example:
# deploy our modules only
./gradlew :externalModules:wnprc-modules:deployModules
# build just the WNPRC_EHR module
./gradlew :ext:wnp:WNPRC_EHR:build
# re-run webpack for the breeding module
./gradlew :ext:wnp:bre:webpack