git clone https://github.com/JordanUrbaezLu/astro-ui-library
cd astro-ui-library
npm install
git checkout -b <new-branch-name>
git add .
6. Now commit your files and leave a message using conventional commits.
git commit -m "<type>[scope/component]: <description>"
git push origin <your-branch-name>
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
Runs all the unit tests for the components.
Unit tests use React Testing Library and Jest.
Runs all the unit tests for the components and also updates the snapshots.
Snapshots should only be updated if you already ran npm test
and failed because a foundamental change was made inside a component.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Run commitizen to help format your commit messages to pass commitlint CI test.
Formats the all the files in the project with Prettier - Code Formatter.
Launches Storybook for the React UI Components.
Open http://localhost:6006 to view Storybook in the browser.
Builds a production ready, static version of your Storybook app to the storybook-static
folder.
Removes the build and storybook-static directories.