File tree Expand file tree Collapse file tree 4 files changed +901
-678
lines changed
Expand file tree Collapse file tree 4 files changed +901
-678
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,4 @@ import "@storybook/addon-actions/register";
2121import "@storybook/addon-links/register" ;
2222import "@storybook/addon-notes/register" ;
2323import "@storybook/addon-knobs/register" ;
24+ import '@storybook/addon-options/register' ;
Original file line number Diff line number Diff line change @@ -16,7 +16,15 @@ import "core-js/es6/reflect";
1616import "core-js/es7/reflect" ;
1717import "zone.js/dist/zone" ;
1818
19- import { configure } from "@storybook/angular" ;
19+ import { configure , addDecorator } from "@storybook/angular" ;
20+ import { withOptions } from '@storybook/addon-options' ;
21+
22+ addDecorator (
23+ withOptions ( {
24+ name : "carbon components angular" ,
25+ url : "https://github.com/IBM/carbon-components-angular" ,
26+ } )
27+ ) ;
2028
2129// load global styles
2230require ( "!style-loader!css-loader!sass-loader!./preview.scss" ) ;
@@ -25,6 +33,7 @@ require("!style-loader!css-loader!sass-loader!./preview-experimental.scss");
2533require ( "../src/index.stories" ) ;
2634// automatically import all files ending in *.stories.ts
2735const req = require . context ( "../src" , true , / .s t o r i e s .t s $ / ) ;
36+
2837function loadStories ( ) {
2938 req . keys ( )
3039 . sort ( ( path1 , path2 ) => path1 . split ( "/" ) . slice ( - 1 ) [ 0 ] > path2 . split ( "/" ) . slice ( - 1 ) [ 0 ] ? 1 : - 1 )
You can’t perform that action at this time.
0 commit comments