react-list-ui-library/README.md

56 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2023-10-12 00:43:52 -06:00
# React List UI Library
2023-10-10 19:58:04 -06:00
2023-10-11 18:54:03 -06:00
This project is a React Library with storybook for a List App.
2023-10-10 19:58:04 -06:00
## Setup
2023-10-11 18:54:03 -06:00
First clone the repo:
2023-10-10 19:58:04 -06:00
```
2023-10-11 18:54:03 -06:00
git clone git@github.com:aleleba/react-list-ui-library.git
2023-10-10 19:58:04 -06:00
```
Then run:
```
2023-10-11 18:54:03 -06:00
cd react-list-ui-library
2023-10-10 19:58:04 -06:00
```
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.