Skip to content

Commit

Permalink
Merge pull request #22030 from storybookjs/fix/vite-sandboxes
Browse files Browse the repository at this point in the history
Build: Use vite@beta on sandboxes
  • Loading branch information
shilman authored Apr 12, 2023
2 parents 95ae92b + 05af6a3 commit 6901b5d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/generate-sandboxes-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
schedule:
- cron: '2 2 */1 * *'
workflow_dispatch:
# To test fixes on push rather than wait for the scheduling, do the following:
# 1. Uncomment the lines below and add your branch.
# push:
# branches:
# - <your-branch-name>
# 2. change the "ref" value to <your-branch-name> in the actions/checkout step below.
# 3. don't forget to undo the values back to `next` before you merge your changes.

jobs:
generate:
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 @@ -121,7 +121,7 @@ const baseTemplates = {
},
'react-vite/default-js': {
name: 'React Vite (JS)',
script: 'yarn create vite@beta . --template react',
script: 'npm create vite@beta --yes . -- --template react',
expected: {
framework: '@storybook/react-vite',
renderer: '@storybook/react',
Expand All @@ -131,7 +131,7 @@ const baseTemplates = {
},
'react-vite/default-ts': {
name: 'React Vite (TS)',
script: 'yarn create vite@beta . --template react-ts',
script: 'npm create vite@beta --yes . -- --template react-ts',
expected: {
framework: '@storybook/react-vite',
renderer: '@storybook/react',
Expand Down Expand Up @@ -184,7 +184,7 @@ const baseTemplates = {
},
'vue3-vite/default-js': {
name: 'Vue3 Vite (JS)',
script: 'yarn create vite@beta . --template vue',
script: 'npm create vite@beta --yes . -- --template vue',
expected: {
framework: '@storybook/vue3-vite',
renderer: '@storybook/vue3',
Expand All @@ -194,7 +194,7 @@ const baseTemplates = {
},
'vue3-vite/default-ts': {
name: 'Vue3 Vite (TS)',
script: 'yarn create vite@beta . --template vue-ts',
script: 'npm create vite@beta --yes . -- --template vue-ts',
expected: {
framework: '@storybook/vue3-vite',
renderer: '@storybook/vue3',
Expand Down Expand Up @@ -226,7 +226,7 @@ const baseTemplates = {
'html-vite/default-js': {
name: 'HTML Vite JS',
script:
'yarn create vite@beta . --template vanilla && echo "export default {}" > vite.config.js',
'npm create vite@beta --yes . -- --template vanilla && echo "export default {}" > vite.config.js',
expected: {
framework: '@storybook/html-vite',
renderer: '@storybook/html',
Expand All @@ -237,7 +237,7 @@ const baseTemplates = {
'html-vite/default-ts': {
name: 'HTML Vite TS',
script:
'yarn create vite@beta . --template vanilla-ts && echo "export default {}" > vite.config.js',
'npm create vite@beta --yes . -- --template vanilla-ts && echo "export default {}" > vite.config.js',
expected: {
framework: '@storybook/html-vite',
renderer: '@storybook/html',
Expand All @@ -247,7 +247,7 @@ const baseTemplates = {
},
'svelte-vite/default-js': {
name: 'Svelte Vite (JS)',
script: 'yarn create vite@beta . --template svelte',
script: 'npm create vite@beta --yes . -- --template svelte',
expected: {
framework: '@storybook/svelte-vite',
renderer: '@storybook/svelte',
Expand All @@ -257,7 +257,7 @@ const baseTemplates = {
},
'svelte-vite/default-ts': {
name: 'Svelte Vite (TS)',
script: 'yarn create vite@beta . --template svelte-ts',
script: 'npm create vite@beta --yes . -- --template svelte-ts',
expected: {
framework: '@storybook/svelte-vite',
renderer: '@storybook/svelte',
Expand Down Expand Up @@ -312,7 +312,7 @@ const baseTemplates = {
},
'lit-vite/default-js': {
name: 'Lit Vite (JS)',
script: 'yarn create vite@beta . --template lit',
script: 'npm create vite@beta --yes . -- --template lit',
expected: {
framework: '@storybook/web-components-vite',
renderer: '@storybook/web-components',
Expand All @@ -323,7 +323,7 @@ const baseTemplates = {
},
'lit-vite/default-ts': {
name: 'Lit Vite (TS)',
script: 'yarn create vite@beta . --template lit-ts',
script: 'npm create vite@beta --yes . -- --template lit-ts',
expected: {
framework: '@storybook/web-components-vite',
renderer: '@storybook/web-components',
Expand Down Expand Up @@ -377,7 +377,7 @@ const baseTemplates = {
},
'preact-vite/default-js': {
name: 'Preact Vite (JS)',
script: 'yarn create vite@beta . --template preact',
script: 'npm create vite@beta --yes . -- --template preact',
expected: {
framework: '@storybook/preact-vite',
renderer: '@storybook/preact',
Expand All @@ -387,7 +387,7 @@ const baseTemplates = {
},
'preact-vite/default-ts': {
name: 'Preact Vite (TS)',
script: 'yarn create vite@beta . --template preact-ts',
script: 'npm create vite@beta --yes . -- --template preact-ts',
expected: {
framework: '@storybook/preact-vite',
renderer: '@storybook/preact',
Expand Down

0 comments on commit 6901b5d

Please sign in to comment.