@alberto91base/prueba-react-components
v0.2.38
Published
A simple template for a custom React component library
Downloads
26
Readme
Add component to storybook library and upload to npm
- Create component files, including tests and story
- Change import lines in scss files to adapt to project folder structure.
- Add component to index.js file at root level
- Execute chromatic to check if component is ok
yarn chromatic
- Execute command
MSG="(here we put the information about the task)" yarn upgrade-(patch/minor/major)
- Execute command
npm publish
to upload to npm - In repo/s where this component is used, use
yarn upgrade @npm_leadtech/legal-lib-components --latest
, - Change imports to use @npm_leadtech/legal-lib-components and delete component files.
Last modification instead of git commit we must write the following command
MSG="(here we put the information about the task)" yarn upgrade-(patch/minor/major)
NPM credentials
Private account
Chromatic
Url de acceso al Chromatic del proyecto https://www.chromatic.com/builds?appId=6561c745020967e7c053b406
Para ejecutar: yarn chromatic
Trabajo con yalc
- Instale golbalmente yalc (solo la primera vez)
npm i yalc -g
- En la librería, tras realizar los cambios necesarios, compile y publique
yarn build && yalc publish
- En el proyecto donde se desea utilizar la librería ejecute:
yalc add @npm_leadtech/legal-lib-components
apuntando a la versión que generó previamente el paso anterior - Desde la librería agregue los cambio en el proyecto destino:
yalc push