ab-tests
Version:
HBUI library
77 lines (59 loc) • 1.43 kB
Markdown
WIP - contributions welcome
1/3: Make sure you have a Specify `personalAccessToken` and the Specify CLI installed in your system:
```shell
yarn global add @specifyapp/cli
```
2/3: Create a file called `.specifyrc.json` at the root of the project with the following content (replace your personal access token):
```shell
{
"repository": "@hummingbot/ds",
"personalAccessToken": "your personalAccessToken here",
"rules": [
{
"name": "Design Tokens",
"path": "tokens/index.js",
"parsers": [
{
"name": "to-tailwind",
"options": {
"formatName": "kebabCase",
"formatTokens": {
"colorFormat": {
"format": "hex"
},
"fontSizeFormat": {
"unit": "rem"
}
},
"splitBy": "/",
"formatConfig": {
"objectName": "extend",
"module": "commonjs"
}
}
}
]
}
]
}
```
3/3: update the design tokens:
```shell
specify pull
```
Make sure the dependencies are installed before building
```shell
yarn
yarn pack_all
```
1: Build the module
2: Bump the version in package.json
3: Publish with this command:
```shell
npm publish
```