@appsignal-tools/design-system
v19.0.0
Published
## Install
Downloads
2,300
Readme
Design System
Install
- Add the design systen to your app:
$ yarn add appsignal/design-system
- Add the CSS bundle to your Webpack entry point:
import "@appsignal-tools/design-system"
- Ensure you have
publicPath: "/"
setup in ouroutput
for webpack. See: https://webpack.js.org/guides/public-path/ - Done
Development
When you're working on the design system it is usually nice to see the changes
that you made right away without having to push to GitHub first. You can do so
with yarn link
.
- Clone the design system repo to your machine and cd to the folder
- Run
yarn install
- Run
yarn link
The package is now available to be linked in other applications:
- Go to the project where you want to link this package in
- Run
yarn link @appsignal-tools/design-system
When you make changes to the design system, you need to build a new version so the projects that consume this package can actually use this.
While developing, the easiest way to build a new version is by running yarn build:watch
.
If you only want to build, but not watch for changes you can use yarn build
.
When you make a change, please make sure this gets added to the Changelog.
Release a new version
- Create a new tag from
main
:$ git tag -a VERSION
- Push tag to GitHub:
$ git push origin VERSION
- Create a new package for NPM:
$ npm publish