Skip to content

Commit

Permalink
Add @chromatic/storybook add-on.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrause committed Dec 10, 2024
1 parent 69de418 commit 98aef38
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 3 deletions.
64 changes: 64 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"import": "tsx scripts/import.ts",
"automate": "tsx scripts/automate.ts",
"serve:dev": "vite --config=./vite.config.ts serve",
"build": "vite --config=./vite.config.ts --emptyOutDir build",
"build": "tsc -b && vite --config=./vite.config.ts build",
"storybook:serve": "storybook dev -p 6006",
"storybook:build": "storybook build --docs",
"chromatic": "npx chromatic",
Expand Down Expand Up @@ -81,6 +81,7 @@
"@storybook/addon-storysource": "^8.4.7",
"@storybook/addon-designs": "^8.0.4",
"chromatic": "^11.20.0",
"@chromatic-com/storybook": "^3.2.2",
"storybook-dark-mode": "^4.0.2",
"@percy/cli": "^1.30.4",
"@percy/storybook": "^6.0.3",
Expand Down
4 changes: 2 additions & 2 deletions package.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const packageConfig = {
// App
'serve:dev': 'vite --config=./vite.config.ts serve',
//'build': 'vite --config=./vite.config.ts --emptyOutDir build && cp src/types/vite-env.d.ts dist && echo \'{"name": "@fortanix/baklava","main": "./baklava.js"}\' > dist/package.json',
'build': 'tsc -b && vite --config=./vite.config.ts',
'build': 'tsc -b && vite --config=./vite.config.ts build',

// Storybook
'storybook:serve': 'storybook dev -p 6006',
Expand Down Expand Up @@ -118,7 +118,7 @@ const packageConfig = {
'@storybook/addon-storysource': '^8.4.7',
'@storybook/addon-designs': '^8.0.4',
'chromatic': '^11.20.0',
//'@chromatic-com/storybook': '^3.2.2', // Chromatic integration for Storybook
'@chromatic-com/storybook': '^3.2.2', // Chromatic integration for Storybook
//'storybook-addon-pseudo-states': '^3.1.1',
'storybook-dark-mode': '^4.0.2',
'@percy/cli': '^1.30.4',
Expand Down

0 comments on commit 98aef38

Please sign in to comment.