@opendialogai/opendialog-design-system-pkg

1.40.0 • Public • Published

od-design

Project setup

yarn install

Lints and fixes files

yarn lint

Running Storybook

yarn build-storybook
yarn serve-storybook

This opens up localhost:6006. If you are running this on the workspace container of the OpenDialog Dev Environment, port 6006 is exposed for this reason.

Local Dev

Before publishing to NPM, you can use this package locally in an instance of OpenDialog by running the following (all from within the OpenDialog Dev Environment workspace container):

  • Firstly insure that all dependencies are installed locally in the design system with yarn install
  • In /var/www/opendialog-design-system run yarn link. This makes the package available locally
  • In /var/www/opendialog run yarn link @opendialogai/opendialog-design-system-pkg. This links the local package
  • Finally run yarn run dev or yarn watch which will automatically rebuild any changes made in this package

Assets

The -s .public directive has been added to the storybook serve command. This will serve all the assets with the .public directory and make them publicly available for your components

Publishing to NPM

There is a job in the CircleCI config npm_publish that will check if there is a git tag on the current commit, and if so, use that to push a new version to NPM.

Releasing a version of the design system

Releasing the OpenDialog Design System uses a package called release-it

  • ensure that the branch you are intending to release from is clean
  • on the command line, run npm run release
  • you can then choose how you wish to bump the version or whether you want to generate a pre-release
  • executing the script will:
    • set the new version in package.json
    • generate an updated changelog
    • publish the new version to NPM (optionally)
    • commit the release changes (optionally)
    • tag (optionally)
    • push (optionally)
    • create a github release (optionally)
  • Once it is published, update the dependency in OpenDialog app

Auth

The npm run release script will use the .npmrc file that expects an env with the name NPM_TOKEN to be present

Customize configuration

See Configuration Reference.

Readme

Keywords

none

Package Sidebar

Install

npm i @opendialogai/opendialog-design-system-pkg

Weekly Downloads

173

Version

1.40.0

License

Apache-2.0

Unpacked Size

6.8 MB

Total Files

594

Last publish

Collaborators

  • jacob-stone
  • muhammederdem-od
  • goran.ambardziev
  • fruitbat2000
  • elliotmassen
  • patshone-gsl
  • stuarthaiagh