Skip to content

Commit

Permalink
Merge branch 'next' into update-primary-block-of-prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilson2k authored Oct 18, 2023
2 parents 132f0a8 + a5a7747 commit 066258f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.18
18.18.2
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"description": "URL path to be appended when visiting Storybook for the first time"
},
"webpackStatsJson": {
"type": "string",
"type": ["boolean", "string"],
"description": "Write Webpack Stats JSON to disk",
"default": false
},
Expand Down
24 changes: 12 additions & 12 deletions code/lib/cli/src/sandbox-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const baseTemplates = {
},
'react-vite/default-js': {
name: 'React Latest (Vite | JavaScript)',
script: 'npm create vite@beta --yes {{beforeDir}} -- --template react',
script: 'npm create vite --yes {{beforeDir}} -- --template react',
expected: {
framework: '@storybook/react-vite',
renderer: '@storybook/react',
Expand All @@ -160,7 +160,7 @@ const baseTemplates = {
},
'react-vite/default-ts': {
name: 'React Latest (Vite | TypeScript)',
script: 'npm create vite@beta --yes {{beforeDir}} -- --template react-ts',
script: 'npm create vite --yes {{beforeDir}} -- --template react-ts',
expected: {
framework: '@storybook/react-vite',
renderer: '@storybook/react',
Expand Down Expand Up @@ -215,7 +215,7 @@ const baseTemplates = {
},
'vue3-vite/default-js': {
name: 'Vue v3 (Vite | JavaScript)',
script: 'npm create vite@beta --yes {{beforeDir}} -- --template vue',
script: 'npm create vite --yes {{beforeDir}} -- --template vue',
expected: {
framework: '@storybook/vue3-vite',
renderer: '@storybook/vue3',
Expand All @@ -225,7 +225,7 @@ const baseTemplates = {
},
'vue3-vite/default-ts': {
name: 'Vue v3 (Vite | TypeScript)',
script: 'npm create vite@beta --yes {{beforeDir}} -- --template vue-ts',
script: 'npm create vite --yes {{beforeDir}} -- --template vue-ts',
expected: {
framework: '@storybook/vue3-vite',
renderer: '@storybook/vue3',
Expand Down Expand Up @@ -257,7 +257,7 @@ const baseTemplates = {
'html-vite/default-js': {
name: 'HTML Latest (Vite | JavaScript)',
script:
'npm create vite@beta --yes {{beforeDir}} -- --template vanilla && cd {{beforeDir}} && echo "export default {}" > vite.config.js',
'npm create vite --yes {{beforeDir}} -- --template vanilla && cd {{beforeDir}} && echo "export default {}" > vite.config.js',
expected: {
framework: '@storybook/html-vite',
renderer: '@storybook/html',
Expand All @@ -268,7 +268,7 @@ const baseTemplates = {
'html-vite/default-ts': {
name: 'HTML Latest (Vite | TypeScript)',
script:
'npm create vite@beta --yes {{beforeDir}} -- --template vanilla-ts && cd {{beforeDir}} && echo "export default {}" > vite.config.js',
'npm create vite --yes {{beforeDir}} -- --template vanilla-ts && cd {{beforeDir}} && echo "export default {}" > vite.config.js',
expected: {
framework: '@storybook/html-vite',
renderer: '@storybook/html',
Expand All @@ -278,7 +278,7 @@ const baseTemplates = {
},
'svelte-vite/default-js': {
name: 'Svelte Latest (Vite | JavaScript)',
script: 'npm create vite@beta --yes {{beforeDir}} -- --template svelte',
script: 'npm create vite --yes {{beforeDir}} -- --template svelte',
expected: {
framework: '@storybook/svelte-vite',
renderer: '@storybook/svelte',
Expand All @@ -288,7 +288,7 @@ const baseTemplates = {
},
'svelte-vite/default-ts': {
name: 'Svelte Latest (Vite | TypeScript)',
script: 'npm create vite@beta --yes {{beforeDir}} -- --template svelte-ts',
script: 'npm create vite --yes {{beforeDir}} -- --template svelte-ts',
expected: {
framework: '@storybook/svelte-vite',
renderer: '@storybook/svelte',
Expand Down Expand Up @@ -355,7 +355,7 @@ const baseTemplates = {
'lit-vite/default-js': {
name: 'Lit Latest (Vite | JavaScript)',
script:
'npm create vite@beta --yes {{beforeDir}} -- --template lit && cd {{beforeDir}} && echo "export default {}" > vite.config.js',
'npm create vite --yes {{beforeDir}} -- --template lit && cd {{beforeDir}} && echo "export default {}" > vite.config.js',
expected: {
framework: '@storybook/web-components-vite',
renderer: '@storybook/web-components',
Expand All @@ -367,7 +367,7 @@ const baseTemplates = {
'lit-vite/default-ts': {
name: 'Lit Latest (Vite | TypeScript)',
script:
'npm create vite@beta --yes {{beforeDir}} -- --template lit-ts && cd {{beforeDir}} && echo "export default {}" > vite.config.js',
'npm create vite --yes {{beforeDir}} -- --template lit-ts && cd {{beforeDir}} && echo "export default {}" > vite.config.js',
expected: {
framework: '@storybook/web-components-vite',
renderer: '@storybook/web-components',
Expand Down Expand Up @@ -424,7 +424,7 @@ const baseTemplates = {
},
'preact-vite/default-js': {
name: 'Preact Latest (Vite | JavaScript)',
script: 'npm create vite@beta --yes {{beforeDir}} -- --template preact',
script: 'npm create vite --yes {{beforeDir}} -- --template preact',
expected: {
framework: '@storybook/preact-vite',
renderer: '@storybook/preact',
Expand All @@ -434,7 +434,7 @@ const baseTemplates = {
},
'preact-vite/default-ts': {
name: 'Preact Latest (Vite | TypeScript)',
script: 'npm create vite@beta --yes {{beforeDir}} -- --template preact-ts',
script: 'npm create vite --yes {{beforeDir}} -- --template preact-ts',
expected: {
framework: '@storybook/preact-vite',
renderer: '@storybook/preact',
Expand Down
1 change: 1 addition & 0 deletions code/lib/cli/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const PACKAGES_EXCLUDED_FROM_CORE = [
'@storybook/addon-bench',
'@storybook/addon-console',
'@storybook/addon-postcss',
'@storybook/addon-designs',
'@storybook/addon-styling',
'@storybook/addon-styling-webpack',
'@storybook/babel-plugin-require-context-hook',
Expand Down

0 comments on commit 066258f

Please sign in to comment.