mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
Merge pull request #10623 from storybookjs/feature/add-svelte-detection-cli
CLI: Add automatic detection for svelte
This commit is contained in:
commit
21e1fac11f
@ -184,6 +184,16 @@ const MOCK_FRAMEWORK_FILES = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: PROJECT_TYPES.SVELTE,
|
||||
files: {
|
||||
'package.json': {
|
||||
dependencies: {
|
||||
svelte: '1.0.0',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: PROJECT_TYPES.RAX,
|
||||
files: {
|
||||
|
@ -185,6 +185,13 @@ export const supportedTemplates = [
|
||||
return dependencies.every(Boolean);
|
||||
},
|
||||
},
|
||||
{
|
||||
preset: PROJECT_TYPES.SVELTE,
|
||||
dependencies: ['svelte'],
|
||||
matcherFunction: ({ dependencies }) => {
|
||||
return dependencies.every(Boolean);
|
||||
},
|
||||
},
|
||||
{
|
||||
preset: PROJECT_TYPES.RAX,
|
||||
dependencies: ['rax'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user