Packages
Packages used across projects
Currently, we have three internal packages located in the package/ directory
api: an abstraction layer for the eDroplets API
This packages provides functions to make calls to the eDroplets APIs with type checking and additional client-side preprocessing when needed
This is just a wrapper for making API calls directly, but please do not make API calls directly and use this for the sake of uniformity
schemas: validation schemas for Yup
Shared validation schemas (such as for user login or other forms)
ui: frontend components and other shared user interface tools
This package serves to standardize styling between both of our frontends and is currently a work in progress
Eventually this package will serve as a component library and both frontends will mostly use these components
These packages need to be built when using them. If you do not build them, you may run into some sort of error when running the frontends. To build all packages:
npm run packages:buildTo build a specific package (e.g. api), just run the build script from the package directory or run the following from the root directory
npm run build --prefix packages/apiLast updated