Browse Source

Maintenance: Remove last storybook mentions

Vladimir Sheremet 2 years ago
parent
commit
9b3c4a8602
3 changed files with 3 additions and 15 deletions
  1. 1 3
      .github/workflows/ci/lint.sh
  2. 1 6
      tsconfig.json
  3. 1 6
      vite.config.ts

+ 1 - 3
.github/workflows/ci/lint.sh

@@ -25,6 +25,4 @@ coffeelint --rules ./.coffeelint/rules/* app/
 echo "Stylelint check..."
 yarn lint:css
 echo "ESLint check..."
-yarn lint
-echo "Storybook test build..."
-yarn storybook:build
+yarn lint

+ 1 - 6
tsconfig.json

@@ -3,11 +3,6 @@
   "compilerOptions": {
     "types": ["vitest/globals", "vite/client", "vite-plugin-svg-icons/client"]
   },
-  "include": [
-    "app/frontend/**/*",
-    ".storybook/config/**/*.ts",
-    "./vite.config.*",
-    "./histoire.config.*"
-  ],
+  "include": ["app/frontend/**/*", "./vite.config.*", "./histoire.config.*"],
   "exclude": ["app/frontend/cypress/**/*", "node_modules", "public", "vendor"]
 }

+ 1 - 6
vite.config.ts

@@ -20,12 +20,7 @@ export default defineConfig(({ mode, command }) => {
 
   const svgPlugin = createSvgIconsPlugin({
     // Specify the icon folder to be cached
-    iconDirs: [
-      path.resolve(
-        process.cwd(),
-        `${mode === 'storybook' ? '../public' : 'public'}/assets/images/icons`,
-      ),
-    ],
+    iconDirs: [path.resolve(process.cwd(), `public/assets/images/icons`)],
     // Specify symbolId format
     symbolId: 'icon-[dir]-[name]',
     svgoOptions: {