Skip to content

Commit ee91c94

Browse files
authored
refactor: remove migrate command (#2869)
BREAKING CHANGE: the `migrate` command was removed without replacement, please use migration guide
1 parent 43738e6 commit ee91c94

13 files changed

+0
-557
lines changed

OPTIONS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,6 @@ Commands:
10381038
info|i [options] Outputs information about your system.
10391039
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
10401040
loader|l [output-path] [options] Scaffold a loader.
1041-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
10421041
plugin|p [output-path] [options] Scaffold a plugin.
10431042
serve|server|s [entries...] [options] Run the webpack dev server.
10441043
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.

README.md

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

packages/webpack-cli/README.md

Lines changed: 0 additions & 1 deletion
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/lib/webpack-cli.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -757,11 +757,6 @@ class WebpackCLI {
757757
alias: "p",
758758
pkg: "@webpack-cli/generators",
759759
},
760-
{
761-
name: "migrate",
762-
alias: "m",
763-
pkg: "@webpack-cli/migrate",
764-
},
765760
{
766761
name: "configtest [config-path]",
767762
alias: "t",

packages/webpack-cli/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@
5050
"@webpack-cli/generators": {
5151
"optional": true
5252
},
53-
"@webpack-cli/migrate": {
54-
"optional": true
55-
},
5653
"webpack-bundle-analyzer": {
5754
"optional": true
5855
},

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

Lines changed: 0 additions & 129 deletions
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.
@@ -1127,128 +1124,6 @@ CLI documentation: https://webpack.js.org/api/cli/.
11271124
Made with ♥ by the webpack team."
11281125
`;
11291126

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

12541129
exports[`help should show help information for 'n' command using command syntax: stdout 1`] = `
@@ -2446,7 +2321,6 @@ Commands:
24462321
info|i [options] Outputs information about your system.
24472322
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
24482323
loader|l [output-path] [options] Scaffold a loader.
2449-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
24502324
plugin|p [output-path] [options] Scaffold a plugin.
24512325
serve|server|s [entries...] [options] Run the webpack dev server.
24522326
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
@@ -2502,7 +2376,6 @@ Commands:
25022376
info|i [options] Outputs information about your system.
25032377
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
25042378
loader|l [output-path] [options] Scaffold a loader.
2505-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
25062379
plugin|p [output-path] [options] Scaffold a plugin.
25072380
serve|server|s [entries...] [options] Run the webpack dev server.
25082381
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
@@ -2729,7 +2602,6 @@ Commands:
27292602
info|i [options] Outputs information about your system.
27302603
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
27312604
loader|l [output-path] [options] Scaffold a loader.
2732-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
27332605
plugin|p [output-path] [options] Scaffold a plugin.
27342606
serve|server|s [entries...] [options] Run the webpack dev server.
27352607
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.
@@ -2783,7 +2655,6 @@ Commands:
27832655
info|i [options] Outputs information about your system.
27842656
init|create|new|c|n [generation-path] [options] Initialize a new webpack project.
27852657
loader|l [output-path] [options] Scaffold a loader.
2786-
migrate|m <config-path> [new-config-path] Migrate a configuration to a new version.
27872658
plugin|p [output-path] [options] Scaffold a plugin.
27882659
serve|server|s [entries...] [options] Run the webpack dev server.
27892660
version|v [commands...] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands.

0 commit comments

Comments
 (0)