File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 22
33const fs = require ( 'fs' ) ;
44const path = require ( 'path' ) ;
5- const YUIDocsGenerator = require ( 'ember-cli-addon-docs-yuidoc/lib/broccoli/generator' ) ;
65const Funnel = require ( 'broccoli-funnel' ) ;
76const mergeTrees = require ( 'broccoli-merge-trees' ) ;
87const { parse, generatePreviewHead, overrideEnvironment, findEnvironment } = require ( './lib/util' ) ;
98
9+ let YUIDocsGenerator ;
10+
1011module . exports = {
1112 name : require ( './package' ) . name ,
1213
@@ -46,6 +47,10 @@ module.exports = {
4647 include : componentFilePathPatterns ,
4748 } ) ;
4849
50+ if ( ! YUIDocsGenerator ) {
51+ YUIDocsGenerator = require ( 'ember-cli-addon-docs-yuidoc/lib/broccoli/generator' ) ;
52+ }
53+
4954 let componentDocsTree = new YUIDocsGenerator ( [ componentJS ] , {
5055 project : this . project ,
5156 destDir : 'storybook-docgen' ,
You can’t perform that action at this time.
0 commit comments