summaryrefslogtreecommitdiffstats
path: root/public/.storybook/config.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/.storybook/config.js')
-rw-r--r--public/.storybook/config.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/public/.storybook/config.js b/public/.storybook/config.js
new file mode 100644
index 0000000..672bfeb
--- /dev/null
+++ b/public/.storybook/config.js
@@ -0,0 +1,12 @@
+import { configure, addDecorator } from '@storybook/angular';
+import { withKnobs } from '@storybook/addon-knobs/angular';
+
+addDecorator(withKnobs);
+
+const req = require.context('../src/stories', true, /.stories.ts$/);
+
+function loadStories() {
+ req.keys().forEach(filename => req(filename));
+}
+
+configure(loadStories, module);