Skip to content

Commit

Permalink
fix: move storybook config to root
Browse files Browse the repository at this point in the history
  • Loading branch information
steveblue committed Nov 1, 2024
1 parent d755620 commit a539532
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 1,106 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import type { StorybookConfig } from '@storybook/angular';
import remarkGfm from 'remark-gfm';

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
stories: [
'../projects/swimlane/ngx-graph/src/**/*.mdx',
'../projects/swimlane/ngx-graph/src/**/*.stories.@(js|jsx|mjs|ts|tsx)'
],
addons: [
'@storybook/addon-onboarding',
'@storybook/addon-links',
Expand Down
File renamed without changes.
12 changes: 12 additions & 0 deletions .storybook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"types": ["node"],
"typeRoots": ["../node_modules/@types"],
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true
},
"exclude": ["../projects/**/test.ts", "../projects/**/*.spec.ts"],
"include": ["../projects/**/*.stories.*", "./preview.ts"],
"files": ["./typings.d.ts"]
}
File renamed without changes.
8 changes: 4 additions & 4 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"storybook": {
"builder": "@storybook/angular:start-storybook",
"options": {
"configDir": "projects/swimlane/ngx-graph/.storybook",
"tsConfig": "projects/swimlane/ngx-graph/.storybook/tsconfig.json",
"configDir": ".storybook",
"tsConfig": ".storybook/tsconfig.json",
"browserTarget": "@swimlane/ngx-graph:build",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", ".", "projects/swimlane/ngx-graph"],
Expand All @@ -50,8 +50,8 @@
"build-storybook": {
"builder": "@storybook/angular:build-storybook",
"options": {
"configDir": "projects/swimlane/ngx-graph/.storybook",
"tsConfig": "projects/swimlane/ngx-graph/.storybook/tsconfig.json",
"configDir": ".storybook",
"tsConfig": ".storybook/tsconfig.json",
"browserTarget": "@swimlane/ngx-graph:build",
"compodoc": true,
"compodocArgs": ["-e", "json", "-d", ".", "projects/swimlane/ngx-graph"],
Expand Down
12 changes: 0 additions & 12 deletions projects/swimlane/ngx-graph/.storybook/tsconfig.json

This file was deleted.

Loading

0 comments on commit a539532

Please sign in to comment.