Skip to content

Commit

Permalink
chore(storybook): publish to chromatic
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Jul 14, 2024
1 parent a1a5c04 commit e8d5eda
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
/public/storybook
/public/storybook
/public/eslint-config-inspector
storybook-static

# caches
.eslintcache
Expand All @@ -28,6 +29,7 @@ yarn-debug.log*
yarn-error.log*

# others
.env
.env*.local
.vercel
next-env.d.ts
Expand Down
17 changes: 12 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
"type": "module",
"version": "0.0.0",
"description": "Your dream, your stack, your way.",
"author": "Mumtahin Farabi",
"author": {
"name": "Mumtahin Farabi"
},
"homepage": "https://github.com/MFarabi619/stack-builder",
"repository": {
"type": "git",
"url": "https://github.com/MFarabi619/stack-builder.git"
"url": "git+https://github.com/MFarabi619/stack-builder.git"
},
"bugs": {
"url": "https://github.com/MFarabi619/stack-builder/issues"
},
"scripts": {
"dev": "next dev",
Expand All @@ -24,11 +29,12 @@
"lint:inspect": "npx @eslint/config-inspector --no-open",
"lint:inspect-open": "npx @eslint/config-inspector",
"build:next": "next build",
"build:storybook": "storybook build -o public/storybook",
"build-storybook": "storybook build",
"build:eslint": "npx @eslint/config-inspector build --outDir './public/eslint-config-inspector' --basePath './public/eslint-config-inspector' --base '/eslint-config-inspector'",
"build:all": "npm run build:storybook && npm run build:eslint && next build",
"build:all": "npm run build:eslint && next build",
"prepare": "husky",
"commit": "cz"
"commit": "cz",
"chromatic": "npx chromatic "
},
"dependencies": {
"@radix-ui/react-accordion": "^1.2.0",
Expand Down Expand Up @@ -91,6 +97,7 @@
"@types/react-dom": "^18.3.0",
"@whitespace/storybook-addon-html": "^6.1.1",
"autoprefixer": "^10.4.19",
"chromatic": "^11.5.5",
"commitizen": "^4.3.0",
"commitlint": "^19.3.0",
"eslint": "8.57.0",
Expand Down
11 changes: 7 additions & 4 deletions pnpm-lock.yaml

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

3 changes: 2 additions & 1 deletion src/content/web/buttons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export const buttons = [
className: 'bg-indigo-500 hover:bg-indigo-400',
},
{
href: '/story/zenith-design-system-home-page-buttons--stack-builder',
// href: '/story/zenith-design-system-home-page-buttons--stack-builder',
href: 'https://66940475e3e13dde7d47c07f-ssiehonydf.chromatic.com/?path=/story/zenith-design-system-home-page-buttons--stack-builder',
imgSrc: '/stack-builder-storybook-screenshot.png',
imgAlt: 'Stack Builder Storybook screenshot',
logoSrc: '/logos/storybook.svg',
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Config } from 'tailwindcss'
import tailwindcssAnimate from 'tailwindcss-animate'

import colors from 'tailwindcss/colors'

Check failure on line 4 in tailwind.config.ts

View workflow job for this annotation

GitHub Actions / release (20)

'colors' is defined but never used
// @ts-expect-error: This works and doesn't cause any issues
import flattenColorPalette from 'tailwindcss/lib/util/flattenColorPalette'

const config = {
Expand Down

0 comments on commit e8d5eda

Please sign in to comment.