Skip to content

Commit

Permalink
reorganization
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-figma committed Jun 2, 2024
1 parent 2a6d5bd commit ad6d49b
Show file tree
Hide file tree
Showing 427 changed files with 3,597 additions and 4,359 deletions.
12 changes: 7 additions & 5 deletions .storybook/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import type { StorybookConfig } from "@storybook/react-vite";
import path from "path";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
stories: [
"../src/stories/**/*.mdx",
"../src/stories/**/*.stories.@(js|jsx|mjs|ts|tsx)",
],
addons: [
"@storybook/addon-onboarding",
"@storybook/addon-links",
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
],
framework: {
Expand All @@ -21,10 +22,11 @@ const config: StorybookConfig = {
if (config.resolve) {
config.resolve.alias = {
...config.resolve.alias,
blocks: path.resolve(__dirname, "/src/blocks"),
icons: path.resolve(__dirname, "/src/icons"),
providers: path.resolve(__dirname, "/src/providers"),
ui: path.resolve(__dirname, "/src/ui"),
"ui/components": path.resolve(__dirname, "/src/ui/components"),
"ui/layout": path.resolve(__dirname, "/src/ui/layout"),
"ui/primitives": path.resolve(__dirname, "/src/ui/primitives"),
};
}

Expand Down
173 changes: 0 additions & 173 deletions package-lock.json

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

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"storybook": "storybook dev -p 6006 --no-open",
"storybook:build": "storybook build --output-dir dist/storybook",
"build": "npm run app:build; npm run storybook:build",
"script:blocks": "cd scripts/blocks; node --env-file=../../.env app.mjs; cd -;",
"script:icons": "cd scripts/icons; node --env-file=../../.env icons.cjs; cd -;",
"script:styles": "cd scripts/styles; node --env-file=../../.env styles.cjs; cd -;",
"script:icons": "cd scripts/icons; node --env-file=../../.env app.mjs --skip-rest-api; cd -;",
"script:icons:rest": "cd scripts/icons; node --env-file=../../.env app.mjs; cd -;",
"script:tokens": "cd scripts/tokens; node --env-file=../../.env app.mjs --skip-rest-api; cd -;",
"script:tokens:rest": "cd scripts/tokens; node --env-file=../../.env app.mjs; cd -;"
},
Expand All @@ -23,7 +23,6 @@
]
},
"devDependencies": {
"@chromatic-com/storybook": "^1.3.5",
"@figma/code-connect": "^0.1.2",
"@react-aria/accordion": "^3.0.0-alpha.28",
"@react-aria/focus": "^3.17.0",
Expand All @@ -35,7 +34,6 @@
"@storybook/addon-essentials": "^8.0.10",
"@storybook/addon-interactions": "^8.0.10",
"@storybook/addon-links": "^8.0.10",
"@storybook/addon-onboarding": "^8.0.10",
"@storybook/blocks": "^8.0.10",
"@storybook/react": "^8.0.10",
"@storybook/react-vite": "^8.0.10",
Expand Down
Loading

0 comments on commit ad6d49b

Please sign in to comment.