Skip to content

Commit 6f06558

Browse files
authored
chore: use "preview" instead of "serve" to refer to "vite preview" (#5917)
1 parent 09de996 commit 6f06558

File tree

120 files changed

+124
-124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+124
-124
lines changed

e2e/react-router/basepath-file-based/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "vite --port 3000",
77
"dev:e2e": "vite",
88
"build": "vite build && tsc --noEmit",
9-
"serve": "vite preview",
9+
"preview": "vite preview",
1010
"start": "vite",
1111
"test:e2e": "rm -rf port*.txt; playwright test --project=chromium"
1212
},

e2e/react-router/basepath-file-based/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default defineConfig({
2626
},
2727

2828
webServer: {
29-
command: `VITE_NODE_ENV="test" VITE_SERVER_PORT=${PORT} VITE_EXTERNAL_PORT=${EXTERNAL_PORT} pnpm build && VITE_SERVER_PORT=${PORT} pnpm serve --port ${PORT}`,
29+
command: `VITE_NODE_ENV="test" VITE_SERVER_PORT=${PORT} VITE_EXTERNAL_PORT=${EXTERNAL_PORT} pnpm build && VITE_SERVER_PORT=${PORT} pnpm preview --port ${PORT}`,
3030
url: baseURL,
3131
reuseExistingServer: !process.env.CI,
3232
stdout: 'pipe',

e2e/react-router/basic-file-based-code-splitting/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "vite --port 3000",
77
"dev:e2e": "vite",
88
"build": "vite build && tsc --noEmit",
9-
"serve": "vite preview",
9+
"preview": "vite preview",
1010
"start": "vite",
1111
"test:e2e:verbose-routes:true": "rm -rf port*.txt; VERBOSE_FILE_ROUTES=1 playwright test --project=chromium",
1212
"test:e2e:verbose-routes:false": "rm -rf port*.txt; VERBOSE_FILE_ROUTES=0 playwright test --project=chromium",

e2e/react-router/basic-file-based-code-splitting/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default defineConfig({
2626
},
2727

2828
webServer: {
29-
command: `VITE_NODE_ENV="test" VITE_SERVER_PORT=${PORT} VITE_EXTERNAL_PORT=${EXTERNAL_PORT} pnpm build && pnpm serve --port ${PORT}`,
29+
command: `VITE_NODE_ENV="test" VITE_SERVER_PORT=${PORT} VITE_EXTERNAL_PORT=${EXTERNAL_PORT} pnpm build && pnpm preview --port ${PORT}`,
3030
url: baseURL,
3131
reuseExistingServer: !process.env.CI,
3232
stdout: 'pipe',

e2e/react-router/basic-file-based/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"dev:e2e": "vite",
99
"build": "vite build && tsc --noEmit",
1010
"build:nonnested": "MODE=nonnested VITE_MODE=nonnested vite build && tsc --noEmit",
11-
"serve": "vite preview",
12-
"serve:nonnested": "MODE=nonnested VITE_MODE=nonnested vite preview",
11+
"preview": "vite preview",
12+
"preview:nonnested": "MODE=nonnested VITE_MODE=nonnested vite preview",
1313
"start": "vite",
1414
"start:nonnested": "MODE=nonnested VITE_MODE=nonnested vite",
1515
"test:e2e": "pnpm run test:e2e:nonnested && pnpm run test:e2e:default",

e2e/react-router/basic-file-based/playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { useExperimentalNonNestedRoutes } from './tests/utils/useExperimentalNon
99
const PORT = await getTestServerPort(packageJson.name)
1010
const EXTERNAL_PORT = await getDummyServerPort(packageJson.name)
1111
const baseURL = `http://localhost:${PORT}`
12-
const experimentalNonNestedPathsModeCommand = `pnpm build:nonnested && pnpm serve:nonnested --port ${PORT}`
13-
const defaultCommand = `pnpm build && pnpm serve --port ${PORT}`
12+
const experimentalNonNestedPathsModeCommand = `pnpm build:nonnested && pnpm preview:nonnested --port ${PORT}`
13+
const defaultCommand = `pnpm build && pnpm preview --port ${PORT}`
1414
const command = useExperimentalNonNestedRoutes
1515
? experimentalNonNestedPathsModeCommand
1616
: defaultCommand

e2e/react-router/basic-react-query-file-based/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "vite --port 3000",
77
"dev:e2e": "vite",
88
"build": "vite build && tsc --noEmit",
9-
"serve": "vite preview",
9+
"preview": "vite preview",
1010
"start": "vite",
1111
"test:e2e": "rm -rf port*.txt; playwright test --project=chromium"
1212
},

e2e/react-router/basic-react-query-file-based/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default defineConfig({
2525
},
2626

2727
webServer: {
28-
command: `VITE_NODE_ENV="test" VITE_SERVER_PORT=${PORT} VITE_EXTERNAL_PORT=${EXTERNAL_PORT} pnpm build && pnpm serve --port ${PORT}`,
28+
command: `VITE_NODE_ENV="test" VITE_SERVER_PORT=${PORT} VITE_EXTERNAL_PORT=${EXTERNAL_PORT} pnpm build && pnpm preview --port ${PORT}`,
2929
url: baseURL,
3030
reuseExistingServer: !process.env.CI,
3131
stdout: 'pipe',

e2e/react-router/basic-react-query/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dev": "vite --port 3000",
77
"dev:e2e": "vite",
88
"build": "vite build && tsc --noEmit",
9-
"serve": "vite preview",
9+
"preview": "vite preview",
1010
"start": "vite",
1111
"test:e2e": "rm -rf port*.txt; playwright test --project=chromium"
1212
},

e2e/react-router/basic-react-query/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default defineConfig({
2626
},
2727

2828
webServer: {
29-
command: `VITE_NODE_ENV="test" VITE_EXTERNAL_PORT=${EXTERNAL_PORT} VITE_SERVER_PORT=${PORT} pnpm build && pnpm serve --port ${PORT}`,
29+
command: `VITE_NODE_ENV="test" VITE_EXTERNAL_PORT=${EXTERNAL_PORT} VITE_SERVER_PORT=${PORT} pnpm build && pnpm preview --port ${PORT}`,
3030
url: baseURL,
3131
reuseExistingServer: !process.env.CI,
3232
stdout: 'pipe',

0 commit comments

Comments
 (0)