Skip to content

Commit

Permalink
Merge branch 'adjust-test-project-setup' of github.com:guildxyz/guild…
Browse files Browse the repository at this point in the history
….xyz into adjust-test-project-setup
  • Loading branch information
dominik-stumpf committed Nov 19, 2024
2 parents ba91f40 + b146250 commit 0260844
Show file tree
Hide file tree
Showing 8 changed files with 16,367 additions and 4,622 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
with:
node-version: 20
- name: Install dependencies
run: npm install --force
run: npm install
- name: Run TypeScript compiler
run: npm run type-check
4 changes: 2 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/addon-onboarding",
"@storybook/addon-links",
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
"@storybook/addon-styling-webpack",
"@storybook/addon-themes",
],
framework: {
name: "@storybook/nextjs",
options: {},
},
staticDirs: ["../public", { from: "../public/fonts", to: "/public/fonts" }],
staticDirs: ["../public"],
};
export default config;
19 changes: 7 additions & 12 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import type { Preview } from "@storybook/react"
import "../src/app/globals.css"
import { dystopian, inter } from "../src/fonts"
import type { Preview } from "@storybook/react";
import "../src/app/globals.css";

import { withThemeByDataAttribute } from "@storybook/addon-themes"

document?.querySelector("body")?.classList.add(inter.variable, dystopian.variable)
import { withThemeByClassName } from "@storybook/addon-themes";

const preview: Preview = {
parameters: {
Expand All @@ -15,17 +12,15 @@ const preview: Preview = {
},
},
},

decorators: [
withThemeByDataAttribute({
withThemeByClassName({
themes: {
light: "",
dark: "dark",
},
defaultTheme: "dark",
attributeName: "data-theme",
defaultTheme: "light",
}),
],
}
};

export default preview
export default preview;
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}
},
"files": {
"include": ["src"],
"include": ["src", ".storybook"],
"ignore": [
"node_modules",
".next",
Expand Down
Loading

0 comments on commit 0260844

Please sign in to comment.