@wecancer/design-system v1.0.0
Install
NPM:
npm install @wecancer/design-systemYarn:
yarn add @wecancer/design-systemUsage
Before starting to use the Design System, you must add the WecancerProvider provider at the beginning of your application.
import { WecancerProvider, Button } from '@wecancer/design-system'
function App() {
return (
<WecancerProvider>
<Button primary>Submit</Button>
</WecancerProvider>
)
}Contributing
You need the nodejs and yarn instaled on your device to run this project in development.
To run the project, go to the project path, run the command below to install the dependencies:
yarn installNow, you can run the project demo to explorer the Design System components. Run the command:
yarn startUsing patterns to write and create resources:
- File names with the kebab-case (exp:
my-file-name.ts) - we're using the AirBnB eslint patterns
- To create a component:
- Create component file:
component/{component-name}/index.tsx - Create test file:
component/{component-name}/{component-name}.test.tsx - Create demo file:
component/{component-name}/{component-name}.stories.tsx(we're using the StoryBook)
- Create component file:
Checking the truth of the code with the command:
yarn run checkBuilding
Building to publish the project:
yarn buildBuilding demo:
yarn build:demoLicense
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago