Git Product home page Git Product logo

openmrs-esm-core's Introduction

๐Ÿ‘‹ New to our project? Be sure to review the OpenMRS 3 Frontend Developer Documentation. You may find the Map of the Project especially helpful.

Also see the API documentation for @openmrs/esm-framework, which is contained in this repository.

OpenMRS CI Check documentation

Below is the documentation for this repository.

OpenMRS Frontend Core

This is a monorepo containing the core packages for the OpenMRS Frontend. These packages handle the "cross-cutting concerns" described in the Domain Decomposition document.

Available Packages

Application

This contains tooling and the app shell.

Framework

The following common libraries have been developed. They may also be used independently of the app shell.

All libraries are aggregated in the @openmrs/esm-framework package:

Frontend modules

A set of frontend modules provide the core technical functionality of the application.

Development

Getting Started

To set up the repository for development, run the following commands:

yarn
yarn setup

Building

To build all packages in the repository, run the following command:

yarn build

Verification of the existing packages can also be done in one step using yarn:

yarn verify

Running

The app shell and the framework

yarn run:shell

run:shell will run the latest version of the shell and the framework only.

The frontend modules in apps

yarn run:omrs develop --sources packages/apps/<app folder>

This will allow you to develop the app similar to the experience of developing other apps.

The tooling

cd packages/tooling/openmrs
yarn build
./dist/cli.js

The tests

Run yarn test in the directory containing the package you want to test.

Run yarn lerna run test to run all the tests in this repository.

Linking the framework

If you want to try out changes to a framework library, you will probably want to yarn link or npm link it into a frontend module. Note that even though frontend modules import from @openmrs/esm-framework, the package you need to link is the sub-library; e.g., if you are trying to test changes in packages/framework/esm-api, you will need to link @openmrs/esm-api.

In order to get your local version of that package to be served in your local dev server, you will need to link the app shell as well, and to build it.

Example

To set up to develop @openmrs/esm-api in a dev server for the patient chart:

  1. Navigate to the patient chart repository. Execute yarn link /path/to/esm-core/packages/framework/esm-api and then run yarn link /path/to/esm-corepackages/shell/esm-app-shell.
  2. In packages/shell/esm-app-shell, run yarn build:development --watch to ensure that the built app shell is updated with your changes and available to the patient chart. Then run your patient chart dev server as usual.

Please note that this will result in entries being added to the package.json file in the resolutions field. These changes must be undone before creating your PR, which you can do by running yarn unlink --all in the patient chart repo.

Check your work by adding a console.log at the top level of a file you're working on in esm-api.

Version and release

To increment the version, run the following command:

yarn release

You will need to pick the next version number. We use minor changes (e.g. 3.2.0 โ†’ 3.3.0) to indicate big new features and breaking changes, and patch changes (e.g. 3.2.0 โ†’ 3.2.1) otherwise.

Note that this command will not create a new tag, nor publish the packages. After running it, make a PR or merge to main with the resulting changeset.

Once the version bump is merged, go to GitHub and draft a new release. The tag should be prefixed with v (e.g., v3.2.1), while the release title should just be the version number (e.g., 3.2.1). The creation of the GitHub release will cause GitHub Actions to publish the packages, completing the release process.

Don't run npm publish, yarn publish, or lerna publish. Use the above process.

Design Patterns

For documentation about our design patterns, please visit our design system documentation website.

openmrs-esm-core's People

Contributors

brandones avatar florianrappl avatar denniskigen avatar ibacher avatar manuelroemer avatar donaldkibet avatar gracepotma avatar vasharma05 avatar zacbutko avatar jonathandick avatar nmalyschkin avatar samuelmale avatar jnsereko avatar joeldenning avatar nkimaina avatar dependabot[bot] avatar hadijahkyampeire avatar jwnasambu avatar walteronoh avatar nk183 avatar icrc-jofrancisco avatar cynthiakamau avatar korirc avatar alaboso avatar alexandermizgirev avatar denywiryk avatar nravilla avatar icrc-agomes avatar abertnamanya avatar rbuisson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.