Skip to content

Commit 2733724

Browse files
committed
refactor!: remove migrate command (#3291)
BREAKING CHANGE: the `migrate` command was removed without replacement, please use migration guide
1 parent 089bc02 commit 2733724

13 files changed

+0
-557
lines changed

OPTIONS.md

-1
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,6 @@ Commands:
10051005
info|i [options] Outputs information about your system.
10061006
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
10071007
loader|l [output-path] [options] Scaffold a loader.
1008-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
10091008
plugin|p [output-path] [options] Scaffold a plugin.
10101009
serve|server|s [entries...] [options] Run the webpack dev server.
10111010
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ Thus, webpack CLI provides different commands for many common tasks.
6060
- [`help|h [command] [option]`](https://webpack.js.org/api/cli/#help) - Display help for commands and options.
6161
- [`init|create|new|c|n [generation-path] [options]`](https://webpack.js.org/api/cli/#init) - Create a new webpack project.
6262
- [`info|i [options]`](https://webpack.js.org/api/cli/#info) - Returns information related to the local environment.
63-
- [`migrate|m <config-path> [new-config-path]`](https://www.npmjs.com/package/@webpack-cli/migrate) - Migrate project from one version to another.
6463
- [`plugin|p [output-path] [options]`](https://webpack.js.org/api/cli/#plugin) - Initiate new plugin project.
6564
- [`loader|l [output-path] [options]`](https://webpack.js.org/api/cli/#loader) - Initiate new loader project.
6665
- [`serve|server|s [entries...] [options]`](https://webpack.js.org/api/cli/#serve) - Use webpack with a development server that provides live reloading.

packages/webpack-cli/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ npx webpack-cli --help verbose
6969
info|i [options] Outputs information about your system.
7070
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
7171
loader|l [output-path] [options] Scaffold a loader.
72-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
7372
plugin|p [output-path] [options] Scaffold a plugin.
7473
serve|server|s [entries...] [options] Run the webpack dev server.
7574
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.

packages/webpack-cli/package.json

-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@
5454
"@webpack-cli/generators": {
5555
"optional": true
5656
},
57-
"@webpack-cli/migrate": {
58-
"optional": true
59-
},
6057
"webpack-bundle-analyzer": {
6158
"optional": true
6259
},

packages/webpack-cli/src/webpack-cli.ts

-5
Original file line numberDiff line numberDiff line change
@@ -1086,11 +1086,6 @@ class WebpackCLI implements IWebpackCLI {
10861086
alias: "p",
10871087
pkg: "@webpack-cli/generators",
10881088
},
1089-
{
1090-
name: "migrate",
1091-
alias: "m",
1092-
pkg: "@webpack-cli/migrate",
1093-
},
10941089
{
10951090
name: "configtest [config-path]",
10961091
alias: "t",

test/help/__snapshots__/help.test.js.snap.devServer3.webpack4

-129
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ Commands:
128128
info|i [options] Outputs information about your system.
129129
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
130130
loader|l [output-path] [options] Scaffold a loader.
131-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
132131
plugin|p [output-path] [options] Scaffold a plugin.
133132
serve|server|s [entries...] [options] Run the webpack dev server.
134133
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
@@ -184,7 +183,6 @@ Commands:
184183
info|i [options] Outputs information about your system.
185184
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
186185
loader|l [output-path] [options] Scaffold a loader.
187-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
188186
plugin|p [output-path] [options] Scaffold a plugin.
189187
serve|server|s [entries...] [options] Run the webpack dev server.
190188
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
@@ -240,7 +238,6 @@ Commands:
240238
info|i [options] Outputs information about your system.
241239
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
242240
loader|l [output-path] [options] Scaffold a loader.
243-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
244241
plugin|p [output-path] [options] Scaffold a plugin.
245242
serve|server|s [entries...] [options] Run the webpack dev server.
246243
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
@@ -1135,128 +1132,6 @@ CLI documentation: https://webpack.js.org/api/cli/.
11351132
Made with ♥ by the webpack team."
11361133
`;
11371134

1138-
exports[`help should show help information for 'm' command using command syntax: stderr 1`] = `""`;
1139-
1140-
exports[`help should show help information for 'm' command using command syntax: stdout 1`] = `
1141-
"Usage: webpack migrate|m <config-path> [new-config-path]
1142-
1143-
Migrate a configuration to a new version.
1144-
1145-
Global options:
1146-
--color Enable colors on console.
1147-
--no-color Disable colors on console.
1148-
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
1149-
-h, --help [verbose] Display help for commands and options.
1150-
1151-
To see list of all supported commands and options run 'webpack --help=verbose'.
1152-
1153-
Webpack documentation: https://webpack.js.org/.
1154-
CLI documentation: https://webpack.js.org/api/cli/.
1155-
Made with ♥ by the webpack team."
1156-
`;
1157-
1158-
exports[`help should show help information for 'm' command using the "--help" option: stderr 1`] = `""`;
1159-
1160-
exports[`help should show help information for 'm' command using the "--help" option: stdout 1`] = `
1161-
"Usage: webpack migrate|m <config-path> [new-config-path]
1162-
1163-
Migrate a configuration to a new version.
1164-
1165-
Global options:
1166-
--color Enable colors on console.
1167-
--no-color Disable colors on console.
1168-
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
1169-
-h, --help [verbose] Display help for commands and options.
1170-
1171-
To see list of all supported commands and options run 'webpack --help=verbose'.
1172-
1173-
Webpack documentation: https://webpack.js.org/.
1174-
CLI documentation: https://webpack.js.org/api/cli/.
1175-
Made with ♥ by the webpack team."
1176-
`;
1177-
1178-
exports[`help should show help information for 'migrate' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`;
1179-
1180-
exports[`help should show help information for 'migrate' and respect the "--color" flag using the "--help" option: stdout 1`] = `
1181-
"Usage: webpack migrate|m <config-path> [new-config-path]
1182-
1183-
Migrate a configuration to a new version.
1184-
1185-
Global options:
1186-
--color Enable colors on console.
1187-
--no-color Disable colors on console.
1188-
-v, --version Output the version number of 'webpack', 'webpack-cli'
1189-
and 'webpack-dev-server' and commands.
1190-
-h, --help [verbose] Display help for commands and options.
1191-
1192-
To see list of all supported commands and options run 'webpack --help=verbose'.
1193-
1194-
Webpack documentation: https://webpack.js.org/.
1195-
CLI documentation: https://webpack.js.org/api/cli/.
1196-
Made with ♥ by the webpack team."
1197-
`;
1198-
1199-
exports[`help should show help information for 'migrate' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`;
1200-
1201-
exports[`help should show help information for 'migrate' and respect the "--no-color" flag using the "--help" option: stdout 1`] = `
1202-
"Usage: webpack migrate|m <config-path> [new-config-path]
1203-
1204-
Migrate a configuration to a new version.
1205-
1206-
Global options:
1207-
--color Enable colors on console.
1208-
--no-color Disable colors on console.
1209-
-v, --version Output the version number of 'webpack', 'webpack-cli'
1210-
and 'webpack-dev-server' and commands.
1211-
-h, --help [verbose] Display help for commands and options.
1212-
1213-
To see list of all supported commands and options run 'webpack --help=verbose'.
1214-
1215-
Webpack documentation: https://webpack.js.org/.
1216-
CLI documentation: https://webpack.js.org/api/cli/.
1217-
Made with ♥ by the webpack team."
1218-
`;
1219-
1220-
exports[`help should show help information for 'migrate' command using command syntax: stderr 1`] = `""`;
1221-
1222-
exports[`help should show help information for 'migrate' command using command syntax: stdout 1`] = `
1223-
"Usage: webpack migrate|m <config-path> [new-config-path]
1224-
1225-
Migrate a configuration to a new version.
1226-
1227-
Global options:
1228-
--color Enable colors on console.
1229-
--no-color Disable colors on console.
1230-
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
1231-
-h, --help [verbose] Display help for commands and options.
1232-
1233-
To see list of all supported commands and options run 'webpack --help=verbose'.
1234-
1235-
Webpack documentation: https://webpack.js.org/.
1236-
CLI documentation: https://webpack.js.org/api/cli/.
1237-
Made with ♥ by the webpack team."
1238-
`;
1239-
1240-
exports[`help should show help information for 'migrate' command using the "--help" option: stderr 1`] = `""`;
1241-
1242-
exports[`help should show help information for 'migrate' command using the "--help" option: stdout 1`] = `
1243-
"Usage: webpack migrate|m <config-path> [new-config-path]
1244-
1245-
Migrate a configuration to a new version.
1246-
1247-
Global options:
1248-
--color Enable colors on console.
1249-
--no-color Disable colors on console.
1250-
-v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
1251-
-h, --help [verbose] Display help for commands and options.
1252-
1253-
To see list of all supported commands and options run 'webpack --help=verbose'.
1254-
1255-
Webpack documentation: https://webpack.js.org/.
1256-
CLI documentation: https://webpack.js.org/api/cli/.
1257-
Made with ♥ by the webpack team."
1258-
`;
1259-
12601135
exports[`help should show help information for 'n' command using command syntax: stderr 1`] = `""`;
12611136

12621137
exports[`help should show help information for 'n' command using command syntax: stdout 1`] = `
@@ -2454,7 +2329,6 @@ Commands:
24542329
info|i [options] Outputs information about your system.
24552330
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
24562331
loader|l [output-path] [options] Scaffold a loader.
2457-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
24582332
plugin|p [output-path] [options] Scaffold a plugin.
24592333
serve|server|s [entries...] [options] Run the webpack dev server.
24602334
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
@@ -2510,7 +2384,6 @@ Commands:
25102384
info|i [options] Outputs information about your system.
25112385
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
25122386
loader|l [output-path] [options] Scaffold a loader.
2513-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
25142387
plugin|p [output-path] [options] Scaffold a plugin.
25152388
serve|server|s [entries...] [options] Run the webpack dev server.
25162389
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
@@ -2738,7 +2611,6 @@ Commands:
27382611
info|i [options] Outputs information about your system.
27392612
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
27402613
loader|l [output-path] [options] Scaffold a loader.
2741-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
27422614
plugin|p [output-path] [options] Scaffold a plugin.
27432615
serve|server|s [entries...] [options] Run the webpack dev server.
27442616
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
@@ -2792,7 +2664,6 @@ Commands:
27922664
info|i [options] Outputs information about your system.
27932665
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
27942666
loader|l [output-path] [options] Scaffold a loader.
2795-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
27962667
plugin|p [output-path] [options] Scaffold a plugin.
27972668
serve|server|s [entries...] [options] Run the webpack dev server.
27982669
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.

0 commit comments

Comments
 (0)