2.53.0 • Published 1 year ago

liber-salti v2.53.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
1 year ago

Saltí

Commitizen friendly

Liber Design System. This project was created using:

It also features:

Usage

Package

You can use this package adding it to your project with the command:

yarn add liber-salti

⚠️ Be aware of the peer dependencies of this library.

Examples

You can check each component's example in out Storybook page.

Development

Linting

yarn lint

Automatic fix errors:

yarn lint --fix

Testing

yarn test

Obs: we are currently using Storyshots for snapshot testing the Storybook stories.

If they fail with your change, analyze if this change should be affecting another stories or not. If so, you can update them by running:

yarn test -u

Building

yarn build

Storybook

To run a live-reload Storybook server on your local machine:

yarn storybook

To export your Storybook as static files:

yarn storybook:export

You can then serve the files under storybook-static.

Generating New Components

There is a NodeJS util file under util called create-component.js. Instead of copy pasting components to create a new component, you can instead run this command to generate all the files you need to start building out a new component. To use it:

yarn generate YourComponentName

This will generate:

/src
  /YourComponentName
    YourComponentName.tsx
    YourComponentName.stories.tsx
    YourComponentName.test.tsx
    YourComponentName.types.ts
    YourComponentName.styles.ts
    index.ts

The default templates for each file can be modified under util/templates.

Installing Component Library Locally

Let's say you have another project (test-app) on your machine that you want to try installing the component library into without having to first publish the component library. In the test-app directory, you can run:

yarn add ../salti

Which will install the local component library as a dependency in test-app. It'll then appear as a dependency in package.json like:

  ...
  "dependencies": {
    ...
    "salti": "../salti",
    ...
  },
  ...

Your components can then be imported and used in that project.

⚠️ You might have to delete this project's node_modules folder before installing it locally in another app, so the lib uses the other project's packages, avoiding errors like "duplicate React found" or so.

Publishing

NPM and semantic-release

This project is configured with GH Actions workflows for setting a new release using semantic-release and publishing it on NPM Registry.

2.53.0

1 year ago

2.52.2

2 years ago

2.52.3

2 years ago

2.49.1

2 years ago

2.49.0

2 years ago

2.52.1

2 years ago

2.52.0

2 years ago

2.48.0

2 years ago

2.48.1

2 years ago

2.51.0

2 years ago

2.51.1

2 years ago

2.47.4

2 years ago

2.47.3

2 years ago

2.47.6

2 years ago

2.47.5

2 years ago

2.47.0

2 years ago

2.47.2

2 years ago

2.47.1

2 years ago

2.50.0

2 years ago

2.50.1

2 years ago

2.46.0

2 years ago

2.45.0

2 years ago

2.41.4

2 years ago

2.41.3

2 years ago

2.41.6

2 years ago

2.41.5

2 years ago

2.44.1

2 years ago

2.44.0

2 years ago

2.44.3

2 years ago

2.44.2

2 years ago

2.43.0

2 years ago

2.42.1

2 years ago

2.42.0

2 years ago

2.42.3

2 years ago

2.42.2

2 years ago

2.38.6

2 years ago

2.38.5

2 years ago

2.38.7

2 years ago

2.38.2

2 years ago

2.38.1

2 years ago

2.38.4

2 years ago

2.38.3

2 years ago

2.38.0

2 years ago

2.41.2

2 years ago

2.41.1

2 years ago

2.41.0

2 years ago

2.37.0

2 years ago

2.40.2

2 years ago

2.40.1

2 years ago

2.40.0

2 years ago

2.36.0

2 years ago

2.36.2

2 years ago

2.36.1

2 years ago

2.39.1

2 years ago

2.39.0

2 years ago

2.39.2

2 years ago

2.34.0

2 years ago

2.35.1

2 years ago

2.35.0

2 years ago

2.29.0

2 years ago

2.25.0

2 years ago

2.21.4

2 years ago

2.23.1

2 years ago

2.21.3

2 years ago

2.27.0

2 years ago

2.32.0

2 years ago

2.32.1

2 years ago

2.30.0

2 years ago

2.19.0

2 years ago

2.17.0

2 years ago

2.15.0

2 years ago

2.22.1

2 years ago

2.20.0

2 years ago

2.22.0

2 years ago

2.28.1

2 years ago

2.28.0

2 years ago

2.28.2

2 years ago

2.22.3

2 years ago

2.24.0

2 years ago

2.22.2

2 years ago

2.26.1

2 years ago

2.26.0

2 years ago

2.31.0

2 years ago

2.33.0

2 years ago

2.16.1

2 years ago

2.14.3

2 years ago

2.18.0

2 years ago

2.16.2

2 years ago

2.14.4

2 years ago

2.14.1

2 years ago

2.16.0

2 years ago

2.14.2

2 years ago

2.14.0

2 years ago

2.21.0

2 years ago

2.23.0

2 years ago

2.21.2

2 years ago

2.21.1

2 years ago

2.11.0

3 years ago

2.12.0

2 years ago

2.10.0

3 years ago

2.9.0

3 years ago

2.13.0

2 years ago

2.12.1

2 years ago

2.12.2

2 years ago

2.7.0

3 years ago

2.8.1

3 years ago

2.8.0

3 years ago

2.5.0

3 years ago

2.6.0

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.0.2

3 years ago

2.4.0

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.13.0

3 years ago

1.12.0

3 years ago

1.11.0

3 years ago

1.10.0

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago