This library makes it easy to create interfaces using the Greensight Design System (GDS) library.
For accesses to the ensi-platform at npmjs.com oraganization, contact the resource manager.
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.
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:
Navigate to the dist build directory and create a symbolic link
cd dist && npm link
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
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)
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
Refer to the LICENSE.md (MIT) file to view the license.