From 86ee00745b9b9faac1054cee06f2948a5ac4732b Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Wed, 5 Jun 2024 11:59:48 +0200 Subject: [PATCH] fix: Reduce Storybook log level and fix warnings Storybook did spam the terminal with messages, which is especially annoying when running `make dev`. This PR reduces the log level by adding the --quite flag. In addition, there were some valid WARN messages about wrong usage of the files attribute in the `tsconfig.json`. Those warnings are resolved. --- frontend/.storybook/main.ts | 2 +- frontend/.storybook/tsconfig.json | 2 +- frontend/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/.storybook/main.ts b/frontend/.storybook/main.ts index 766e8a2e3..4f47a1df4 100644 --- a/frontend/.storybook/main.ts +++ b/frontend/.storybook/main.ts @@ -6,7 +6,7 @@ import type { StorybookConfig } from '@storybook/angular'; const config: StorybookConfig = { - stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], + stories: ['../src/**/*.mdx', '../src/**/*.stories.ts'], addons: [ '@storybook/addon-links', '@storybook/addon-essentials', diff --git a/frontend/.storybook/tsconfig.json b/frontend/.storybook/tsconfig.json index eb0686410..7d2b6089e 100644 --- a/frontend/.storybook/tsconfig.json +++ b/frontend/.storybook/tsconfig.json @@ -6,6 +6,6 @@ "resolveJsonModule": true }, "exclude": ["../src/test.ts", "../src/**/*.spec.ts"], - "include": ["../src/**/*", "./preview.ts"], + "include": ["./preview.ts", "../src/polyfills.ts", "../src/**/*.stories.ts"], "files": ["./typings.d.ts"] } diff --git a/frontend/Makefile b/frontend/Makefile index 93d2ae0c2..c6a535584 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -16,7 +16,7 @@ test: fi storybook: - ng run capellacollab:storybook + ng run capellacollab:storybook --quiet openapi: rm -rf src/app/openapi && mkdir -p src/app/openapi