ui-kit-ipiranga
v0.0.8
Published
Componentes do Guia de estilo abastece-aí
Readme
ui-kit-abastece-ai
Awesome React UI Kit
| Statements | Branches | Functions | Lines |
| ------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| |
|
|
|
Installation
Clone the repository, and install the dependencies by running the following commands:
$ git clone https://gitlab.eai.com.br/project-grups/sites/ui-kit-front-web.gitAccess the project on ui-kit-front-web directory:
$ cd ui-kit-front-webAccess the develop branch:
$ git checkout developpull all develop changes:
$ git pull origin developthen install all dependencies :
$ yarn # npm installRunning and testing the application
Access the project folder and run the following command:
Run Storybook
$ yarn start # npm run storybookRun tests
$ yarn test # npm run testBuilding the application
Build Storybook
$ yarn storybook:export # npm run storybook:exportBuild Project
yarn prepublishOnly # npm run prepublishOnlyCoding Conventions
- Interfaces for React Components have to be named (ComponentName)Props
- e.g - Component
const App = ({text}) => <div>{text}</div> - e.g - Interface
interface AppProps { text: string }
- e.g - Component
- All other Interfaces should be CamelCase version of the name of the function or object
- Only add the prefix I if there is no other Choice
- e.g - Function
addStyles() => {} - e.g - Interface
interface AddStyles {}
- e.g - Function
- Do not use the type any, opt for unknown.
- Limit the use of classes but instead opt for pure single purpose functions.
- Rely on composability to deal with complexity
- Prefer Async/Await syntax over .chain with then.catch
- Separation of concerns in React
- Defer logic to hooks and HOCs
- Page state should be stored in a context API
- Local state should be stored in component
- Keep components as simple as possible so they can be more modular
How to make a Commit
To make a commit must be used a following rule:
git commit -m "*type*: commit-message"
- Where type is: [
Feature,Fix,Improvement]
How to Contribute
- Fetch/Pull the Development Branch
- Create a Branch based on your type and issue name
- e.g - Branch name is Feature-readme
- e.g - Branch name is Fix-styleButton
- Once done push your branch to origin and submit a MR to the Development branch for code review
- e.g -
git push origin Feature-readme
- e.g -
License
MIT © Abastece-aí
