2.42.1 • Published 8 months ago

@indico-data/design-system v2.42.1

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

Storybook Dev Server Initialization

Install dependencies with a simple yarn command.

yarn dev runs the command storybook dev -p 6006 which should boot the dev server and open the local host in a browser window.

Import Issues

When you first set this up, you might run into import issues due to Yarn 4. In order to resolve these, you need to run yarn dlx @yarnpkg/sdks vscode (assuming you are on VSCode). more information available here (https://stackoverflow.com/questions/54954337/is-it-possible-to-use-yarn-pnp-with-typescript-vscode)

Additional Scripts

Run the below like yarn <my command>

"build": "storybook build",
"test-storybook": "test-storybook",
"prepare": "husky install"

Commit Hygiene

This repository follows a slightly modified version of the ESLint Commit Message Format. This repository uses the PR title to configure the contents of the commit message of the squashed commit associated with the PR: In general, a PR should use the following structure:

Title

The title should have the following format: <type>(<optional ticket id>): <short summary>

The <type> should be Fix, Update, New, or Breaking for controlling releases.

If the PR need not be associated with a new release, choose any other <type> from the ESLint commit convention tags, such as Docs (documentation), Build (build process), Upgrade (dependency upgrade), or Chore (non-user-facing tasks).

Examples:

  • Update: button color adjustment
  • New(SNC-222): add dark mode

If your PR title does not follow these commit conventions, merging will be blocked.

See below for more information on how commit structure affects releases.

Releasing

This repository uses Semantic Release to control versioning and releases. Semantic Release's prime purpose is to remove developers from the version numbering process, and this repository embraces that philosophy.

Automatic Releases

Two things primarily determine how a new release is versioned:

  1. The commit history leading up to the commit being released (to determine the base version from which to bump)
  2. The message of the commit being released (to determine the version incrementation amount)

To release a new version as part of a pull request, use a semantic commit message (prefixes like Fix, Update, New, or Breaking) in the title of your pull request. This repo uses a slightly modified version of the ESLint conventional changelog to describe commit conventions.

  • Fix or Update: Initiate a patch release
  • New: Initiate a minor release
  • Breaking: Initiate a major release

If your PR title does not follow these commit conventions, merging will be blocked.

Under the hood, Semantic Release controls the npm release process entirely by way of managed Git tags. Updating the package.json version number is unnecessary and discouraged.

Releasing a Non-Latest Version

To release a patch version on a previous major version:

  • Checkout a new branch off the old version you'd like to release from: git checkout -b <branch-name> <tag-name> (e.g. git checkout -b ethan/patch-fix v2.0.2)
  • Commit as normally, using the PR Title conventions outlined above
  • Semantic Release will take care of the versioning

Tracking Releases

If you want to view the latest version of the Design System, you have a few options:

  • From this repository, run yarn latest-release
  • From outside this repository, run npm dist-tags ls @indico-data/design-system

If you want to see all releases:

Do NOT use the version attribute of package.json to track or initiate releases because:

Manual Releases

Do not manually release Permafrost to npm, as it may cause issues with the Semantic Release pipeline.

Theming Addon Documentation

Addon - Themes

https://github.com/storybookjs/storybook/tree/next/code/addons/themes

CSS Data ATTR

https://github.com/storybookjs/storybook/blob/next/code/addons/themes/docs/api.md#writing-a-custom-decorator

2.42.1

8 months ago

2.41.1

8 months ago

2.42.0

8 months ago

2.41.0

8 months ago

2.40.0

8 months ago

2.38.0

9 months ago

2.37.0

9 months ago

2.39.0

8 months ago

2.34.0

10 months ago

2.34.2

10 months ago

2.34.1

10 months ago

2.34.4

9 months ago

2.34.3

9 months ago

2.33.1

10 months ago

2.33.0

10 months ago

2.32.1

10 months ago

2.36.4

9 months ago

2.36.3

9 months ago

2.36.0

9 months ago

2.36.2

9 months ago

2.36.1

9 months ago

2.35.0

9 months ago

2.27.0

10 months ago

2.11.0

11 months ago

2.0.3

1 year ago

2.30.1

10 months ago

2.0.2

1 year ago

2.4.1

12 months ago

2.4.0

12 months ago

2.4.2

12 months ago

2.30.0

10 months ago

2.8.0

12 months ago

2.0.1

1 year ago

2.19.0

10 months ago

2.15.0

11 months ago

2.15.1

11 months ago

2.22.0

10 months ago

2.26.0

10 months ago

2.3.0

12 months ago

2.3.2

12 months ago

2.10.0

11 months ago

2.3.1

12 months ago

2.7.0

12 months ago

2.18.0

11 months ago

2.14.0

11 months ago

2.21.0

10 months ago

2.21.2

10 months ago

2.21.1

10 months ago

2.29.0

10 months ago

2.29.2

10 months ago

2.29.1

10 months ago

2.25.0

10 months ago

2.32.0

10 months ago

2.2.0

1 year ago

2.6.0

12 months ago

2.17.2

11 months ago

2.17.0

11 months ago

2.17.1

11 months ago

2.13.0

11 months ago

2.20.0

10 months ago

2.28.1

10 months ago

2.28.0

10 months ago

2.28.2

10 months ago

2.24.1

10 months ago

2.24.0

10 months ago

2.1.2

1 year ago

2.31.0

10 months ago

2.12.0

11 months ago

2.5.0

12 months ago

2.1.3

1 year ago

2.9.0

11 months ago

2.16.0

11 months ago

2.12.1

11 months ago

2.23.0

10 months ago

2.0.0

1 year ago

1.0.58

1 year ago

1.0.57

1 year ago

1.0.56

1 year ago

1.0.55

1 year ago

1.0.54

1 year ago

1.0.53

1 year ago

1.0.52

1 year ago

1.0.51

1 year ago

1.0.50

1 year ago

1.0.49

1 year ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.46

1 year ago

1.0.45

1 year ago

1.0.44

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.40

1 year ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

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.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

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.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago