@analogjs/storybook-angular 2.0.0-alpha.13 → 2.0.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/preset.mjs +10 -2
- package/src/types.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@analogjs/storybook-angular",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.15",
|
|
4
4
|
"description": "Storybook Integration for Angular & Vite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"main": "src/index.js",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@storybook/builder-vite": ">=8.6.0 || next"
|
|
36
|
+
"@storybook/builder-vite": ">=8.6.0 || ^9.0.0 || next"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@storybook/angular": ">=8.6.0 || next",
|
|
40
|
-
"@analogjs/vite-plugin-angular": "
|
|
41
|
-
"storybook": ">=8.6.0 || next",
|
|
42
|
-
"vite": "^5.0.0 || ^6.0.0"
|
|
39
|
+
"@storybook/angular": ">=8.6.0 || ^9.0.0 || next",
|
|
40
|
+
"@analogjs/vite-plugin-angular": "*",
|
|
41
|
+
"storybook": ">=8.6.0 || ^9.0.0 || next",
|
|
42
|
+
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=18.0.0"
|
package/preset.mjs
CHANGED
|
@@ -15,6 +15,11 @@ export const core = async (config, options) => {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
export const viteFinal = async (config, options) => {
|
|
18
|
+
// Remove any loaded analogjs plugins from a vite.config.(m)ts file
|
|
19
|
+
config.plugins = config.plugins
|
|
20
|
+
.flat()
|
|
21
|
+
.filter((plugin) => !plugin.name.includes('analogjs'));
|
|
22
|
+
|
|
18
23
|
// Merge custom configuration into the default config
|
|
19
24
|
const { mergeConfig } = await import('vite');
|
|
20
25
|
const { default: angular } = await import('@analogjs/vite-plugin-angular');
|
|
@@ -27,9 +32,8 @@ export const viteFinal = async (config, options) => {
|
|
|
27
32
|
'@storybook/angular/dist/client/index.js',
|
|
28
33
|
'@analogjs/storybook-angular',
|
|
29
34
|
'@angular/compiler',
|
|
35
|
+
'@angular/platform-browser',
|
|
30
36
|
'@angular/platform-browser/animations',
|
|
31
|
-
'@storybook/addon-docs/angular',
|
|
32
|
-
'react/jsx-dev-runtime',
|
|
33
37
|
'tslib',
|
|
34
38
|
'zone.js',
|
|
35
39
|
],
|
|
@@ -45,6 +49,10 @@ export const viteFinal = async (config, options) => {
|
|
|
45
49
|
? framework.options?.liveReload
|
|
46
50
|
: false,
|
|
47
51
|
tsconfig: options?.tsConfig ?? './.storybook/tsconfig.json',
|
|
52
|
+
inlineStylesExtension:
|
|
53
|
+
typeof framework.options?.inlineStylesExtension !== 'undefined'
|
|
54
|
+
? framework.options?.inlineStylesExtension
|
|
55
|
+
: 'css',
|
|
48
56
|
}),
|
|
49
57
|
],
|
|
50
58
|
define: {
|