Skip to content

Commit c60bbfd

Browse files
authored
Merge pull request #652 from PermanentOrg/614-update-storybook-9
Upgrade to Storybook v9
2 parents 95b47cb + 6ecfef4 commit c60bbfd

File tree

15 files changed

+314
-2026
lines changed

15 files changed

+314
-2026
lines changed

.storybook/main.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ const config: StorybookConfig = {
44
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
55
addons: [
66
'@storybook/addon-links',
7-
'@storybook/addon-essentials',
8-
'@storybook/addon-interactions',
9-
'@storybook/addon-mdx-gfm',
107
'@chromatic-com/storybook',
8+
'@storybook/addon-docs',
119
],
1210
framework: {
1311
name: '@storybook/angular',

.storybook/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Preview } from '@storybook/angular';
22

3-
import { MINIMAL_VIEWPORTS } from '@storybook/addon-viewport';
3+
import { MINIMAL_VIEWPORTS } from 'storybook/viewport';
44

55
const customViewports = {
66
archiveSettingsDesktop: {

angular.json

Lines changed: 15 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -220,42 +220,27 @@
220220
"configDir": ".storybook",
221221
"browserTarget": "mdot:build-storybook",
222222
"compodoc": false,
223-
"port": 6006
224-
}
225-
},
226-
"build-storybook": {
227-
"builder": "@angular-devkit/build-angular:browser",
228-
"options": {
229-
"outputPath": "storybook-static",
230-
"index": "src/index.html",
231-
"main": "src/main.ts",
232-
"polyfills": [
233-
"src/polyfills.ts",
234-
"@angular/localize/init"
235-
],
236-
"tsConfig": "src/tsconfig.app.json",
237-
"assets": [
238-
"src/favicon.ico",
239-
"src/assets"
240-
],
241-
"styles": [
242-
"node_modules/vis-timeline/dist/vis-timeline-graph2d.css",
243-
"src/styles/main.scss"
244-
],
223+
"port": 6006,
224+
"styles": ["src/styles/main.scss"],
245225
"stylePreprocessorOptions": {
246226
"includePaths": [
247227
"src/styles"
248228
]
249229
},
250-
"scripts": [
251-
"node_modules/ios-inner-height/dist/ios-inner-height.min.js",
252-
"node_modules/gsap/dist/gsap.js"
253-
],
254-
"aot": true,
255-
"optimization": false,
256-
"sourceMap": true,
257-
"namedChunks": true
258230
}
231+
},
232+
"build-storybook": {
233+
"builder": "@storybook/angular:build-storybook",
234+
"options": {
235+
"configDir": ".storybook",
236+
"browserTarget": "mdot:build",
237+
"outputDir": "storybook-static",
238+
"compodoc": false,
239+
"styles": ["src/styles/main.scss"],
240+
"stylePreprocessorOptions": {
241+
"includePaths": ["src/styles"]
242+
}
243+
}
259244
}
260245
}
261246
}

0 commit comments

Comments
 (0)