@ensi-platform/core-components
TypeScript icon, indicating that this package has built-in type declarations

1.0.44-beta • Public • Published

React Component Library

This library makes it easy to create interfaces using the Greensight Design System (GDS) library.


How and where to get accesses

For accesses to the ensi-platform at npmjs.com oraganization, contact the resource manager.


How to work with LIB

After cloning the repository, install the yarn dependencies (Node 18.18+)

The build is started with the yarn build command and creates a build at the ./dist path.

The build can be parallelized for this purpose by defining the BUILD_CONCURRENCY parameter in the bin/build.sh file

Each parallel process takes about 0.5-1GB of RAM per node instance, so calculate your capabilities

P.s. build.bat on windows is up-to-date but not debugged, there may be problems.


Start working on the task

Next, let's describe the process of working with this library (hereinafter LIB) and testing it in another repository/project (hereinafter REP).

To customize the LIB for integration with REP, follow these steps:

Step 1: Create a symbolic link for the LIB

Navigate to the dist build directory and create a symbolic link

cd dist && npm link

Step 2: Linking the LIB to the REP

Make sure the dependencies are already installed in REP and link the LIBs

npm link @ensi-platform/core-components

This way the linked repository will always have your dist build in it

Resolving React version conflicts

If there is a React version conflict, for example if devtools has an error “invalid react hook call”, follow this step to fix it:

Link React from REP to the LIB, from the root of the LIB execute:

npm link (absolute path to node_modules/react in REP)

Publish a new version

Once the task is finished, you should go to the cd dist/ build folder and publish the new version with the yarn publish --access=public command

The new version will include all the contents of the dist folder, but you can always adjust the whitelist in the dist/package.json parameter files


License

Refer to the LICENSE.md (MIT) file to view the license.

Readme

Keywords

none

Package Sidebar

Install

npm i @ensi-platform/core-components

Weekly Downloads

304

Version

1.0.44-beta

License

MIT

Unpacked Size

6.52 MB

Total Files

2494

Last publish

Collaborators

  • bashakin
  • zhukovkirill
  • greensight_yurchenko
  • ensi.tech