Skip to content

Commit

Permalink
chore: move storybook config to its own package (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas authored Sep 27, 2024
1 parent 6733af1 commit 07f5f80
Show file tree
Hide file tree
Showing 16 changed files with 6,178 additions and 224 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,6 @@ jobs:
- uses: chromaui/[email protected]
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitOnceUploaded: true
workingDir: packages/legacy-stories
storybookBuildDir: storybook-static
38 changes: 0 additions & 38 deletions .storybook/main.js

This file was deleted.

3 changes: 0 additions & 3 deletions .storybook/preview-head.html

This file was deleted.

15 changes: 13 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "dev", "preview"]
"cacheableOperations": ["build", "dev", "preview", "build-storybook"]
}
}
},
Expand All @@ -15,5 +15,16 @@
},
"affected": {
"defaultBase": "main"
}
},
"plugins": [
{
"plugin": "@nx/storybook/plugin",
"options": {
"serveStorybookTargetName": "storybook",
"buildStorybookTargetName": "build",
"testStorybookTargetName": "test-storybook",
"staticStorybookTargetName": "static-storybook"
}
}
]
}
Loading

0 comments on commit 07f5f80

Please sign in to comment.