Skip to content

Commit

Permalink
perf(storybook): Disable Compodoc
Browse files Browse the repository at this point in the history
It wasn't used.
  • Loading branch information
MoritzWeber0 committed Dec 3, 2024
1 parent 5f230dd commit af4beef
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
9 changes: 6 additions & 3 deletions frontend/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,15 @@ const config: StorybookConfig = {
name: '@storybook/angular',
options: {},
},
docs: {
autodocs: 'tag',
},
core: {
disableTelemetry: true,
enableCrashReports: false,
builder: {
name: '@storybook/builder-webpack5',
options: {
lazyCompilation: false, // lazyCompilation breaks Storycap
},
},
},
};
export default config;
4 changes: 0 additions & 4 deletions frontend/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,13 @@ import { importProvidersFrom } from '@angular/core';
import { MatDialogRef } from '@angular/material/dialog';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { RouterModule } from '@angular/router';
import { setCompodocJson } from '@storybook/addon-docs/angular';
import type { AngularRenderer, Preview } from '@storybook/angular';
import { applicationConfig } from '@storybook/angular';
import { ToastrModule } from 'ngx-toastr';
import { DecoratorFunction } from 'storybook/internal/types';
import { withScreenshot } from 'storycap';
import docJson from '../documentation.json';
import { IconModule } from '../src/app/icon.module';

setCompodocJson(docJson);

const preview: Preview = {
parameters: {
controls: {
Expand Down
1 change: 0 additions & 1 deletion frontend/.storybook/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true
},
"exclude": ["../src/test.ts", "../src/**/*.spec.ts"],
"include": ["./preview.ts", "../src/polyfills.ts", "../src/**/*.stories.ts"],
"files": ["./typings.d.ts"]
}
6 changes: 2 additions & 4 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,7 @@
"configDir": ".storybook",
"quiet": true,
"browserTarget": "capellacollab:build:development",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
"compodoc": false,
"port": 6006,
"styles": [
".storybook/styles.css",
Expand All @@ -148,8 +147,7 @@
"options": {
"configDir": ".storybook",
"browserTarget": "capellacollab:build:storybook",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", "."],
"compodoc": false,
"outputDir": "storybook-static",
"styles": [
".storybook/styles.css",
Expand Down
1 change: 0 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"@angular/build": "^19.0.2",
"@angular/cli": "~19.0.2",
"@angular/compiler-cli": "~19.0.1",
"@compodoc/compodoc": "^1.1.26",
"@eslint/js": "^9.16.0",
"@storybook/addon-docs": "^8.4.6",
"@storybook/addon-essentials": "^8.4.6",
Expand Down

0 comments on commit af4beef

Please sign in to comment.