Skip to content

Commit

Permalink
🔥📦️ Remove storybook (#1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
petterhh authored Dec 18, 2024
1 parent c0d92f9 commit 236869b
Show file tree
Hide file tree
Showing 42 changed files with 5,471 additions and 18,498 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module.exports = {
},
extends: [
"eslint:recommended",
"plugin:storybook/recommended",
"plugin:@typescript-eslint/recommended",
// "plugin:@typescript-eslint/recommended-type-checked", // TODO
// "plugin:@typescript-eslint/stylistic-type-checked", // TODO
Expand Down Expand Up @@ -44,7 +43,6 @@ module.exports = {
"src/app/**/*",
"src/components/**/*",
"src/i18n/**/*",
"src/stories/**/*",
"src/middlewares/**/*",
"src/types/**/*",
"src/utils/**/*",
Expand Down
5 changes: 0 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ updates:
schedule:
interval: "weekly"
day: "sunday"
groups:
storybook:
patterns:
- "@storybook/*"
- "storybook"
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ npm-debug.log*
# typescript
*.tsbuildinfo
next-env.d.ts

*storybook.log
19 changes: 0 additions & 19 deletions .storybook/main.ts

This file was deleted.

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

This file was deleted.

7 changes: 0 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
## Key Features

- **CMS-Driven Content Management:** Pages are dynamically constructed using content blocks defined in Sanity. This CMS-like approach enables content creators to manage all aspects of the site, from page content to menus and SEO, without touching the codebase.
- **Storybook Integration:** Storybook enables isolated component development and testing. This allows for the visual verification of UI components, ensuring design consistency and usability across the application.
- **Scoped Styling with CSS Modules:** CSS Modules are used for local scoping of styles, preventing naming conflicts and making it easier to maintain and scale the styling of components.
- **Universal Content Control:** Manage everything from a single location in Sanity—menus, SEO settings, logos and pages—offering a unified content management experience.
- **Custom Theming and Typography:** Global styles such as colors are managed in global.css, while typography is primarily controlled within Text.tsx, ensuring a consistent design language throughout the application.
Expand Down Expand Up @@ -112,7 +111,6 @@ The project follows a component-based architecture with a focus on modularity an
- **src/components:** Houses reusable UI components, such as buttons, forms, navigation elements, and content sections. These components are the building blocks for pages.
- **src/lib:** Utility functions, data-fetching logic, and other shared code that supports the application’s functionality.
- **src/schemas:** Sanity content models (schemas) defining the structure of the content stored in the CMS.
- **src/stories:** Contains Storybook stories for the UI components, used for visual testing and component documentation.

## Custom Desk Structure

Expand Down Expand Up @@ -280,10 +278,6 @@ background: url("data:image/png;base64,...");

Sanity Preview, or Presentation, is not yet fully supported in this project. Bugs and instabilities should be expected.

### Testing

- Storybook Accessibility Testing: Storybook is set up with accessibility (a11y) testing tools, but you’ll need to add tests to each story manually.

## Key Dependencies

- [Next.js](https://nextjs.org/): React framework for building server-rendered and statically-generated web applications.
Expand All @@ -298,7 +292,6 @@ Sanity Preview, or Presentation, is not yet fully supported in this project. Bug

- [Next.js Documentation](https://nextjs.org/docs) - Learn more about the Next.js framework.
- [Sanity Documentation](https://www.sanity.io/docs) - Explore Sanity’s powerful CMS features.
- [Storybook Documentation](https://storybook.js.org/docs) - Get started with component-driven development.
- [Sanity Slack Community](https://slack.sanity.io) - Join the community for support and collaboration.

## Credits
Expand Down
7 changes: 0 additions & 7 deletions global.d.ts

This file was deleted.

Loading

0 comments on commit 236869b

Please sign in to comment.