ehr-components

0.2.16 • Public • Published

Important Notice For EHR Developers

This project is copy from https://koodivaramu.eesti.ee/veebiraamistik/react/tree/MTA

Changes will be pushed back to koodivaramu

New components for EHR should be added to Folder: src>ehr_components and this folder ONLY !!!

Please don't change original mta-components. If changes are needed then create new component from original mta-component and make changes in copied component.

REACT 18 UPGRADE

Due to react 18 upgrade and the dependencies management and versioning is all over the place, right now npm legacy-peer-deps feature seems to work better than yarn dependency management logic

Delete existing node_module folder

Install dependencies:

npm run il

or

npm install --legacy-peer-deps

Run styleguide locally:

npm run styleguide

If React Intl missing message errors get annoying, add this filter to console:

-[React

Build static styleguide:

yarn styleguide:build

Import this module in a project:

Option 1: using npm repository

Create file .npmrc with content:

registry=http://repo.rmv/nexus/repository/npm/

In terminal:

yarn add ehr-components

Option 2: using local copy

Doing so enables you to see locally made changes in your project.

yarn link
yarn watch

In your project:

yarn link ehr-components

If problems arise from conflicting React versions:

In your project's node_modules/react folder:

yarn link

In this project's root:

yarn link react

Eslint:

Displaying custom lint errors in console is not possible with create-react app. [source]
Please use IDE integration instead.

Version numeration:

Update 17.04.23

Versions 0.1.x are used for production.

Versions 0.0.x are used for testing in development environment.

Readme

Keywords

none

Package Sidebar

Install

npm i ehr-components

Weekly Downloads

268

Version

0.2.16

License

UNLICENSED

Unpacked Size

33.4 MB

Total Files

1174

Last publish

Collaborators

  • mkmjs