Socket
Book a DemoInstallSign in
Socket

@bridge-the-gap/design-system

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bridge-the-gap/design-system

2.6.4
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

Bridge-the-Gap Design System

Scripts

  • yarn tokens - rebuilds token files.
  • yarn start - starts storybook development server at https://localhost:6006.
  • yarn add-component <ComponentName> - adds template files for new component
  • yarn build - builds components library into dist/ folder.
  • yarn storybook build - builds storybook into storybook-static/ folder.
  • yarn version - bumps library version and creates a commit with contents of dist/ folder.

Rules on className usage

Almost all components have className API which allows quickly set custom margins and positioning for the elements. It's important to have an agreement on className separation and determine what can be used in component library and what - on the project side. While most classes should belong to component itself, there are few which should not be used in the top element of component which has className API (list to be upated):

  • margin: m-2, mx-auto, m-4 etc..
  • align-self: self-auto, self-stretch...
  • width: w-1/2, w-full, w-16..

It's ok to use this classes inside the components (not on the wrapper), or if you are creating a component which is not supposed to be modified or positioned, and doesn't need className prop.

Setting up semantic-release locally.

npx semantic-release-cli setup
  • For CI, choose option Other (prints tokens)
  • Copy tokens into local .env file, and load them locally
  • Make sure you have 2FA authentication enabled

Release via Github actions

  • To skip CI jobs, add to commit message keyword [skip-ci] (with brackets)
  • You can run yarn semantic-release` locally to check for version and changelog. However make sure that the branch you are on has a remote, otherwise semantic release will fail.

npmjs release library

  • npm login - login into your own account npmjs.
  • yarn build - bundles the library and all packages in the project to a single package.
  • yarn publish - publishes a package to the npm registry. Once a package is published, you can never modify that specific version, so take care before publishing.

FAQs

Package last updated on 18 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.