Skip to content

Commit

Permalink
fix: add build-storybook script to fix chromatic build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
samshara committed Oct 15, 2024
1 parent 27dbb1b commit 5bae9aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion collaborating/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ To build different components of the IFRC GO project, use the following commands

**UI Library Storybook**
```bash
yarn build:storybook
yarn build-storybook
```
2 changes: 1 addition & 1 deletion collaborating/developing.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ This repository contains several scripts and commands for performing tasks. The
- `yarn preview` previews the production build of the Application.
- `yarn generate:type` generates the Typescript types for the API using `openapi-typescript`. The output is by default within the `generated` folder within the `app` workspace.
- `yarn storybook` starts Storybook's local server for the `@ifrc-go/ui` components library, listening by default on `http://localhost:6006/`.
- `yarn build:storybook` builds Storybook as a static web application for publishing.
- `yarn build-storybook` builds Storybook as a static web application for publishing.
- `yarn build:ui` builds the `@ifrc-go/ui` components library. To reflect any new changes in the components library we must ensure that it is built beforehand.
</details>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"generate:type": "yarn workspace go-web-app generate:type",
"preview": "yarn workspace go-web-app preview",
"storybook": "yarn workspace go-ui-storybook storybook",
"build:storybook": "yarn workspace go-ui-storybook build:storybook",
"build-storybook": "yarn workspace go-ui-storybook build-storybook",
"chromatic": "yarn workspace go-ui-storybook chromatic"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/go-ui-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"lint": "eslint src",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build:storybook": "storybook build",
"chromatic": "dotenv -- cross-var chromatic --project-token=%CHROMATIC_PROJECT_TOKEN% --build-script-name=build:storybook"
"build-storybook": "storybook build",
"chromatic": "dotenv -- cross-var chromatic --project-token=%CHROMATIC_PROJECT_TOKEN%"
},
"dependencies": {
"@ifrc-go/icons": "^2.0.1",
Expand Down

0 comments on commit 5bae9aa

Please sign in to comment.