Skip to content

Commit

Permalink
feat: add storybook for SODA for SPARC (#104)
Browse files Browse the repository at this point in the history
* Update CODEOWNERS

* feat: add storybook

* style: 🎨 fix code style issues with Prettier

Co-authored-by: fairdataihub-bot <[email protected]>
  • Loading branch information
megasanjay and fairdataihub-bot authored Aug 9, 2022
1 parent 95c4264 commit 129fb73
Show file tree
Hide file tree
Showing 23 changed files with 33,173 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "Chromatic Publish"

on: push

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: yarn
- uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions",
],
framework: "@storybook/html",
};
9 changes: 9 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
};
Loading

0 comments on commit 129fb73

Please sign in to comment.