Skip to content

Commit

Permalink
rm storybook from nextjs
Browse files Browse the repository at this point in the history
  • Loading branch information
nlkluth committed Nov 17, 2023
1 parent 4b276bd commit 75308e4
Show file tree
Hide file tree
Showing 9 changed files with 106 additions and 175 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,22 @@ jobs:
run: pnpm build

- name: "Storybook: Install Extra Dependencies"
working-directory: packages/nextjs
working-directory: packages/shared-ui
run: pnpm exec playwright install

- name: "Storybook: Build"
working-directory: packages/nextjs
working-directory: packages/shared-ui
run: pnpm run storybook:build

- name: "Storybook: Chromatic"
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
workingDir: packages/nextjs
workingDir: packages/shared-ui
storybookBuildDir: storybook-static
exitOnceUploaded: true
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

- name: "Storybook: Run Tests"
working-directory: packages/nextjs
working-directory: packages/shared-ui
run: pnpm run test:storybook:start
10 changes: 0 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@
"test:e2e-mock:start": "start-server-and-test next:dev:mock http://localhost:3000 test:e2e-mock"
},
"devDependencies": {
"@storybook/addon-essentials": "^7.4.0",
"@storybook/addon-interactions": "^7.4.0",
"@storybook/addon-links": "^7.4.0",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/blocks": "^7.4.0",
"@storybook/jest": "^0.2.2",
"@storybook/react": "^7.4.0",
"@storybook/test-runner": "^0.13.0",
"@storybook/testing-library": "^0.2.0",
"@types/node": "20.8.7",
"@types/react": "18.2.0",
"@types/react-dom": "18.2.0",
Expand All @@ -52,7 +43,6 @@
"plop": "^4.0.0",
"prettier": "^2.8.2",
"start-server-and-test": "^1.15.2",
"storybook": "^7.4.0",
"tailwindcss": "^3.1.8",
"typescript": "5.2.2"
},
Expand Down
25 changes: 0 additions & 25 deletions packages/nextjs/.storybook/decorators/TestHarness.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions packages/nextjs/.storybook/main.ts

This file was deleted.

22 changes: 0 additions & 22 deletions packages/nextjs/.storybook/preview.ts

This file was deleted.

29 changes: 0 additions & 29 deletions packages/nextjs/.storybook/types/index.ts

This file was deleted.

7 changes: 1 addition & 6 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@
"test:unit": "jest",
"test:unit:watch": "jest --watch",
"lint": "next lint --quiet",
"typecheck": "tsc --noEmit",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build",
"storybook:start": "test -d storybook-static || pnpm run storybook:build && http-server --port 6006 --silent true storybook-static",
"test:storybook": "test-storybook --verbose --maxWorkers 1",
"test:storybook:start": "start-server-and-test 'pnpm run storybook:start' 6006 'pnpm run test:storybook'"
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@sanity/client": "^3.3.6",
Expand Down
12 changes: 11 additions & 1 deletion packages/shared-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@
"http-server": "^14.1.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"tsup": "^7.2.0"
"tsup": "^7.2.0",
"storybook": "^7.4.0",
"@storybook/addon-essentials": "^7.4.0",
"@storybook/addon-interactions": "^7.4.0",
"@storybook/addon-links": "^7.4.0",
"@storybook/addon-onboarding": "^1.0.8",
"@storybook/blocks": "^7.4.0",
"@storybook/jest": "^0.2.2",
"@storybook/react": "^7.4.0",
"@storybook/test-runner": "^0.13.0",
"@storybook/testing-library": "^0.2.0"
}
}
Loading

0 comments on commit 75308e4

Please sign in to comment.