Skip to content

Commit

Permalink
Update storybook.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Aug 9, 2023
1 parent d487196 commit 4a81171
Show file tree
Hide file tree
Showing 28 changed files with 8,831 additions and 9,772 deletions.
33 changes: 14 additions & 19 deletions frontend/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,18 @@
*/

const customConfig = require('./../src/config/webpack.config');

module.exports = {
stories: [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
addons: [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/addon-interactions"
],
framework: "@storybook/angular",
core: {
builder: "@storybook/builder-webpack5"
},
webpackFinal: async (config) => {
customConfig(config, {}, {});
return config;
},
}
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-interactions"],
framework: {
name: "@storybook/angular",
options: {}
},
webpackFinal: async config => {
customConfig(config, {}, {});
return config;
},
docs: {
autodocs: true
}
};
28 changes: 25 additions & 3 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
"src/styles.scss"
],
"stylePreprocessorOptions": {
"includePaths": ["./src/app/theme"]
"includePaths": [
"./src/app/theme"
]
},
"customWebpackConfig": {
"path": "./src/config/webpack.config.js"
Expand Down Expand Up @@ -128,15 +130,35 @@
"src/styles.scss"
],
"stylePreprocessorOptions": {
"includePaths": ["./src/app/theme"]
"includePaths": [
"./src/app/theme"
]
},
"scripts": []
}
},
"storybook": {
"builder": "@storybook/angular:start-storybook",
"options": {
"configDir": ".storybook",
"browserTarget": "squidex:build",
"compodoc": false,
"port": 6006
}
},
"build-storybook": {
"builder": "@storybook/angular:build-storybook",
"options": {
"configDir": ".storybook",
"browserTarget": "squidex:build",
"compodoc": false,
"outputDir": "storybook-static"
}
}
}
}
},
"cli": {
"analytics": "a157454d-c7c0-4947-986a-982746edc974"
}
}
}
Loading

0 comments on commit 4a81171

Please sign in to comment.