1.0.95 • Published 1 year ago

@panenco/shortlist-ui v1.0.95

Weekly downloads
2
License
UNLICENSED
Repository
github
Last release
1 year ago

Shortlist core UI library

Prerequisites

  • nvm
  • yarn

Install required version of node:

nvm install 16
nvm use 16

Installing dependencies

To install dependencies please run yarn lerna bootstrap in repository root.

Build

yarn build To watch files when development yarn watch

Build Storybook

yarn build:storybook will build storybook to static assets in ./storybook-dist that can be uploaded to server

Development

For development, please use storybook stories. yarn start

New components adding

Important: Adding new component, remember: you need to use named export to allow @shortlist/app or whatever will use that package to be able to tree shake library.

OK:

import React from 'react';
import s from './styles.scss';

const Button = props => <button type="button" className={s.button} {...props} />;

export { Button }; // Use named export

Wrong:

import React from 'react';
import s from './styles.scss';

const Button = props => <button type="button" className={s.button} {...props} />;

export default Button; // Don't use default export

Also, don't forget to re-export new component from src/index.jsx.

...
export { Button } from 'components/button';
...
1.0.95

1 year ago

1.0.94

1 year ago

1.0.93

1 year ago

1.0.92

2 years ago

1.0.91

3 years ago

1.0.90

3 years ago

1.0.88

3 years ago

1.0.89

3 years ago

1.0.87

3 years ago

1.0.86

3 years ago

1.0.85

3 years ago

1.0.84

3 years ago

1.0.83

3 years ago

1.0.82

4 years ago

1.0.81

4 years ago

1.0.80

4 years ago

1.0.79

4 years ago

1.0.78

4 years ago

1.0.77

4 years ago

1.0.76

4 years ago

1.0.75

4 years ago

1.0.74

4 years ago

1.0.73

4 years ago

1.0.72

4 years ago

1.0.71

4 years ago

1.0.70

4 years ago

1.0.69

4 years ago

1.0.65

4 years ago