1.0.0 • Published 2 years ago

@wecancer/design-system v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Install

NPM:

npm install @wecancer/design-system

Yarn:

yarn add @wecancer/design-system

Usage

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 install

Now, you can run the project demo to explorer the Design System components. Run the command:

yarn start

Using 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)

Checking the truth of the code with the command:

yarn run check

Building

Building to publish the project:

yarn build

Building demo:

yarn build:demo

License

MIT © WeCancer

1.0.19

2 years ago

1.0.2

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.12

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago