Alejandro Lembke Barrientos 57815d0949 PR-227028: fix CI — bump Node to 22 and regenerate lock file
- Bump CI Node from 20 to 22 across all jobs. sass-loader@17 requires
  Node >= 22.11, so Node 20 was unsupported (EBADENGINE).
- Regenerate package-lock.json from scratch to fix npm ci failing with
  "Missing: @emnapi/runtime from lock file" — an npm optional-deps issue with
  the oxc/wasm bindings pulled by typescript-eslint's resolver.
2026-06-09 17:47:09 +00:00
2023-06-27 03:08:57 +00:00
2022-05-30 15:17:49 +00:00
2022-05-27 07:39:25 -06:00
2023-06-27 14:58:24 +00:00

Create React Component Library

This project aims to have a starter kit for creating a new React Library with storybook.

Setup

To create a new project run in the terminal:

npx @aleleba/create-react-component-library react-library

Then run:

cd react-library

You will need to create a new .env file at the root of the project for global config. This is an exaple of config.

#Library Name (Default: ui-library)
LIBRARY_NAME=ui-library
#External CSS (Default: false)
EXTERNAL_CSS=true
#External CSS NAME (Default: index.css)
EXTERNAL_CSS_NAME=other_name.css
#PREFIX URL (Default: '')
PREFIX_URL=

For Development

In the terminal run:

npm run start

You will find the components on:

scr/components

You will find stories of storybook on:

scr/stories

This will start the app-library in development mode, also it have Hot Reloading! Enjoy coding!

For Production

In the terminal run:

npm run build

It will create a dist folder and run:

npm publish

This will publish on npm your package.

Cheers

Hope you enjoy this proyect! Sincerely Alejandro Lembke Barrientos.

Description
A starter kit for create a React component Library with storybook
Readme MIT 4.4 MiB
Languages
TypeScript 43%
JavaScript 31.8%
MDX 22.3%
SCSS 1.7%
HTML 1.2%