-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
CLI: Add Stencil Integration #32768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
CLI: Add Stencil Integration #32768
Changes from all commits
7643113
b7670bb
684fd76
c172356
36e23c2
95098e2
e8e122b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,6 +36,7 @@ export const frameworkToRenderer: Record< | |
| [SupportedRenderer.SVELTE]: SupportedRenderer.SVELTE, | ||
| [SupportedRenderer.VUE3]: SupportedRenderer.VUE3, | ||
| [SupportedRenderer.WEB_COMPONENTS]: SupportedRenderer.WEB_COMPONENTS, | ||
| [SupportedRenderer.STENCIL]: SupportedRenderer.STENCIL, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: # First, find the type definition files
fd -t f "renderers.ts|frameworks.ts" code/Repository: storybookjs/storybook Length of output: 213 🏁 Script executed: # Check if those specific files exist and their locations
find code -name "renderers.ts" -o -name "frameworks.ts" 2>/dev/nullRepository: storybookjs/storybook Length of output: 147 🏁 Script executed: # Also check the framework.ts file to see context around lines 39 and 65
wc -l code/core/src/common/utils/framework.ts
head -n 80 code/core/src/common/utils/framework.tsRepository: storybookjs/storybook Length of output: 3487 🏁 Script executed: cat -n code/core/src/types/modules/renderers.tsRepository: storybookjs/storybook Length of output: 484 🏁 Script executed: cat -n code/core/src/types/modules/frameworks.tsRepository: storybookjs/storybook Length of output: 989 STENCIL types are not defined in the type system. The enums 🤖 Prompt for AI Agents |
||
| }; | ||
|
|
||
| export const frameworkToBuilder: Record<SupportedFramework, SupportedBuilder> = { | ||
|
|
@@ -61,4 +62,5 @@ export const frameworkToBuilder: Record<SupportedFramework, SupportedBuilder> = | |
| [SupportedFramework.VUE3_RSBUILD]: SupportedBuilder.RSBUILD, | ||
| [SupportedFramework.HTML_RSBUILD]: SupportedBuilder.RSBUILD, | ||
| [SupportedFramework.WEB_COMPONENTS_RSBUILD]: SupportedBuilder.RSBUILD, | ||
| [SupportedFramework.STENCIL]: SupportedBuilder.VITE, | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,4 +12,5 @@ export enum SupportedRenderer { | |
| SERVER = 'server', | ||
| SOLID = 'solid', | ||
| NUXT = 'nuxt', | ||
| STENCIL = 'stencil', | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import { ProjectType } from 'storybook/internal/cli'; | ||
| import { SupportedRenderer } from 'storybook/internal/types'; | ||
|
|
||
| import { defineGeneratorModule } from '../modules/GeneratorModule'; | ||
|
|
||
| export default defineGeneratorModule({ | ||
| metadata: { | ||
| projectType: ProjectType.STENCIL, | ||
| renderer: SupportedRenderer.STENCIL, | ||
| }, | ||
| configure: async () => { | ||
| return { | ||
| extraPackages: ['@stencil/storybook-plugin'], | ||
| }; | ||
| }, | ||
| }); |
Uh oh!
There was an error while loading. Please reload this page.