Skip to content

Commit

Permalink
refactor: remove unused storybook, chromatic, and lighthouse (#95)
Browse files Browse the repository at this point in the history
* refactor: remove storybook and chromatic

* refactor: remove lighthouse

* fix: fix search box wrong placement

---------

Co-authored-by: Angus Chen <[email protected]>
  • Loading branch information
dazedbear and Angus Chen authored Oct 9, 2023
1 parent 8388889 commit 7934b7b
Show file tree
Hide file tree
Showing 19 changed files with 14,470 additions and 50,271 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": ["next/core-web-vitals", "plugin:storybook/recommended"]
"extends": ["next/core-web-vitals"]
}
50 changes: 0 additions & 50 deletions .github/workflows/chromatic.yml

This file was deleted.

114 changes: 0 additions & 114 deletions .github/workflows/lighthouse.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
/.next/
/out/

# storybook
build-storybook.log
storybook-static

# production
/build

Expand Down
32 changes: 0 additions & 32 deletions .storybook/main.js

This file was deleted.

25 changes: 0 additions & 25 deletions .storybook/preview.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dazedbear Studio

[![Semgrep Scan](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/semgrep-analysis.yml/badge.svg?branch=main)](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/semgrep-analysis.yml) [![Chromatic](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/chromatic.yml/badge.svg)](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/chromatic.yml) [![Failsafe Page Generation](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/failsafe.yml/badge.svg)](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/failsafe.yml) [![Lighthouse Audit](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/lighthouse.yml/badge.svg)](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/lighthouse.yml) [![Playwright E2E Tests](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/playwright.yml/badge.svg)](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/playwright.yml) [![Release Note](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/release-note.yml/badge.svg)](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/release-note.yml)
[![Semgrep Scan](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/semgrep-analysis.yml/badge.svg?branch=main)](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/semgrep-analysis.yml) [![Failsafe Page Generation](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/failsafe.yml/badge.svg)](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/failsafe.yml) [![Playwright E2E Tests](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/playwright.yml/badge.svg)](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/playwright.yml) [![Release Note](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/release-note.yml/badge.svg)](https://github.com/dazedbear/dazedbear.github.io/actions/workflows/release-note.yml)

![cover](https://user-images.githubusercontent.com/8896191/113566781-f2782c00-963f-11eb-90da-8d3245c536f1.png)

Expand Down Expand Up @@ -64,7 +64,6 @@ This is dazedbear's personal website. There are some demo, memos, and articles h
#### Testing

- [Jest](https://jestjs.io/) - Unit Test
- [Storybook](https://storybook.js.org/docs/react/writing-tests/snapshot-testing) - Component Test
- [Playright](https://playwright.dev/) - End-to-end Browser/API Test and Visual Test
- See [Testing Strategy](https://github.com/dazedbear/dazedbear.github.io/issues/56) for details.

Expand Down
4 changes: 1 addition & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,5 @@ module.exports = {
'<rootDir>/tests/__mocks__/fileMock.ts',
'\\.(css|less)$': '<rootDir>/tests/__mocks__/styleMock.ts',
},
transform: {
'^.+\\.mdx?$': '@storybook/addon-docs/jest-transform-mdx',
},
transform: {},
}
Loading

1 comment on commit 7934b7b

@vercel
Copy link

@vercel vercel bot commented on 7934b7b Oct 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.