This project was built with Storybook and Create-react-app
Requeriments
- Yarn for packages management
- NP for manage versions and automatically publish at NPMJS.com
Available Scripts
In the project directory, you can run:
yarn dev
Run development
version
yarn build
Compile files to the folder .next
yarn start
Run production
version
yarn build-ui
Compile SASS files and React components in ui
folder to be used in the NPM package
How to deploy
This is the workflow to make updates:
-
You will need to run
yarn install
and thenyarn dev
-
Every react component must be created on
src/components
folder and exported onsrc/index.js
-
Every SASS file (Attached to some react component) must be created on
src/sass
and exported onmain.scss
-
Add the respective component documentation on
pages/components
-
Execute
yarn build
to compile updated files -
Execute
yarn build-ui
to compile in the final distribution folder -
Commit the changes and add a messsage
-
Execute
np
, select the version to be deployed and that's all, the GitLab repo will be updated and new package into NPMjs.org published.