File tree Expand file tree Collapse file tree 4 files changed +17
-19
lines changed Expand file tree Collapse file tree 4 files changed +17
-19
lines changed Original file line number Diff line number Diff line change 1
1
import { qwikVite } from '@builder.io/qwik/optimizer' ;
2
+ import { resolve } from 'path' ;
2
3
import { StorybookConfig } from 'storybook-framework-qwik' ;
3
4
// import { rootMain } from '../../../.storybook/main';
4
5
@@ -28,16 +29,17 @@ const config: StorybookConfig = {
28
29
'../src/components/**/*.stories.@(js|jsx|ts|tsx)' ,
29
30
] ,
30
31
31
- // viteFinal: async (config: any) => {
32
- // return mergeConfig(config, {
33
- // plugins: [
34
- // viteTsConfigPaths({
35
- // root: '../../../',
36
- // }),
37
- // qwikVite(),
38
- // ],
39
- // });
40
- // },
32
+ viteFinal : async ( config : any ) => {
33
+ return mergeConfig ( config , {
34
+ plugins : [
35
+ qwikVite ( {
36
+ vendorRoots : [ __dirname ] ,
37
+ srcDir : resolve ( __dirname , '../src' ) ,
38
+ } ) ,
39
+ viteTsConfigPaths ( ) ,
40
+ ] ,
41
+ } ) ;
42
+ } ,
41
43
} ;
42
44
43
45
export default config ;
Original file line number Diff line number Diff line change
1
+ < script >
2
+ window . global = window ;
3
+ </ script >
Original file line number Diff line number Diff line change 67
67
"notes" : " ${notes}"
68
68
}
69
69
},
70
- "storybook-when-it-will-work " : {
70
+ "storybook" : {
71
71
"executor" : " @nrwl/storybook:storybook" ,
72
72
"options" : {
73
- "uiFramework" : " @storybook/html" ,
74
73
"port" : 4400 ,
75
74
"configDir" : " packages/headless/.storybook"
76
75
},
80
79
}
81
80
}
82
81
},
83
- "storybook" : {
84
- "executor" : " nx:run-commands" ,
85
- "options" : {
86
- "command" : " storybook dev" ,
87
- "cwd" : " packages/headless"
88
- }
89
- },
90
82
"build-storybook" : {
91
83
"executor" : " @nrwl/storybook:build" ,
92
84
"outputs" : [" {options.outputDir}" ],
Original file line number Diff line number Diff line change
1
+ export default ( ) => { } ;
You can’t perform that action at this time.
0 commit comments