npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ensi-platform/core-components

v1.0.0-beta.2.0.1

Published

Библиотека React компонентов для создания интерфейсов

Downloads

803

Readme

React Component Library

This React component library is designed for use in Ensi frontend services. It makes it easier 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

To rebuild an individual component use yarn build-component [COMPONENT_NAME], for ex. yarn build-component select

P.s. build.bat for Windows is outdated and 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 local 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 && yarn link

Step 2: Linking the LIB to the REP

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

yarn link @ensi-platform/core-components

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

Resolving React version conflicts

Next, during REP build, you may have an error, related with some react hook. For example devtools will have warning “invalid react hook call”. This happens because of the presence of multiple react entities. To fix it, link react and @types/react from REP to the LIB, following this steps:

  1. Navigate to the REP/node_modules and create links:
yarn link --cwd react
yarn link --cwd @types/react
  1. Navigate to the root of the LIB and link react and @types/react
yarn link react
yarn link @types/react

Publish a new version

After review approval and merging task-branch to master, you should publish a new version.

  1. Firstly, actualize master and rebuild the package:
git checkout master
git pull origin master
yarn && yarn build
  1. Then check the latest package version at npmjs.com and choose a new version number:

    • PATCH version when you make backward compatible bug fixes
    • MINOR version when you add functionality in a backward compatible manner
    • MAJOR version when you make incompatible API changes
  2. Go to dist/ build folder and publish code to npmjs:

cd dist
yarn publish --access=public

This command will override version number only in package.json in dist/ folder.

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

  1. Next run command yarn version and specify the same version as in step 3. This command will override version number in package.json, commit changes and create new annotated tag.

  2. Now push changes to gitlab and additionally push tags:

git push origin master
git push origin --tags
  1. Finally go to gitlab-repository, check your tag, release it and fill the release description changes.

Creating a new package

It is recommended to use create-package.js script to create a new package

Run yarn create-package from the root

License

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