From f4628ab253b44b9289277ef2481b52601acb95c4 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Tue, 22 Oct 2024 19:48:08 +0530 Subject: [PATCH] refactor!: remove `init`, `loader`, & `plugin` commands (#4297) --- .eslintrc.js | 5 - packages/generators/CHANGELOG.md | 228 --- packages/generators/INIT.md | 93 - packages/generators/README.md | 44 - .../generators/addon-template/package.json.js | 7 - .../generators/init-template/default/.babelrc | 11 - .../init-template/default/README.md | 15 - .../generators/init-template/default/index.js | 1 - .../init-template/default/package.json.js | 18 - .../init-template/default/postcss.config.js | 5 - .../init-template/default/template.html.tpl | 26 - .../init-template/default/tsconfig.json | 10 - .../default/webpack.configjs.tpl | 101 - .../init-template/react/index.d.ts.tpl | 8 - .../init-template/react/index.html.tpl | 12 - .../init-template/react/package.json.tpl | 12 - .../init-template/react/src/App.js.tpl | 13 - .../init-template/react/src/App.tsx.tpl | 13 - .../react/src/assets/webpack.png.tpl | Bin 2337 -> 0 bytes .../init-template/react/src/index.js.tpl | 12 - .../init-template/react/src/index.tsx.tpl | 12 - .../react/src/styles/global.css.tpl | 18 - .../react/src/styles/global.less.tpl | 18 - .../react/src/styles/global.scss.tpl | 18 - .../react/src/styles/global.styl.tpl | 18 - .../init-template/react/tsconfig.json.tpl | 12 - .../init-template/react/webpack.config.js.tpl | 105 -- .../default/examples/simple/src/index.js.tpl | 11 - .../examples/simple/src/lazy-module.js.tpl | 1 - .../simple/src/static-esm-module.js.tpl | 1 - .../examples/simple/webpack.config.js.tpl | 27 - .../loader-template/default/src/_index.js.tpl | 25 - .../loader-template/default/src/cjs.js.tpl | 1 - .../default/test/fixtures/simple-file.js.tpl | 3 - .../default/test/functional.test.js.tpl | 21 - .../default/test/test-utils.js.tpl | 85 - .../default/test/unit.test.js.tpl | 30 - packages/generators/package.json | 45 - .../examples/simple/_webpack.config.js.tpl | 13 - .../default/examples/simple/src/index.js.tpl | 11 - .../examples/simple/src/lazy-module.js.tpl | 1 - .../simple/src/static-esm-module.js.tpl | 1 - .../plugin-template/default/src/_index.js.tpl | 16 - .../plugin-template/default/src/cjs.js.tpl | 1 - .../default/test/fixtures/simple-file.js.tpl | 3 - .../default/test/functional.test.js.tpl | 10 - .../default/test/test-utils.js.tpl | 85 - packages/generators/src/addon-generator.ts | 144 -- packages/generators/src/custom-generator.ts | 33 - packages/generators/src/handlers.ts | 7 - packages/generators/src/handlers/default.ts | 242 --- packages/generators/src/handlers/react.ts | 87 - packages/generators/src/index.ts | 146 -- packages/generators/src/init-generator.ts | 86 - packages/generators/src/loader-generator.ts | 42 - packages/generators/src/plugin-generator.ts | 24 - packages/generators/src/types/index.ts | 21 - packages/generators/src/update-generator.ts | 3 - packages/generators/src/utils/helpers.ts | 63 - .../generators/src/utils/scaffold-utils.ts | 47 - packages/generators/tsconfig.json | 14 - packages/webpack-cli/package.json | 3 - packages/webpack-cli/src/webpack-cli.ts | 15 - smoketests/index.js | 2 - .../generator.test.js | 25 - smoketests/missing-packages/prettier.test.js | 49 - test/api/generators/helpers.test.js | 99 - test/api/generators/scaffold-utils.test.js | 65 - .../help.test.js.snap.devServer4.webpack5 | 1161 +++--------- .../help.test.js.snap.devServer5.webpack5 | 1161 +++--------- test/help/help.test.js | 12 - .../__snapshots__/init.test.js.snap.webpack5 | 1333 ------------- test/init/init.test.js | 680 ------- test/loader/error-test/loader-error.test.js | 14 - test/loader/error-test/src/index.ts | 4 - test/loader/error-test/tsconfig.json | 11 - test/loader/error-test/webpack.config.js | 25 - test/loader/loader.test.js | 244 --- .../warning-test/loader-warning.test.js | 13 - test/loader/warning-test/my-loader.js | 5 - test/loader/warning-test/src/main.js | 2 - test/loader/warning-test/webpack.config.js | 33 - test/plugin/plugin.test.js | 246 --- tsconfig.json | 3 - yarn.lock | 1644 +---------------- 85 files changed, 552 insertions(+), 8482 deletions(-) delete mode 100644 packages/generators/CHANGELOG.md delete mode 100644 packages/generators/INIT.md delete mode 100644 packages/generators/README.md delete mode 100644 packages/generators/addon-template/package.json.js delete mode 100644 packages/generators/init-template/default/.babelrc delete mode 100644 packages/generators/init-template/default/README.md delete mode 100644 packages/generators/init-template/default/index.js delete mode 100644 packages/generators/init-template/default/package.json.js delete mode 100644 packages/generators/init-template/default/postcss.config.js delete mode 100644 packages/generators/init-template/default/template.html.tpl delete mode 100644 packages/generators/init-template/default/tsconfig.json delete mode 100644 packages/generators/init-template/default/webpack.configjs.tpl delete mode 100644 packages/generators/init-template/react/index.d.ts.tpl delete mode 100644 packages/generators/init-template/react/index.html.tpl delete mode 100644 packages/generators/init-template/react/package.json.tpl delete mode 100644 packages/generators/init-template/react/src/App.js.tpl delete mode 100644 packages/generators/init-template/react/src/App.tsx.tpl delete mode 100644 packages/generators/init-template/react/src/assets/webpack.png.tpl delete mode 100644 packages/generators/init-template/react/src/index.js.tpl delete mode 100644 packages/generators/init-template/react/src/index.tsx.tpl delete mode 100644 packages/generators/init-template/react/src/styles/global.css.tpl delete mode 100644 packages/generators/init-template/react/src/styles/global.less.tpl delete mode 100644 packages/generators/init-template/react/src/styles/global.scss.tpl delete mode 100644 packages/generators/init-template/react/src/styles/global.styl.tpl delete mode 100644 packages/generators/init-template/react/tsconfig.json.tpl delete mode 100644 packages/generators/init-template/react/webpack.config.js.tpl delete mode 100644 packages/generators/loader-template/default/examples/simple/src/index.js.tpl delete mode 100644 packages/generators/loader-template/default/examples/simple/src/lazy-module.js.tpl delete mode 100644 packages/generators/loader-template/default/examples/simple/src/static-esm-module.js.tpl delete mode 100644 packages/generators/loader-template/default/examples/simple/webpack.config.js.tpl delete mode 100644 packages/generators/loader-template/default/src/_index.js.tpl delete mode 100644 packages/generators/loader-template/default/src/cjs.js.tpl delete mode 100644 packages/generators/loader-template/default/test/fixtures/simple-file.js.tpl delete mode 100644 packages/generators/loader-template/default/test/functional.test.js.tpl delete mode 100644 packages/generators/loader-template/default/test/test-utils.js.tpl delete mode 100644 packages/generators/loader-template/default/test/unit.test.js.tpl delete mode 100644 packages/generators/package.json delete mode 100644 packages/generators/plugin-template/default/examples/simple/_webpack.config.js.tpl delete mode 100644 packages/generators/plugin-template/default/examples/simple/src/index.js.tpl delete mode 100644 packages/generators/plugin-template/default/examples/simple/src/lazy-module.js.tpl delete mode 100644 packages/generators/plugin-template/default/examples/simple/src/static-esm-module.js.tpl delete mode 100644 packages/generators/plugin-template/default/src/_index.js.tpl delete mode 100644 packages/generators/plugin-template/default/src/cjs.js.tpl delete mode 100644 packages/generators/plugin-template/default/test/fixtures/simple-file.js.tpl delete mode 100644 packages/generators/plugin-template/default/test/functional.test.js.tpl delete mode 100644 packages/generators/plugin-template/default/test/test-utils.js.tpl delete mode 100644 packages/generators/src/addon-generator.ts delete mode 100644 packages/generators/src/custom-generator.ts delete mode 100644 packages/generators/src/handlers.ts delete mode 100644 packages/generators/src/handlers/default.ts delete mode 100644 packages/generators/src/handlers/react.ts delete mode 100644 packages/generators/src/index.ts delete mode 100644 packages/generators/src/init-generator.ts delete mode 100644 packages/generators/src/loader-generator.ts delete mode 100644 packages/generators/src/plugin-generator.ts delete mode 100644 packages/generators/src/types/index.ts delete mode 100644 packages/generators/src/update-generator.ts delete mode 100644 packages/generators/src/utils/helpers.ts delete mode 100644 packages/generators/src/utils/scaffold-utils.ts delete mode 100644 packages/generators/tsconfig.json delete mode 100644 smoketests/missing-command-packages/generator.test.js delete mode 100644 smoketests/missing-packages/prettier.test.js delete mode 100644 test/api/generators/helpers.test.js delete mode 100755 test/api/generators/scaffold-utils.test.js delete mode 100644 test/init/__snapshots__/init.test.js.snap.webpack5 delete mode 100644 test/init/init.test.js delete mode 100644 test/loader/error-test/loader-error.test.js delete mode 100644 test/loader/error-test/src/index.ts delete mode 100644 test/loader/error-test/tsconfig.json delete mode 100644 test/loader/error-test/webpack.config.js delete mode 100644 test/loader/loader.test.js delete mode 100644 test/loader/warning-test/loader-warning.test.js delete mode 100644 test/loader/warning-test/my-loader.js delete mode 100644 test/loader/warning-test/src/main.js delete mode 100644 test/loader/warning-test/webpack.config.js delete mode 100644 test/plugin/plugin.test.js diff --git a/.eslintrc.js b/.eslintrc.js index 1f312dc4c4f..3a7b389a670 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -4,11 +4,6 @@ module.exports = { extends: ["eslint:recommended", "plugin:n/recommended", "prettier"], parserOptions: { ecmaVersion: 2018, sourceType: "script" }, plugins: ["n"], - settings: { - n: { - allowModules: ["@webpack-cli/generators"], - }, - }, env: { node: true, es6: true, diff --git a/packages/generators/CHANGELOG.md b/packages/generators/CHANGELOG.md deleted file mode 100644 index 027487baa69..00000000000 --- a/packages/generators/CHANGELOG.md +++ /dev/null @@ -1,228 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [3.0.7](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@3.0.6...@webpack-cli/generators@3.0.7) (2023-06-07) - -**Note:** Version bump only for package @webpack-cli/generators - -## [3.0.6](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@3.0.5...@webpack-cli/generators@3.0.6) (2023-06-04) - -**Note:** Version bump only for package @webpack-cli/generators - -## [3.0.5](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@3.0.4...@webpack-cli/generators@3.0.5) (2023-06-04) - -**Note:** Version bump only for package @webpack-cli/generators - -## [3.0.4](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@3.0.3...@webpack-cli/generators@3.0.4) (2023-05-09) - -**Note:** Version bump only for package @webpack-cli/generators - -## [3.0.3](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@3.0.2...@webpack-cli/generators@3.0.3) (2023-05-07) - -**Note:** Version bump only for package @webpack-cli/generators - -## [3.0.2](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@3.0.1...@webpack-cli/generators@3.0.2) (2023-04-21) - -### Bug Fixes - -- **init:** don't ask to install prettier when using `--force` ([#3720](https://github.com/webpack/webpack-cli/issues/3720)) ([72d11c9](https://github.com/webpack/webpack-cli/commit/72d11c9d6f8f28e845caa8b3f72e1b056a7e3fe8)) - -## [3.0.1](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@3.0.0...@webpack-cli/generators@3.0.1) (2022-12-05) - -### Bug Fixes - -- make define-process-env-node-env alias node-env ([#3514](https://github.com/webpack/webpack-cli/issues/3514)) ([346a518](https://github.com/webpack/webpack-cli/commit/346a518dd7423a726810ef1012031f92d318c9c5)) - -# [3.0.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@2.5.0...@webpack-cli/generators@3.0.0) (2022-11-17) - -### Bug Fixes - -- add style and css loader to sass/less/stylus replaces [#3172](https://github.com/webpack/webpack-cli/issues/3172) ([#3412](https://github.com/webpack/webpack-cli/issues/3412)) ([2d3eea1](https://github.com/webpack/webpack-cli/commit/2d3eea16877e63e80019a318cf05894295877bd3)) - -### BREAKING CHANGES - -- the minimum supported webpack version is v5.0.0 (#3342) ([b1af0dc](https://github.com/webpack/webpack-cli/commit/b1af0dc7ebcdf746bc37889e4c1f978c65acc4a5)), closes [#3342](https://github.com/webpack/webpack-cli/issues/3342) -- webpack-cli no longer supports webpack v4, the minimum supported version is webpack v5.0.0 - -# [2.5.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@2.4.2...@webpack-cli/generators@2.5.0) (2022-06-13) - -### Bug Fixes - -- consider using createroot instead of render ([#3240](https://github.com/webpack/webpack-cli/issues/3240)) ([86bfe8a](https://github.com/webpack/webpack-cli/commit/86bfe8af92d731f02bbeac375bfe8249c0d3f4d5)) -- correct react template generation ([#3245](https://github.com/webpack/webpack-cli/issues/3245)) ([8531b75](https://github.com/webpack/webpack-cli/commit/8531b75d77e1f7f22f185c4efd82e0351ffce04a)) - -### Features - -- added types ([8ec1375](https://github.com/webpack/webpack-cli/commit/8ec1375092a6f9676e82fa4231dd88b1016c2302)) -- react template ([#2862](https://github.com/webpack/webpack-cli/issues/2862)) ([8118405](https://github.com/webpack/webpack-cli/commit/81184055ad8a0dc83d085b7c60a59be9c0046f3c)) - -## [2.4.2](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@2.4.1...@webpack-cli/generators@2.4.2) (2022-01-24) - -**Note:** Version bump only for package @webpack-cli/generators - -## [2.4.1](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@2.4.0...@webpack-cli/generators@2.4.1) (2021-10-18) - -**Note:** Version bump only for package @webpack-cli/generators - -# [2.4.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@2.3.0...@webpack-cli/generators@2.4.0) (2021-10-06) - -### Bug Fixes - -- npx init ([#2980](https://github.com/webpack/webpack-cli/issues/2980)) ([1d38499](https://github.com/webpack/webpack-cli/commit/1d38499b4d0cee5bfb0c02c92e691aa6702b91cc)) - -### Features - -- allow to run commands without webpack installation where it is unnecessary ([#2907](https://github.com/webpack/webpack-cli/issues/2907)) ([603041d](https://github.com/webpack/webpack-cli/commit/603041d7e6a9b764bd79d1a8effd22a3e0f019cb)) - -# [2.3.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@2.2.0...@webpack-cli/generators@2.3.0) (2021-08-15) - -### Features - -- add prompt to select a package manager of choice ([#2779](https://github.com/webpack/webpack-cli/issues/2779)) ([5bd0df4](https://github.com/webpack/webpack-cli/commit/5bd0df42dea72203f3042405d6ff35b4422df763)) -- **init-generator:** add ability to specify a package manager of choice ([#2769](https://github.com/webpack/webpack-cli/issues/2769)) ([e53f164](https://github.com/webpack/webpack-cli/commit/e53f1645c729c3bbcb27ffd41c999ed321f86f9d)) - -# [2.2.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@2.1.0...@webpack-cli/generators@2.2.0) (2021-06-07) - -### Bug Fixes - -- prettier config ([#2719](https://github.com/webpack/webpack-cli/issues/2719)) ([181295f](https://github.com/webpack/webpack-cli/commit/181295fb1b1973c201c221813562219d85b845ae)) - -### Features - -- **generators:** add aliases for options ([#2700](https://github.com/webpack/webpack-cli/issues/2700)) ([2172ad9](https://github.com/webpack/webpack-cli/commit/2172ad9f3e515b1b9a87558e80772bef1b6f42d6)) -- **init-generator:** configure workbox-webpack-plugin as opted ([#2722](https://github.com/webpack/webpack-cli/issues/2722)) ([f229e29](https://github.com/webpack/webpack-cli/commit/f229e29ace0acf88dafef51d86c9671efff52c72)) - -# [2.1.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@2.0.0...@webpack-cli/generators@2.1.0) (2021-05-06) - -### Bug Fixes - -- add node env as prod in default template ([#2614](https://github.com/webpack/webpack-cli/issues/2614)) ([5ea478c](https://github.com/webpack/webpack-cli/commit/5ea478ca9e8fda691e37fdd6d0ad8d1df074e224)) -- broken URL in generated webpack.config.js ([#2600](https://github.com/webpack/webpack-cli/issues/2600)) ([6e207bc](https://github.com/webpack/webpack-cli/commit/6e207bc24886f7f8a87a19119924a682f66e575b)) -- comment typo in webpack.config.js template file ([#2639](https://github.com/webpack/webpack-cli/issues/2639)) ([d2ab57d](https://github.com/webpack/webpack-cli/commit/d2ab57d2268d8cc8df628f35d75774c88330a5f8)) -- correct webpack config for `babel-loader` and `ts-loader` ([#2577](https://github.com/webpack/webpack-cli/issues/2577)) ([177dca7](https://github.com/webpack/webpack-cli/commit/177dca7c20fff0708721426598fcd5a89384eb8e)) -- send warning regarding invalid template to stderr ([#2687](https://github.com/webpack/webpack-cli/issues/2687)) ([dc0481b](https://github.com/webpack/webpack-cli/commit/dc0481becfde5553fa95a393d1167539b2e14ec2)) -- update usage info ([#2594](https://github.com/webpack/webpack-cli/issues/2594)) ([9d07d67](https://github.com/webpack/webpack-cli/commit/9d07d67faf147cbaf0dddb95038403963e5f2afb)) -- **generators:** use correct exit code ([#2569](https://github.com/webpack/webpack-cli/issues/2569)) ([9a18e7f](https://github.com/webpack/webpack-cli/commit/9a18e7f6cdf8524ecee3cfaf09595983eebf35b9)) - -### Features - -- add --template flag for addon generator ([#2576](https://github.com/webpack/webpack-cli/issues/2576)) ([c8f702a](https://github.com/webpack/webpack-cli/commit/c8f702ac399252b8e5da899e6014a2832321caa3)) -- add `create` and `new` alias for `init` ([#2616](https://github.com/webpack/webpack-cli/issues/2616)) ([5a9789d](https://github.com/webpack/webpack-cli/commit/5a9789db237b7696adfdc9826b0dda749fedfa9a)) -- add support for mini-css-extract-plugin on demand ([#2571](https://github.com/webpack/webpack-cli/issues/2571)) ([ed201c0](https://github.com/webpack/webpack-cli/commit/ed201c0744d08dc376a234ddafe32f6b5fe60082)) -- add support for mode specific config ([#2585](https://github.com/webpack/webpack-cli/issues/2585)) ([993a7f0](https://github.com/webpack/webpack-cli/commit/993a7f02ec1546a7aca1ee537366faa8ac18de84)) -- added support arguments description ([#2659](https://github.com/webpack/webpack-cli/issues/2659)) ([4dfd166](https://github.com/webpack/webpack-cli/commit/4dfd166f757ce94130bf9b7580f2dbe2868b8f4f)) -- allow setup extract plugin ([#2644](https://github.com/webpack/webpack-cli/issues/2644)) ([71bfaa8](https://github.com/webpack/webpack-cli/commit/71bfaa8ef5e9de4d4f0cbee4ba7e57a5b1b69d90)) -- make extention case insensitive ([#2572](https://github.com/webpack/webpack-cli/issues/2572)) ([67eeaaf](https://github.com/webpack/webpack-cli/commit/67eeaaf66ed5b6b3b705c2b595e3923f2cb725e6)) -- prettify generated config ([#2640](https://github.com/webpack/webpack-cli/issues/2640)) ([c3c069e](https://github.com/webpack/webpack-cli/commit/c3c069e1cc7958a6f7b5d4cdb74acb12bc25d8c7)) - -# [2.0.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@1.3.1...@webpack-cli/generators@2.0.0) (2021-03-27) - -### BREAKING CHANGES - -- `--generation-path` option was removed, please use `webpack init ./path/to/generation` -- `--auto` option was removed in favor `--force` -- utils for ast transformations were removed - -### Bug Fixes - -- description for `init` command ([#2528](https://github.com/webpack/webpack-cli/issues/2528)) ([0f0e403](https://github.com/webpack/webpack-cli/commit/0f0e403464711d5c7ddfe9537e00969fb3474685)) -- update prompt message ([#2523](https://github.com/webpack/webpack-cli/issues/2523)) ([7b87485](https://github.com/webpack/webpack-cli/commit/7b87485c6b161d472422e7f86680a7e221223ec1)) -- add serve script if opted for WDS with init ([#2424](https://github.com/webpack/webpack-cli/issues/2424)) ([78e2fa7](https://github.com/webpack/webpack-cli/commit/78e2fa7036e123beefe2010e0a6cc10697d14c4d)) -- improve prettier message ([#2419](https://github.com/webpack/webpack-cli/issues/2419)) ([21a1a30](https://github.com/webpack/webpack-cli/commit/21a1a30c687cd800396a1c13abefc57bf42886f3)) - -### Features - -- add additional scripts to init template ([#2550](https://github.com/webpack/webpack-cli/issues/2550)) ([665d993](https://github.com/webpack/webpack-cli/commit/665d99378f272179e39236cb21773ef1b1907314)) -- add postcss support to default template ([#2526](https://github.com/webpack/webpack-cli/issues/2526)) ([2627d0f](https://github.com/webpack/webpack-cli/commit/2627d0f9490be35f21ed0f55134d7851dd2e5cd0)) -- allow all css possibilities for default template ([#2544](https://github.com/webpack/webpack-cli/issues/2544)) ([a141bbb](https://github.com/webpack/webpack-cli/commit/a141bbb1902ec9039d197f3b4b049e2e3eaff793)) - -## [1.3.1](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@1.3.0...@webpack-cli/generators@1.3.1) (2021-02-02) - -**Note:** Version bump only for package @webpack-cli/generators - -# [1.3.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@1.2.1...@webpack-cli/generators@1.3.0) (2021-01-19) - -### Bug Fixes - -- init generator ([#2324](https://github.com/webpack/webpack-cli/issues/2324)) ([016bb34](https://github.com/webpack/webpack-cli/commit/016bb348d7cc9cb299555ec8edd373130fb1b77c)) -- regression with webpack config ([#2319](https://github.com/webpack/webpack-cli/issues/2319)) ([50bbe56](https://github.com/webpack/webpack-cli/commit/50bbe56c0ae9d72301c4ac51fdc2b04df7b66451)) -- remove splitchunks ([#2310](https://github.com/webpack/webpack-cli/issues/2310)) ([e44e855](https://github.com/webpack/webpack-cli/commit/e44e855c7e302932a828fcedf7abfe205b47c716)) -- remove style-loader from the loader chain ([#2309](https://github.com/webpack/webpack-cli/issues/2309)) ([19a25cf](https://github.com/webpack/webpack-cli/commit/19a25cf83dc2f680a5028f4b449d7f79895231f0)) -- use worker from plugin and remove default ([#2340](https://github.com/webpack/webpack-cli/issues/2340)) ([9100137](https://github.com/webpack/webpack-cli/commit/9100137bc4e7d77915407aec554da25f0ae9e55c)) - -### Features - -- flexible init scaffolding ([#2311](https://github.com/webpack/webpack-cli/issues/2311)) ([9a74ad0](https://github.com/webpack/webpack-cli/commit/9a74ad08b984325a63d953c685496e48700a2caf)) - -## [1.2.1](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@1.2.0...@webpack-cli/generators@1.2.1) (2020-12-31) - -### Bug Fixes - -- the `--help` option is working without `webpack-dev-server` ([#2267](https://github.com/webpack/webpack-cli/issues/2267)) ([1dae54d](https://github.com/webpack/webpack-cli/commit/1dae54da94d3220437b9257efe512447023de1d3)) - -# [1.2.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@1.1.0...@webpack-cli/generators@1.2.0) (2020-12-25) - -### Bug Fixes - -- typos in options - -### Features - -- union generators - -# [1.1.0](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@1.0.2...@webpack-cli/generators@1.1.0) (2020-11-04) - -### Bug Fixes - -- **generators:** correct optimization.splitChunks option in config ([#2008](https://github.com/webpack/webpack-cli/issues/2008)) ([f86ef2d](https://github.com/webpack/webpack-cli/commit/f86ef2d6c0a4cba3b2002baf32b78e06cbaafc4a)) - -### Features - -- export utils from core for other packages ([#2011](https://github.com/webpack/webpack-cli/issues/2011)) ([3004549](https://github.com/webpack/webpack-cli/commit/3004549c06b3fe00708d8e1eecf42419e0f72f66)) - -## [1.0.2](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@1.0.1...@webpack-cli/generators@1.0.2) (2020-10-19) - -### Bug Fixes - -- output stacktrace on errors ([#1949](https://github.com/webpack/webpack-cli/issues/1949)) ([9ba9d6f](https://github.com/webpack/webpack-cli/commit/9ba9d6f460fb25fb79d52f4360239b8c4b471451)) - -## [1.0.1](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@1.0.1-rc.1...@webpack-cli/generators@1.0.1) (2020-10-10) - -### Bug Fixes - -- cleanup `package-utils` package ([#1822](https://github.com/webpack/webpack-cli/issues/1822)) ([fd5b92b](https://github.com/webpack/webpack-cli/commit/fd5b92b3cd40361daec5bf4486e455a41f4c9738)) -- upgrade lock file ([#1885](https://github.com/webpack/webpack-cli/issues/1885)) ([8df291e](https://github.com/webpack/webpack-cli/commit/8df291eef0fad7c91d912b158b3c2915cddfacd1)) - -## [1.0.1-rc.1](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@1.0.1-alpha.5...@webpack-cli/generators@1.0.1-rc.1) (2020-10-06) - -### Bug Fixes - -- **generators:** fix and refactor entry util, add tests ([#1392](https://github.com/webpack/webpack-cli/issues/1392)) ([219c633](https://github.com/webpack/webpack-cli/commit/219c633e284518fe9c638d26a49d79394f0b6d68)) -- **generators:** fix generators init loader's test regex ([#1309](https://github.com/webpack/webpack-cli/issues/1309)) ([62e0314](https://github.com/webpack/webpack-cli/commit/62e03143ba3b8752665a5ff6ff134daadbe9c2bc)) -- **generators:** fix small issues with generators ([#1385](https://github.com/webpack/webpack-cli/issues/1385)) ([f62c60d](https://github.com/webpack/webpack-cli/commit/f62c60d0a52fd6294ead8e0ee9310d017fe21807)) -- add necessary peerDependencies ([#1825](https://github.com/webpack/webpack-cli/issues/1825)) ([0f13ab5](https://github.com/webpack/webpack-cli/commit/0f13ab5ddd9e28e5e7095721d086a58aebaf98a5)) -- generated loader template ([#1720](https://github.com/webpack/webpack-cli/issues/1720)) ([a380a78](https://github.com/webpack/webpack-cli/commit/a380a785c296208af7017f547cd34cf72517f9da)) - -## [1.0.1-alpha.5](https://github.com/ematipico/webpack-cli/compare/@webpack-cli/generators@1.0.1-alpha.4...@webpack-cli/generators@1.0.1-alpha.5) (2020-03-02) - -**Note:** Version bump only for package @webpack-cli/generators - -## [1.0.1-alpha.4](https://github.com/ematipico/webpack-cli/compare/@webpack-cli/generators@1.0.1-alpha.3...@webpack-cli/generators@1.0.1-alpha.4) (2020-02-29) - -**Note:** Version bump only for package @webpack-cli/generators - -## [1.0.1-alpha.3](https://github.com/ematipico/webpack-cli/compare/@webpack-cli/generators@1.0.1-alpha.2...@webpack-cli/generators@1.0.1-alpha.3) (2020-02-23) - -**Note:** Version bump only for package @webpack-cli/generators - -## [1.0.1-alpha.2](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@1.0.1-alpha.1...@webpack-cli/generators@1.0.1-alpha.2) (2020-02-23) - -**Note:** Version bump only for package @webpack-cli/generators - -## [1.0.1-alpha.1](https://github.com/webpack/webpack-cli/compare/@webpack-cli/generators@1.0.1-alpha.0...@webpack-cli/generators@1.0.1-alpha.1) (2020-02-23) - -### Bug Fixes - -- **cli:** fix file resolution inside group helper ([#1221](https://github.com/webpack/webpack-cli/issues/1221)) ([76d2eb3](https://github.com/webpack/webpack-cli/commit/76d2eb316ab154c19ebf639b7d6c82df76dc0695)) diff --git a/packages/generators/INIT.md b/packages/generators/INIT.md deleted file mode 100644 index 6961aba88d1..00000000000 --- a/packages/generators/INIT.md +++ /dev/null @@ -1,93 +0,0 @@ -# webpack-cli init - -`webpack-cli init` is used to initialize `webpack` projects quickly by scaffolding configuration and creating a runnable project with all the dependencies based on the user preferences. - -## Table of Contents - -- [Initial Setup](#initial-setup) - - [Local Setup](#local-setup) - - [Global Setup](#global-setup) -- [Usage](#usage) - - [Running Locally](#running-locally) - - [Running Globally](#running-globally) - - [CLI options](#cli-options) -- [Description of questions asked by the generator](#description-of-questions-asked-by-the-generator) - - [Default Template](#default-template) - -## Setup - -Install `webpack` and `webpack-cli` as devDependencies - -```shell -npm install --save-dev webpack webpack-cli -``` - -## Usage - -### Running Locally - -```bash -npx webpack-cli init -``` - -### Running Globally - -```shell -webpack-cli init -``` - -### CLI options - -**To generate default template** - -```bash -webpack-cli init -``` - -**To generate with default answers** - -```bash -webpack-cli init -f, --force -``` - -**To scaffold in a specified path** - -```bash -webpack-cli init [generation-path] -``` - -**To scaffold specified template** - -```bash -webpack-cli init -t, --template -``` - -## Description of questions asked by the generator - -### Default template - -1. `Which of the following JS solutions do you want to use?` - -> _Property/key resolved: [module.rules](https://webpack.js.org/configuration/module/#module-rules) (for .js, .ts and other related files)_ - -This enables webpack to parse [`ES2015`](https://babeljs.io/learn-es2015/) code or Typescript code as per choice. - -2. `Do you want to use webpack-dev-server?` - -> _Property/key resolved: [module.rules](https://webpack.js.org/configuration/dev-server/)_ - -Adds a development server to serve webpack bundles and hence make development faster. - -3. `Do you want to simplify the creation of HTML files for your bundle?` - -Adds `html-webpack-plugin` that simplifies creation of HTML files to serve your bundles. - -4. `Do you want to add PWA support?` - -Adds [`workbox-webpack-plugin`](https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin) which generates a complete service worker for you. - -5. `Which of the following CSS solutions do you want to use?` - -> _Property/key resolved: [module.rules](https://webpack.js.org/configuration/module/#module-rules) (for .css files)_ - -If you use any sort of style in your project, such as [`.css`](https://developer.mozilla.org/en-US/docs/Web/CSS) you will need to select this here. If you don't use CSS, answer `none`. diff --git a/packages/generators/README.md b/packages/generators/README.md deleted file mode 100644 index 1aaa59dae5e..00000000000 --- a/packages/generators/README.md +++ /dev/null @@ -1,44 +0,0 @@ -# webpack-cli generators - -[![NPM Downloads][downloads]][downloads-url] - -## Description - -This package contains all webpack-cli related yeoman generators. - -## Installation - -```bash -npm i -D webpack-cli @webpack-cli/generators -``` - -## Usage - -To run the package programmatically, install it as a dependency. When using the package programmatically, one does not have to install webpack-cli. - -### Node - -```js -const { - addonGenerator, - initGenerator, - loaderGenerator, - pluginGenerator, -} = require("@webpack-cli/generators"); - -// ... compose with yeoman env or add a generator to your own yeoman project -``` - -## Generators - -- [**Plugin Generator**](https://github.com/webpack/webpack-cli/blob/master/packages/generators/src/plugin-generator.ts) : Creates a webpack plugin project, add starter plugin code -- [**Loader Generator**](https://github.com/webpack/webpack-cli/blob/master/packages/generators/src/loader-generator.ts) : Creates a webpack loader project, add starter loader code -- [**Init Generator**](https://github.com/webpack/webpack-cli/blob/master/packages/generators/src/init-generator.ts) : Generates new webpack configuration as per user requirements -- [**Addon Generator**](https://github.com/webpack/webpack-cli/blob/master/packages/generators/src/addon-generator.ts) : Generates a webpack project conforming to `webpack-defaults` - ---- - -[Back to Packages](https://github.com/webpack/webpack-cli/tree/master/packages) - -[downloads]: https://img.shields.io/npm/dm/@webpack-cli/generators.svg -[downloads-url]: https://www.npmjs.com/package/@webpack-cli/generators diff --git a/packages/generators/addon-template/package.json.js b/packages/generators/addon-template/package.json.js deleted file mode 100644 index 7b008cba4be..00000000000 --- a/packages/generators/addon-template/package.json.js +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = (name) => { - return { - version: "1.0.0", - description: "webpack loader", - name, - }; -}; diff --git a/packages/generators/init-template/default/.babelrc b/packages/generators/init-template/default/.babelrc deleted file mode 100644 index f2c9da3ae6e..00000000000 --- a/packages/generators/init-template/default/.babelrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "plugins": ["@babel/syntax-dynamic-import"], - "presets": [ - [ - "@babel/preset-env", - { - "modules": false - } - ] - ] -} diff --git a/packages/generators/init-template/default/README.md b/packages/generators/init-template/default/README.md deleted file mode 100644 index fa32788f72a..00000000000 --- a/packages/generators/init-template/default/README.md +++ /dev/null @@ -1,15 +0,0 @@ -# 🚀 Welcome to your new awesome project! - -This project has been created using **webpack-cli**, you can now run - -``` -npm run build -``` - -or - -``` -yarn build -``` - -to bundle your application diff --git a/packages/generators/init-template/default/index.js b/packages/generators/init-template/default/index.js deleted file mode 100644 index 019c0f4bc8e..00000000000 --- a/packages/generators/init-template/default/index.js +++ /dev/null @@ -1 +0,0 @@ -console.log("Hello World!"); diff --git a/packages/generators/init-template/default/package.json.js b/packages/generators/init-template/default/package.json.js deleted file mode 100644 index 79d967ebe16..00000000000 --- a/packages/generators/init-template/default/package.json.js +++ /dev/null @@ -1,18 +0,0 @@ -module.exports = (isUsingDevServer) => { - const scripts = { - build: "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - watch: "webpack --watch", - }; - if (isUsingDevServer) { - scripts.serve = "webpack serve"; - } - - return { - version: "1.0.0", - description: "My webpack project", - name: "my-webpack-project", - scripts, - }; -}; diff --git a/packages/generators/init-template/default/postcss.config.js b/packages/generators/init-template/default/postcss.config.js deleted file mode 100644 index 3fa4289052e..00000000000 --- a/packages/generators/init-template/default/postcss.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - // Add you postcss configuration here - // Learn more about it at https://github.com/webpack-contrib/postcss-loader#config-files - plugins: [["autoprefixer"]], -}; diff --git a/packages/generators/init-template/default/template.html.tpl b/packages/generators/init-template/default/template.html.tpl deleted file mode 100644 index d61cf83b04b..00000000000 --- a/packages/generators/init-template/default/template.html.tpl +++ /dev/null @@ -1,26 +0,0 @@ - - - - - Webpack App - - -

Hello world!

-

Tip: Check your console

- - <% if (workboxWebpackPlugin) { %> - <% } %> - diff --git a/packages/generators/init-template/default/tsconfig.json b/packages/generators/init-template/default/tsconfig.json deleted file mode 100644 index 31176e658c2..00000000000 --- a/packages/generators/init-template/default/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "compilerOptions": { - "allowSyntheticDefaultImports": true, - "noImplicitAny": true, - "module": "es6", - "target": "es5", - "allowJs": true - }, - "files": ["src/index.ts"] -} diff --git a/packages/generators/init-template/default/webpack.configjs.tpl b/packages/generators/init-template/default/webpack.configjs.tpl deleted file mode 100644 index 26d2ba7dc3b..00000000000 --- a/packages/generators/init-template/default/webpack.configjs.tpl +++ /dev/null @@ -1,101 +0,0 @@ -// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require('path');<% if (htmlWebpackPlugin) { %> -const HtmlWebpackPlugin = require('html-webpack-plugin');<% } %><% if (extractPlugin !== 'No') { %> -const MiniCssExtractPlugin = require('mini-css-extract-plugin');<% } %><% if (workboxWebpackPlugin) { %> -const WorkboxWebpackPlugin = require('workbox-webpack-plugin');<% } %> - -const isProduction = process.env.NODE_ENV === 'production'; -<% if (cssType !== 'none') { %> -<% if (extractPlugin === "Yes") { %> -const stylesHandler = MiniCssExtractPlugin.loader; -<% } else if (extractPlugin === "Only for Production") { %> -const stylesHandler = isProduction ? MiniCssExtractPlugin.loader : 'style-loader'; -<% } else { %> -const stylesHandler = 'style-loader'; -<% } %> -<% } %> - -const config = { - entry: '<%= entry %>', - output: { - path: path.resolve(__dirname, 'dist'), - },<% if (devServer) { %> - devServer: { - open: true, - host: 'localhost', - },<% } %> - plugins: [<% if (htmlWebpackPlugin) { %> - new HtmlWebpackPlugin({ - template: 'index.html', - }), -<% } %><% if (extractPlugin === "Yes") { %> - new MiniCssExtractPlugin(), -<% } %> - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [<% if (langType == "ES6") { %> - { - test: /\.(js|jsx)$/i, - loader: 'babel-loader', - },<% } %><% if (langType == "Typescript") { %> - { - test: /\.(ts|tsx)$/i, - loader: 'ts-loader', - exclude: ['/node_modules/'], - },<% } %><% if (isCSS && !isPostCSS) { %> - { - test: /\.css$/i, - use: [stylesHandler,'css-loader'], - },<% } %><% if (cssType == 'SASS') { %> - { - test: /\.s[ac]ss$/i, - use: [stylesHandler, 'css-loader', <% if (isPostCSS) { %>'postcss-loader', <% } %>'sass-loader'], - },<% } %><% if (cssType == 'LESS') { %> - { - test: /\.less$/i, - use: [stylesHandler, 'css-loader', <% if (isPostCSS) { %>'postcss-loader', <% } %>'less-loader'], - },<% } %><% if (cssType == 'Stylus') { %> - { - test: /\.styl$/i, - use: [stylesHandler, 'css-loader', <% if (isPostCSS) { %>'postcss-loader', <% } %>'stylus-loader'], - },<% } %><% if (isPostCSS && isCSS) { %> - { - test: /\.css$/i, - use: [stylesHandler, 'css-loader', 'postcss-loader'], - },<% } %> - { - test: /\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: 'asset', - }, - %><% if (htmlWebpackPlugin) { %> - { - test: /\.html$/i, - use: ['html-loader'], - },<% } %> - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - },<% if (langType == "Typescript") {%> - resolve: { - extensions: ['.tsx', '.ts', '.jsx', '.js', '...'], - },<% } %> -}; - -module.exports = () => { - if (isProduction) { - config.mode = 'production'; - <% if (extractPlugin === "Only for Production") { %> - config.plugins.push(new MiniCssExtractPlugin()); - <% } %> - <% if (workboxWebpackPlugin) { %> - config.plugins.push(new WorkboxWebpackPlugin.GenerateSW()); - <% } %> - } else { - config.mode = 'development'; - } - return config; -}; diff --git a/packages/generators/init-template/react/index.d.ts.tpl b/packages/generators/init-template/react/index.d.ts.tpl deleted file mode 100644 index 38ee1835c96..00000000000 --- a/packages/generators/init-template/react/index.d.ts.tpl +++ /dev/null @@ -1,8 +0,0 @@ -declare module "*.png"; -declare module "*.jpg"; -declare module "*.gif"; -declare module "*.svg"; -declare module "*.ttf"; -declare module "*.woff"; -declare module "*.woff2"; -declare module "*.eot"; diff --git a/packages/generators/init-template/react/index.html.tpl b/packages/generators/init-template/react/index.html.tpl deleted file mode 100644 index e7da43e690d..00000000000 --- a/packages/generators/init-template/react/index.html.tpl +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - Webpack + React - - -
- - diff --git a/packages/generators/init-template/react/package.json.tpl b/packages/generators/init-template/react/package.json.tpl deleted file mode 100644 index 14aebb6b9c7..00000000000 --- a/packages/generators/init-template/react/package.json.tpl +++ /dev/null @@ -1,12 +0,0 @@ -{ - "version": "1.0.0", - "description": "My webpack project", - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - "serve": "webpack serve" - } -} diff --git a/packages/generators/init-template/react/src/App.js.tpl b/packages/generators/init-template/react/src/App.js.tpl deleted file mode 100644 index 1120de98950..00000000000 --- a/packages/generators/init-template/react/src/App.js.tpl +++ /dev/null @@ -1,13 +0,0 @@ -import React from "react"; -import webpackLogo from "./assets/webpack.png"; - -function App() { - return ( -
-

Welcome to your React App!

- webpack logo -
- ); -} - -export default App; \ No newline at end of file diff --git a/packages/generators/init-template/react/src/App.tsx.tpl b/packages/generators/init-template/react/src/App.tsx.tpl deleted file mode 100644 index 3471324c763..00000000000 --- a/packages/generators/init-template/react/src/App.tsx.tpl +++ /dev/null @@ -1,13 +0,0 @@ -import React from "react"; -import webpackLogo from "./assets/webpack.png"; - -function App() { - return ( -
-

Welcome to your Typescript React App!

- webpack logo -
- ); -} - -export default App; \ No newline at end of file diff --git a/packages/generators/init-template/react/src/assets/webpack.png.tpl b/packages/generators/init-template/react/src/assets/webpack.png.tpl deleted file mode 100644 index b2390da4f06813863ee470dcfaab6d0f489fa0fc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2337 zcmZ{mdpr{g8^CI*%S1(Uq7a0aC+T|(m^cdbdD}lD!Ik2-^>#}^X7k~RgVJPssUJLIGz0< zqq~@cMgssqYfDq(TS3&N%+T9;`Z6ss=kgusX2nhm`D6Y+D|x~ZC3k$fL{$glaCCQV z1a+eb?-5S69($PH))Zv{m5n!5N%?OWeBTb*Y*=$?U0TimqBbOR=38FU$RuL+Jyg*P zn5R~y6u`}Tt5a)}3zR`V>D<`8ppOzec1C?)Cex2gpYf9|-agLCE$r(0!v~|4(fv#+ z#R{!?cQXQhv7{nQk%fcb4dgcd?Vl;BauU1tz6smv%{7k|{agT34-dJtQkhvZzkX;V z9hfiyzw5_kJ2Ote&c&sao=6H*(tY`^Mn5~I6r7~1#7rxA6*X+^Oq_nSm<(x1WQ2iO z1o+lRa(1_$(hHM8X+(X+V2$inBUu?n0$D*NN6Fb~V!uDpe26gAmHty6OCyB^O;6^@ ziFtf}S1d}thSrZPCFOaR{XEbSET06)=BNkA9aNY6NM2A6&>}{iAQU(I#Ay;Y%bIYy z$iWW~T_-QZgFOGm%A8N5R-?bItMUPN)}$&@-)p`zXhBI<4dC$GtKfRUsE18Jf^)=C z9p#y=ptLd<#B%xIIUag8ze>U5EBP;9qeRlZm2vF4%40lNCha5_O`WG0*4Y~wx{>VPk*Ho}9FyBa z(ghy1_Nk}_dIQ}zX+&e8o7|02(vH#<>}Yl3XzKT(15TB*JY{zh;C`>3igirgm^iOv z#cQI>Z4|m`p?;{iCx>rmaCRIL^Q2dA2WlgQzno*eZUQZNY4@%dn{>^IR)!Kwhm(E@ z^jFiq#A|h}xBt8oRuVqsa#}2HmO7DGpGxQ&Me!*W1=?B0QG+12T7tdd z^I%1L5G-~kYoIF{#wssNQ^XP6Z(*q5YX4U|?I$5wb2IOk9+)O8=xNgvQK04-w^_BpWF7rYSuR|$gr=FfS{*z^_YWh ziw+WNkEjOIHX`zI5z2+<@l3)n%!Z_EqDZI2}Z9Z9Yl^}9DP+eb{`BIlokR?L;WFpLVGR99mOU*p4h zWrazXALX5zgsZW%zcdu?>+di{AEb(2=j+(K?<)mT>Y8+y`4YaIu$RVqa8~b)XtTvw z7rC;FjQ!Ct?LS#6y$zA#Ywd#tU$5@VNH_{y2h7jd4d1;DGO}ChjN9tBP&km-)u%acjy%9LGZbT8{z?jd9#NBEN+99LZjg%E3)Fo@r)|R&2$UhRseE z2N=(;(;bQJ)$@@I(`AL6YGkh0Uq7B6>;)rZ#`2?ZaV&TiFS=?u!uzf|F_Zu7tal&+ z7-RcCYy|eEE_mnx3$nC?0bx@$5Gv4m5gS+$VK^EBt!qY|IUF3X)Nt=#g?f7Tj;YAz zCLTtFgo&>Nza+RkCj%clv_;*dG3`y9o$W)BGEp*aV%~4sp82Zs4zXKKyZY-%tQn0* z7FJ~YMiE?R6h3trDCA`16kKz{$IHA;eAf$kvDkj6+Z|TqhRKZz@5hbFwd?Fk_*;>R zu1pOAH`B}2&`e5=tF<^XK3>i_^?kbL7n`9jxJZyd;nZIi-e*Tkto`M%sYXth*%YWx zH*whaNpY0FxhD#BJuTlZbU=hEZm^LqUi3DR15o-^l|if|5bKwbe?JUrZ*{b5`CyVS z{Rs6BNybsA$$4xiH+@xR%>8DIP2#EpIO-Nn5mFGH@Jx+oFmd|C{jSS8B(6`4OkM5w zi#tlLR@e#X)L-e6njA^aZ!^<^*AB zXnq3Ym1VnwmcpjVzbbg{31 -import "./styles/global.css";<% } if (cssType == 'SASS') { %> -import "./styles/global.scss";<% } if (cssType == 'LESS') { %> -import "./styles/global.less";<% } if (cssType == 'Stylus') { %> -import "./styles/global.styl";<% } %> - -const container = document.getElementById('root'); -const root = createRoot(container); -root.render(); diff --git a/packages/generators/init-template/react/src/index.tsx.tpl b/packages/generators/init-template/react/src/index.tsx.tpl deleted file mode 100644 index 885b41bf176..00000000000 --- a/packages/generators/init-template/react/src/index.tsx.tpl +++ /dev/null @@ -1,12 +0,0 @@ -import React from 'react'; -import { createRoot } from 'react-dom/client'; -import App from './App'; -<% if (cssType == 'CSS only') { %> -import "./styles/global.css";<% } if (cssType == 'SASS') { %> -import "./styles/global.scss";<% } if (cssType == 'LESS') { %> -import "./styles/global.less";<% } if (cssType == 'Stylus') { %> -import "./styles/global.styl";<% } %> - -const container = document.getElementById('root'); -const root = createRoot(container); -root.render(); \ No newline at end of file diff --git a/packages/generators/init-template/react/src/styles/global.css.tpl b/packages/generators/init-template/react/src/styles/global.css.tpl deleted file mode 100644 index 67377414818..00000000000 --- a/packages/generators/init-template/react/src/styles/global.css.tpl +++ /dev/null @@ -1,18 +0,0 @@ -html, -body { - padding: 0; - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; -} - -.heading { - font-weight: 300; -} - -.container { - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; -} \ No newline at end of file diff --git a/packages/generators/init-template/react/src/styles/global.less.tpl b/packages/generators/init-template/react/src/styles/global.less.tpl deleted file mode 100644 index 67377414818..00000000000 --- a/packages/generators/init-template/react/src/styles/global.less.tpl +++ /dev/null @@ -1,18 +0,0 @@ -html, -body { - padding: 0; - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; -} - -.heading { - font-weight: 300; -} - -.container { - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; -} \ No newline at end of file diff --git a/packages/generators/init-template/react/src/styles/global.scss.tpl b/packages/generators/init-template/react/src/styles/global.scss.tpl deleted file mode 100644 index 67377414818..00000000000 --- a/packages/generators/init-template/react/src/styles/global.scss.tpl +++ /dev/null @@ -1,18 +0,0 @@ -html, -body { - padding: 0; - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; -} - -.heading { - font-weight: 300; -} - -.container { - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; -} \ No newline at end of file diff --git a/packages/generators/init-template/react/src/styles/global.styl.tpl b/packages/generators/init-template/react/src/styles/global.styl.tpl deleted file mode 100644 index 67377414818..00000000000 --- a/packages/generators/init-template/react/src/styles/global.styl.tpl +++ /dev/null @@ -1,18 +0,0 @@ -html, -body { - padding: 0; - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; -} - -.heading { - font-weight: 300; -} - -.container { - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; -} \ No newline at end of file diff --git a/packages/generators/init-template/react/tsconfig.json.tpl b/packages/generators/init-template/react/tsconfig.json.tpl deleted file mode 100644 index d53bc6605bf..00000000000 --- a/packages/generators/init-template/react/tsconfig.json.tpl +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "jsx": "react", - "allowSyntheticDefaultImports": true, - "noImplicitAny": true, - "module": "es6", - "target": "es5", - "allowJs": true, - "moduleResolution": "node" - }, - "files": ["src/index.tsx", "index.d.ts"] -} diff --git a/packages/generators/init-template/react/webpack.config.js.tpl b/packages/generators/init-template/react/webpack.config.js.tpl deleted file mode 100644 index d75566497be..00000000000 --- a/packages/generators/init-template/react/webpack.config.js.tpl +++ /dev/null @@ -1,105 +0,0 @@ -// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require('path');<% if (htmlWebpackPlugin) { %> -const HtmlWebpackPlugin = require('html-webpack-plugin');<% } %><% if (extractPlugin !== 'No') { %> -const MiniCssExtractPlugin = require('mini-css-extract-plugin');<% } %><% if (workboxWebpackPlugin) { %> -const WorkboxWebpackPlugin = require('workbox-webpack-plugin');<% } %> - -const isProduction = process.env.NODE_ENV === 'production'; -<% if (isCSS) { %> -<% if (extractPlugin === "Yes") { %> -const stylesHandler = MiniCssExtractPlugin.loader; -<% } else if (extractPlugin === "Only for Production") { %> -const stylesHandler = isProduction ? MiniCssExtractPlugin.loader : 'style-loader'; -<% } else { %> -const stylesHandler = 'style-loader'; -<% } %> -<% } %> - -const config = { - entry: '<%= entry %>', - output: { - path: path.resolve(__dirname, 'dist'), - },<% if (devServer) { %> - devServer: { - open: true, - host: 'localhost', - },<% } %> - plugins: [<% if (htmlWebpackPlugin) { %> - new HtmlWebpackPlugin({ - template: 'index.html', - }), -<% } %><% if (extractPlugin === "Yes") { %> - new MiniCssExtractPlugin(), -<% } %> - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [<% if (langType == "ES6") { %> - { - test: /\.?js$/, - exclude: /node_modules/, - use: { - loader: "babel-loader", - options: { - presets: ["@babel/preset-env", "@babel/preset-react"], - }, - }, - },<% } %><% if (langType == "Typescript") { %> - { - test: /\.(ts|tsx)$/i, - loader: 'ts-loader', - exclude: ['/node_modules/'], - },<% } %><% if (isCSS && !isPostCSS) { %> - { - test: /\.css$/i, - use: [stylesHandler,'css-loader'], - },<% } %><% if (cssType == 'SASS') { %> - { - test: /\.s[ac]ss$/i, - use: [stylesHandler, 'css-loader', <% if (isPostCSS) { %>'postcss-loader', <% } %>'sass-loader'], - },<% } %><% if (cssType == 'LESS') { %> - { - test: /\.less$/i, - use: [<% if (isPostCSS) { %>stylesHandler, 'css-loader', 'postcss-loader', <% } %>'less-loader'], - },<% } %><% if (cssType == 'Stylus') { %> - { - test: /\.styl$/i, - use: [<% if (isPostCSS) { %>stylesHandler, 'css-loader', 'postcss-loader', <% } %>'stylus-loader'], - },<% } %><% if (isPostCSS && isCSS) { %> - { - test: /\.css$/i, - use: [stylesHandler, 'css-loader', 'postcss-loader'], - },<% } %> - { - test: /\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: 'asset', - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, - resolve: { - alias: { - "@": path.resolve(__dirname, "./src/"), - },<% if (langType == "Typescript") {%> - extensions: ['.tsx', '.ts', '.jsx', '.js', '...'],<% } %> - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = 'production'; - <% if (extractPlugin === "Only for Production") { %> - config.plugins.push(new MiniCssExtractPlugin()); - <% } %> - <% if (workboxWebpackPlugin) { %> - config.plugins.push(new WorkboxWebpackPlugin.GenerateSW()); - <% } %> - } else { - config.mode = 'development'; - } - return config; -}; diff --git a/packages/generators/loader-template/default/examples/simple/src/index.js.tpl b/packages/generators/loader-template/default/examples/simple/src/index.js.tpl deleted file mode 100644 index 2c49d366408..00000000000 --- a/packages/generators/loader-template/default/examples/simple/src/index.js.tpl +++ /dev/null @@ -1,11 +0,0 @@ -import esmModule from './static-esm-module'; - -const getLazyModule = () => System.import('./lazy-module'); - -setTimeout(() => { - getLazyModule.then((modDefault) => { - console.log(modDefault); - }); -}, 300); - -console.log(esmModule); diff --git a/packages/generators/loader-template/default/examples/simple/src/lazy-module.js.tpl b/packages/generators/loader-template/default/examples/simple/src/lazy-module.js.tpl deleted file mode 100644 index f3dac067326..00000000000 --- a/packages/generators/loader-template/default/examples/simple/src/lazy-module.js.tpl +++ /dev/null @@ -1 +0,0 @@ -export default 'lazy'; diff --git a/packages/generators/loader-template/default/examples/simple/src/static-esm-module.js.tpl b/packages/generators/loader-template/default/examples/simple/src/static-esm-module.js.tpl deleted file mode 100644 index d02ba545bd3..00000000000 --- a/packages/generators/loader-template/default/examples/simple/src/static-esm-module.js.tpl +++ /dev/null @@ -1 +0,0 @@ -export default 'foo'; diff --git a/packages/generators/loader-template/default/examples/simple/webpack.config.js.tpl b/packages/generators/loader-template/default/examples/simple/webpack.config.js.tpl deleted file mode 100644 index 75b6744b7a2..00000000000 --- a/packages/generators/loader-template/default/examples/simple/webpack.config.js.tpl +++ /dev/null @@ -1,27 +0,0 @@ -const path = require('path'); - -module.exports = { - entry: './src/index.js', - output: { - path: path.join(__dirname, 'example_dist'), - filename: '[name].chunk.js', - }, - module: { - rules: [ - { - test: /\.js$/, - use: [ - { - loader: 'example-loader', - options: {}, - }, - ], - }, - ], - }, - resolveLoader: { - alias: { - 'example-loader': require.resolve('../../src/'), - }, - }, -}; diff --git a/packages/generators/loader-template/default/src/_index.js.tpl b/packages/generators/loader-template/default/src/_index.js.tpl deleted file mode 100644 index fa1972c5704..00000000000 --- a/packages/generators/loader-template/default/src/_index.js.tpl +++ /dev/null @@ -1,25 +0,0 @@ -/** - * See the webpack docs for more information about loaders: - * https://webpack.js.org/contribute/writing-a-loader - */ - -module.exports = function loader(source) { - const { loaders, resource, request, version, webpack } = this; - console.log('<%= name %>'); - const newSource = ` - /** - * <%= name %> - * - * Resource Location: ${resource} - * Loaders chained to module: ${JSON.stringify(loaders)} - * Loader API Version: ${version} - * Is this in "webpack mode": ${webpack} - * This is the users request for the module: ${request} - */ - /** - * Original Source From Loader - */ - ${source}`; - - return newSource; -} diff --git a/packages/generators/loader-template/default/src/cjs.js.tpl b/packages/generators/loader-template/default/src/cjs.js.tpl deleted file mode 100644 index 82657ce3a74..00000000000 --- a/packages/generators/loader-template/default/src/cjs.js.tpl +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./index').default; diff --git a/packages/generators/loader-template/default/test/fixtures/simple-file.js.tpl b/packages/generators/loader-template/default/test/fixtures/simple-file.js.tpl deleted file mode 100644 index 908ed137dff..00000000000 --- a/packages/generators/loader-template/default/test/fixtures/simple-file.js.tpl +++ /dev/null @@ -1,3 +0,0 @@ -import foo from "./foo"; // eslint-disable-line - -console.log(foo); diff --git a/packages/generators/loader-template/default/test/functional.test.js.tpl b/packages/generators/loader-template/default/test/functional.test.js.tpl deleted file mode 100644 index b69f8d7f17a..00000000000 --- a/packages/generators/loader-template/default/test/functional.test.js.tpl +++ /dev/null @@ -1,21 +0,0 @@ -import { - runWebpackExampleInMemory, -} from '../test/test-utils'; - -test('should run with no errors or warnings', async () => { - const buildStats = await runWebpackExampleInMemory('simple'); - const { errors, warnings } = buildStats; - - expect([...errors, ...warnings].length).toBe(0); -}); - -test('should append transformations to JavaScript module', async () => { - const buildStats = await runWebpackExampleInMemory('simple'); - const { modules } = buildStats; - - const moduleToTest = modules[0].source()._source._value; - const loadedString = '* Original Source From Loader'; - - expect(moduleToTest).toEqual(expect.stringContaining(loadedString)); - expect(moduleToTest).toMatchSnapshot(); -}); diff --git a/packages/generators/loader-template/default/test/test-utils.js.tpl b/packages/generators/loader-template/default/test/test-utils.js.tpl deleted file mode 100644 index 198d9f2ad6b..00000000000 --- a/packages/generators/loader-template/default/test/test-utils.js.tpl +++ /dev/null @@ -1,85 +0,0 @@ -import path from 'path'; -import webpack from 'webpack'; -import MemoryFs from 'memory-fs'; - -const fs = new MemoryFs(); -const unitTestFixtures = path.resolve(__dirname, 'fixtures'); - -/** - * - * - * @param {string} fixtureName - * @param {string} [withQueryString=''] - * @returns {string} Absolute path of a file with query that is to be run by a loader. - */ -function getFixtureResource(fixtureName, withQueryString = '') { - return `${getFixture(fixtureName)}?${withQueryString}`; -} - -/** - * - * - * @param {string} fixtureName - * @returns {string} Absolute path of a file with query that is to be run by a loader. - */ -function getFixture(fixtureName) { - return path.resolve(unitTestFixtures, `${fixtureName}.js`); -} - -/** - * - * - * @param {Object} withOptions - Loader Options - * @returns {{loader: string, options: Object}} - */ -function getLoader(withOptions) { - return [{ loader: path.resolve(__dirname, '../dist/index.js'), options: withOptions }]; -} - -/** - * - * - * @param {string} exampleName - * @returns {Object|Array} - Returns an object or array of objects representing the webpack configuration options - */ -function getExampleConfig(exampleName) { - return require(`../examples/${exampleName}/webpack.config.js`); -} - -/** - * - * - * @param {string} exampleName - name of example inside of examples folder - * @returns - */ -async function runWebpackExampleInMemory(exampleName) { - const webpackConfig = getExampleConfig(exampleName); - const compiler = webpack(webpackConfig); - - compiler.outputFileSystem = fs; - - const result = await new Promise((resolve, reject) => { - compiler.run((err, stats) => { - if(err) console.error(error) - - const { compilation } = stats - const { errors, warnings, assets, entrypoints, chunks, modules } = compilation; - const statsJson = stats.toJson(); - - resolve({ - assets, - entrypoints, - errors, - warnings, - stats, - chunks, - modules, - statsJson, - }); - }) - }) - - return result -} - -export { getExampleConfig, runWebpackExampleInMemory, fs, getFixtureResource, getLoader, getFixture }; diff --git a/packages/generators/loader-template/default/test/unit.test.js.tpl b/packages/generators/loader-template/default/test/unit.test.js.tpl deleted file mode 100644 index c8817fe2520..00000000000 --- a/packages/generators/loader-template/default/test/unit.test.js.tpl +++ /dev/null @@ -1,30 +0,0 @@ -import fs from 'fs'; -import { runLoaders } from 'loader-runner'; -import { getFixtureResource, getFixture, getLoader } from './test-utils'; - -const loaders = getLoader(); - -describe('Example Loader Tests: Fixture: simple-file', () => { - const fixtureName = 'simple-file'; - const resource = getFixture(fixtureName); - - test('loaded file should be different', async (done) => { - const originalSource = fs.readFileSync(resource); - runLoaders({ resource: getFixtureResource(fixtureName), loaders }, (_, result) => { - expect(result).not.toEqual(originalSource); - done(); - }) - }); - - test('loader prepends correct information', async (done) => { - runLoaders({ resource: getFixtureResource(fixtureName), loaders }, (_, result) => { - const resultMatcher = expect.arrayContaining([ - expect.stringContaining(' * Original Source From Loader'), - ]); - - expect(result).toEqual(resultMatcher); - expect(result).toMatchSnapshot(); - done(); - }) - }); -}); diff --git a/packages/generators/package.json b/packages/generators/package.json deleted file mode 100644 index 91e104144eb..00000000000 --- a/packages/generators/package.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "name": "@webpack-cli/generators", - "version": "3.0.7", - "description": "Webpack-CLI generators", - "main": "lib/index.js", - "types": "lib/index.d.ts", - "keywords": [], - "license": "MIT", - "engines": { - "node": ">=18.12.0" - }, - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/webpack/webpack-cli.git" - }, - "homepage": "https://github.com/webpack/webpack-cli/tree/master/packages/generators", - "files": [ - "lib", - "addon-template", - "init-template", - "loader-template", - "plugin-template" - ], - "dependencies": { - "webpack-cli": "^5.1.4", - "yeoman-environment": "^3.9.1", - "yeoman-generator": "^5.7.0" - }, - "peerDependencies": { - "webpack": "5.x.x", - "webpack-cli": "5.x.x" - }, - "peerDependenciesMeta": { - "prettier": { - "optional": true - } - }, - "devDependencies": { - "@types/yeoman-generator": "^5.2.8" - }, - "gitHead": "fb50f766851f500ca12867a2aa9de81fa6e368f9" -} diff --git a/packages/generators/plugin-template/default/examples/simple/_webpack.config.js.tpl b/packages/generators/plugin-template/default/examples/simple/_webpack.config.js.tpl deleted file mode 100644 index e50ecc3e588..00000000000 --- a/packages/generators/plugin-template/default/examples/simple/_webpack.config.js.tpl +++ /dev/null @@ -1,13 +0,0 @@ -const path = require('path'); -const <%= name %> = require('../../src/index.js'); - -module.exports = { - entry: './src/index.js', - output: { - path: path.join(__dirname, 'example_dist'), - filename: '[name].chunk.js', - }, - plugins: [ - new <%= name %>() - ] -}; diff --git a/packages/generators/plugin-template/default/examples/simple/src/index.js.tpl b/packages/generators/plugin-template/default/examples/simple/src/index.js.tpl deleted file mode 100644 index 2c49d366408..00000000000 --- a/packages/generators/plugin-template/default/examples/simple/src/index.js.tpl +++ /dev/null @@ -1,11 +0,0 @@ -import esmModule from './static-esm-module'; - -const getLazyModule = () => System.import('./lazy-module'); - -setTimeout(() => { - getLazyModule.then((modDefault) => { - console.log(modDefault); - }); -}, 300); - -console.log(esmModule); diff --git a/packages/generators/plugin-template/default/examples/simple/src/lazy-module.js.tpl b/packages/generators/plugin-template/default/examples/simple/src/lazy-module.js.tpl deleted file mode 100644 index f3dac067326..00000000000 --- a/packages/generators/plugin-template/default/examples/simple/src/lazy-module.js.tpl +++ /dev/null @@ -1 +0,0 @@ -export default 'lazy'; diff --git a/packages/generators/plugin-template/default/examples/simple/src/static-esm-module.js.tpl b/packages/generators/plugin-template/default/examples/simple/src/static-esm-module.js.tpl deleted file mode 100644 index d02ba545bd3..00000000000 --- a/packages/generators/plugin-template/default/examples/simple/src/static-esm-module.js.tpl +++ /dev/null @@ -1 +0,0 @@ -export default 'foo'; diff --git a/packages/generators/plugin-template/default/src/_index.js.tpl b/packages/generators/plugin-template/default/src/_index.js.tpl deleted file mode 100644 index 2513c3e70c2..00000000000 --- a/packages/generators/plugin-template/default/src/_index.js.tpl +++ /dev/null @@ -1,16 +0,0 @@ -/** - * See the webpack docs for more information about plugins: - * https://webpack.js.org/contribute/writing-a-plugin/#basic-plugin-architecture - */ - -class <%= name %> { - apply(compiler) { - compiler.hooks.done.tap('<%= name %>', ( - stats /* stats is passed as an argument when done hook is tapped. */ - ) => { - console.log('Hello World!'); - }); - } -} - -module.exports = <%= name %>; diff --git a/packages/generators/plugin-template/default/src/cjs.js.tpl b/packages/generators/plugin-template/default/src/cjs.js.tpl deleted file mode 100644 index 82657ce3a74..00000000000 --- a/packages/generators/plugin-template/default/src/cjs.js.tpl +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./index').default; diff --git a/packages/generators/plugin-template/default/test/fixtures/simple-file.js.tpl b/packages/generators/plugin-template/default/test/fixtures/simple-file.js.tpl deleted file mode 100644 index 908ed137dff..00000000000 --- a/packages/generators/plugin-template/default/test/fixtures/simple-file.js.tpl +++ /dev/null @@ -1,3 +0,0 @@ -import foo from "./foo"; // eslint-disable-line - -console.log(foo); diff --git a/packages/generators/plugin-template/default/test/functional.test.js.tpl b/packages/generators/plugin-template/default/test/functional.test.js.tpl deleted file mode 100644 index 07f2099cec0..00000000000 --- a/packages/generators/plugin-template/default/test/functional.test.js.tpl +++ /dev/null @@ -1,10 +0,0 @@ -import { - runWebpackExampleInMemory, -} from '../test/test-utils'; - -test('should run with no errors or warnings', async () => { - const buildStats = await runWebpackExampleInMemory('simple'); - const { errors, warnings } = buildStats; - - expect([...errors, ...warnings].length).toBe(0); -}); diff --git a/packages/generators/plugin-template/default/test/test-utils.js.tpl b/packages/generators/plugin-template/default/test/test-utils.js.tpl deleted file mode 100644 index 198d9f2ad6b..00000000000 --- a/packages/generators/plugin-template/default/test/test-utils.js.tpl +++ /dev/null @@ -1,85 +0,0 @@ -import path from 'path'; -import webpack from 'webpack'; -import MemoryFs from 'memory-fs'; - -const fs = new MemoryFs(); -const unitTestFixtures = path.resolve(__dirname, 'fixtures'); - -/** - * - * - * @param {string} fixtureName - * @param {string} [withQueryString=''] - * @returns {string} Absolute path of a file with query that is to be run by a loader. - */ -function getFixtureResource(fixtureName, withQueryString = '') { - return `${getFixture(fixtureName)}?${withQueryString}`; -} - -/** - * - * - * @param {string} fixtureName - * @returns {string} Absolute path of a file with query that is to be run by a loader. - */ -function getFixture(fixtureName) { - return path.resolve(unitTestFixtures, `${fixtureName}.js`); -} - -/** - * - * - * @param {Object} withOptions - Loader Options - * @returns {{loader: string, options: Object}} - */ -function getLoader(withOptions) { - return [{ loader: path.resolve(__dirname, '../dist/index.js'), options: withOptions }]; -} - -/** - * - * - * @param {string} exampleName - * @returns {Object|Array} - Returns an object or array of objects representing the webpack configuration options - */ -function getExampleConfig(exampleName) { - return require(`../examples/${exampleName}/webpack.config.js`); -} - -/** - * - * - * @param {string} exampleName - name of example inside of examples folder - * @returns - */ -async function runWebpackExampleInMemory(exampleName) { - const webpackConfig = getExampleConfig(exampleName); - const compiler = webpack(webpackConfig); - - compiler.outputFileSystem = fs; - - const result = await new Promise((resolve, reject) => { - compiler.run((err, stats) => { - if(err) console.error(error) - - const { compilation } = stats - const { errors, warnings, assets, entrypoints, chunks, modules } = compilation; - const statsJson = stats.toJson(); - - resolve({ - assets, - entrypoints, - errors, - warnings, - stats, - chunks, - modules, - statsJson, - }); - }) - }) - - return result -} - -export { getExampleConfig, runWebpackExampleInMemory, fs, getFixtureResource, getLoader, getFixture }; diff --git a/packages/generators/src/addon-generator.ts b/packages/generators/src/addon-generator.ts deleted file mode 100644 index 5bea861ba72..00000000000 --- a/packages/generators/src/addon-generator.ts +++ /dev/null @@ -1,144 +0,0 @@ -import fs from "fs"; -import path from "path"; -import Generator from "yeoman-generator"; - -import { CustomGenerator } from "./custom-generator"; -import type { CustomGeneratorOptions, BaseCustomGeneratorOptions } from "./types/index"; -import { getInstaller, getTemplate } from "./utils/helpers"; - -Object.assign(Generator.prototype, require("yeoman-generator/lib/actions/install")); - -// Helper to get the template-directory content -const getFiles = (dir: string): string[] => { - return fs.readdirSync(dir).reduce((list, file) => { - const filePath = path.join(dir, file); - const isDir = fs.statSync(filePath).isDirectory(); - - return list.concat(isDir ? getFiles(filePath) : filePath); - }, [] as string[]); -}; - -abstract class AddonGenerator< - T extends BaseCustomGeneratorOptions = BaseCustomGeneratorOptions, - Z extends CustomGeneratorOptions = CustomGeneratorOptions, -> extends CustomGenerator { - public props: Generator.Question | undefined; - public resolvedTemplatePath: string | undefined; -} - -export interface AddonGeneratorConstructor< - T extends BaseCustomGeneratorOptions = BaseCustomGeneratorOptions, - Z extends CustomGeneratorOptions = CustomGeneratorOptions, -> { - new (args: string | string[], opts: Z): AddonGenerator; -} - -const addonGenerator = < - T extends BaseCustomGeneratorOptions = BaseCustomGeneratorOptions, - Z extends CustomGeneratorOptions = CustomGeneratorOptions, ->( - prompts: Generator.Questions, - templateDir: string, - templateFn: (instance: CustomGenerator & AddonGenerator) => Record, -): AddonGeneratorConstructor => { - return class extends CustomGenerator { - public resolvedTemplatePath: string | undefined; - public props: Generator.Question | undefined; - - // eslint-disable-next-line @typescript-eslint/no-explicit-any - public constructor(args: string | string[], opts: any) { - super(args, opts); - - this.supportedTemplates = fs.readdirSync(templateDir); - } - - public async prompting(): Promise { - this.template = await getTemplate.call(this); - this.resolvedTemplatePath = path.join(templateDir, this.template); - this.props = await this.prompt(prompts); - this.packageManager = await getInstaller.call(this); - } - - public default(): void { - const name = (this.props as Generator.Question).name as string; - const currentDirName = path.basename(this.destinationPath()); - - if (currentDirName !== name) { - this.log(` - Your project must be inside a folder named ${name} - I will create this folder for you. - `); - - const pathToProjectDir: string = this.destinationPath(name); - - try { - fs.mkdirSync(pathToProjectDir, { recursive: true }); - } catch (error) { - this.cli.logger.error("Failed to create directory"); - this.cli.logger.error(error); - } - - this.destinationRoot(pathToProjectDir); - } - } - - public writing(): void { - const name = (this.props as Generator.Question).name as string; - const resolvedTemplatePath = this.resolvedTemplatePath as string; - const packageJsonTemplatePath = "../addon-template/package.json.js"; - - this.fs.extendJSON( - this.destinationPath("package.json"), - require(packageJsonTemplatePath)(name), - ); - - let files = []; - - try { - // An array of file paths (relative to `./templates`) of files to be copied to the generated project - files = getFiles(resolvedTemplatePath); - } catch (error) { - this.cli.logger.error(`Failed to generate starter template.\n ${error}`); - - process.exit(2); - } - - // Template file paths should be of the form `path/to/_file.js.tpl` - const copyTemplateFiles = files.filter((filePath: string) => - path.basename(filePath).startsWith("_"), - ); - - // File paths should be of the form `path/to/file.js.tpl` - const copyFiles = files.filter((filePath: string) => !copyTemplateFiles.includes(filePath)); - - copyFiles.forEach((filePath: string) => { - // `absolute-path/to/file.js.tpl` -> `destination-path/file.js` - const destFilePath = path.relative(resolvedTemplatePath, filePath).replace(".tpl", ""); - - this.fs.copyTpl(filePath, this.destinationPath(destFilePath)); - }); - - copyTemplateFiles.forEach((filePath: string) => { - // `absolute-path/to/_file.js.tpl` -> `destination-path/file.js` - const destFilePath = path - .relative(resolvedTemplatePath, filePath) - .replace("_", "") - .replace(".tpl", ""); - - this.fs.copyTpl(filePath, this.destinationPath(destFilePath), templateFn(this)); - }); - } - - public install(): void { - const packageManager = this.packageManager as string; - const opts: { - dev?: boolean; - "save-dev"?: boolean; - } = this.packageManager === "yarn" ? { dev: true } : { "save-dev": true }; - - this.scheduleInstallTask(packageManager, ["webpack-defaults"], opts); - } - }; -}; - -export default addonGenerator; diff --git a/packages/generators/src/custom-generator.ts b/packages/generators/src/custom-generator.ts deleted file mode 100644 index 68c8b145939..00000000000 --- a/packages/generators/src/custom-generator.ts +++ /dev/null @@ -1,33 +0,0 @@ -import Generator from "yeoman-generator"; -import { type IWebpackCLI } from "webpack-cli"; -import path from "path"; -import { BaseCustomGeneratorOptions, CustomGeneratorOptions } from "./types/index"; - -export class CustomGenerator< - T extends BaseCustomGeneratorOptions = BaseCustomGeneratorOptions, - Z extends CustomGeneratorOptions = CustomGeneratorOptions, -> extends Generator { - public cli: IWebpackCLI; - public template: string; - public dependencies: string[]; - public force: boolean; - public answers: Record; - public generationPath: string; - public supportedTemplates: string[]; - public packageManager: string | undefined; - - public constructor(args: string | string[], opts: Z) { - super(args, opts); - - this.cli = opts.cli; - this.dependencies = []; - this.answers = {}; - this.supportedTemplates = []; - - const { options } = opts; - - this.template = options.template; - this.force = typeof options.force !== "undefined" ? options.force : false; - this.generationPath = path.resolve(process.cwd(), options.generationPath); - } -} diff --git a/packages/generators/src/handlers.ts b/packages/generators/src/handlers.ts deleted file mode 100644 index ca6e7f8810f..00000000000 --- a/packages/generators/src/handlers.ts +++ /dev/null @@ -1,7 +0,0 @@ -import * as defaultHandler from "./handlers/default"; -import * as reactHandler from "./handlers/react"; - -export default { - default: defaultHandler, - react: reactHandler, -}; diff --git a/packages/generators/src/handlers/default.ts b/packages/generators/src/handlers/default.ts deleted file mode 100644 index 65ae864734e..00000000000 --- a/packages/generators/src/handlers/default.ts +++ /dev/null @@ -1,242 +0,0 @@ -import path from "path"; -import type { CustomGenerator } from "../custom-generator"; -import type * as QuestionAPI from "../utils/scaffold-utils"; - -const templatePath = path.resolve(__dirname, "../../init-template/default"); -const resolveFile = (file: string): string => { - return path.resolve(templatePath, file); -}; - -export async function questions( - self: CustomGenerator, - Question: typeof QuestionAPI, - config: Record = { - langType: {}, - devServer: {}, - htmlWebpackPlugin: {}, - workboxWebpackPlugin: {}, - cssType: {}, - isCSS: {}, - isPostCSS: {}, - extractPlugin: {}, - }, -): Promise { - // Handle JS language solutions - const { langType } = await Question.List( - self, - "langType", - "Which of the following JS solutions do you want to use?", - [config.langType.required ? "" : "none", "ES6", "Typescript"].filter( - (option) => option.length > 0, - ), - config.langType.required ? "ES6" : "none", - self.force || config.langType.skip, - ); - - switch (langType) { - case "ES6": - self.dependencies.push("babel-loader", "@babel/core", "@babel/preset-env"); - break; - case "Typescript": - self.dependencies.push("typescript", "ts-loader"); - break; - } - - // Configure devServer configuration - const { devServer } = await Question.Confirm( - self, - "devServer", - "Do you want to use webpack-dev-server?", - true, - self.force || config.devServer.skip, - ); - if (devServer) { - self.dependencies.push("webpack-dev-server"); - } - - // Handle addition of html-webpack-plugin - const { htmlWebpackPlugin } = await Question.Confirm( - self, - "htmlWebpackPlugin", - "Do you want to simplify the creation of HTML files for your bundle?", - true, - self.force || config.htmlWebpackPlugin.skip, - ); - if (htmlWebpackPlugin) { - self.dependencies.push("html-webpack-plugin", "html-loader"); - } - - // Handle addition of workbox-webpack-plugin - const { workboxWebpackPlugin } = await Question.Confirm( - self, - "workboxWebpackPlugin", - "Do you want to add PWA support?", - true, - self.force || config.workboxWebpackPlugin.skip, - ); - if (workboxWebpackPlugin) { - self.dependencies.push("workbox-webpack-plugin"); - } - - // Store all answers for generation - self.answers = { - ...self.answers, - langType, - devServer, - htmlWebpackPlugin, - workboxWebpackPlugin, - }; - - // Handle CSS solutions - const { cssType } = await Question.List( - self, - "cssType", - "Which of the following CSS solutions do you want to use?", - [config.cssType.required ? "" : "none", "CSS only", "SASS", "LESS", "Stylus"].filter( - (option) => option.length > 0, - ), - config.cssType.required ? "CSS only" : "none", - self.force || config.cssType.skip, - ); - - if (cssType == "none") { - self.answers = { - ...self.answers, - cssType, - isCSS: false, - isPostCSS: false, - extractPlugin: "No", - }; - return; - } - - const { isCSS } = - cssType != "CSS only" - ? await Question.Confirm( - self, - "isCSS", - `Will you be using CSS styles along with ${cssType} in your project?`, - true, - self.force, - ) - : { isCSS: true }; - - const { isPostCSS } = await Question.Confirm( - self, - "isPostCSS", - "Will you be using PostCSS in your project?", - cssType == "CSS only", - self.force, - ); - - const { extractPlugin } = await Question.List( - self, - "extractPlugin", - "Do you want to extract CSS for every file?", - ["No", "Only for Production", "Yes"], - "No", - self.force, - ); - - switch (cssType) { - case "SASS": - self.dependencies.push("sass-loader", "sass"); - break; - case "LESS": - self.dependencies.push("less-loader", "less"); - break; - case "Stylus": - self.dependencies.push("stylus-loader", "stylus"); - break; - } - - if (cssType !== "none") { - self.dependencies.push("style-loader", "css-loader"); - } - - if (isPostCSS) { - self.dependencies.push("postcss-loader", "postcss", "autoprefixer"); - } - - if (extractPlugin !== "No") { - self.dependencies.push("mini-css-extract-plugin"); - } - - self.answers = { - ...self.answers, - cssType, - isCSS, - isPostCSS, - extractPlugin, - }; -} - -/** - * Handles generation of project files - * @param self Generator values - */ -export function generate(self: CustomGenerator): void { - const destPkgJson = require(resolveFile("package.json.js"))(self.answers.devServer); - const sourcePkgJsonPath = self.destinationPath("package.json"); - - try { - const sourcePkgJson = require(sourcePkgJsonPath); - - // Make sure that we do not override set metadata - if (sourcePkgJson.name) { - delete destPkgJson.name; - } - if (sourcePkgJson.description) { - delete destPkgJson.description; - } - if (sourcePkgJson.version) { - delete destPkgJson.version; - } - } catch (_err) { - // Ignore if `package.json` doesn't exist - } - - self.fs.extendJSON(sourcePkgJsonPath, destPkgJson); - - // Generate entry file - let entry = "./src/index."; - - if (self.answers.langType == "Typescript") { - entry += "ts"; - } else { - entry += "js"; - } - - self.fs.copyTpl(resolveFile("index.js"), self.destinationPath(entry)); - - // Generate README - self.fs.copyTpl(resolveFile("README.md"), self.destinationPath("README.md"), {}); - - // Generate HTML file - self.fs.copyTpl( - resolveFile("template.html.tpl"), - self.destinationPath("index.html"), - self.answers, - ); - - // Generate webpack configuration - self.fs.copyTpl(resolveFile("webpack.configjs.tpl"), self.destinationPath("webpack.config.js"), { - ...self.answers, - entry, - }); - - // Generate JS language essentials - switch (self.answers.langType) { - case "ES6": - self.fs.copyTpl(resolveFile(".babelrc"), self.destinationPath(".babelrc")); - break; - case "Typescript": - self.fs.copyTpl(resolveFile("tsconfig.json"), self.destinationPath("tsconfig.json")); - break; - } - - // Generate postcss configuration - if (self.answers.isPostCSS) { - self.fs.copyTpl(resolveFile("postcss.config.js"), self.destinationPath("postcss.config.js")); - } -} diff --git a/packages/generators/src/handlers/react.ts b/packages/generators/src/handlers/react.ts deleted file mode 100644 index 6dab1cfe4ab..00000000000 --- a/packages/generators/src/handlers/react.ts +++ /dev/null @@ -1,87 +0,0 @@ -import path from "path"; -import { questions as defaultQuestions } from "./default"; -import type { CustomGenerator } from "../custom-generator"; -import type * as QuestionAPI from "../utils/scaffold-utils"; - -const templatePath = path.resolve(__dirname, "../../init-template/react"); -const resolveFile = (file: string): string => { - return path.resolve(templatePath, file); -}; - -/** - * Asks questions including default ones to the user used to modify generation - * @param self Generator values - * @param Question Contains questions - */ - -export async function questions( - self: CustomGenerator, - Question: typeof QuestionAPI, -): Promise { - await defaultQuestions(self, Question, { - langType: { required: true }, - devServer: { skip: true }, - htmlWebpackPlugin: { skip: true }, - workboxWebpackPlugin: {}, - cssType: {}, - isCSS: {}, - isPostCSS: {}, - extractPlugin: {}, - }); - - // Add react dependencies - self.dependencies.push("react@18", "react-dom@18"); - - // Add webpack-dev-server always - self.dependencies.push("webpack-dev-server"); - - // Add html-webpack-plugin always - self.dependencies.push("html-webpack-plugin"); - - switch (self.answers.langType) { - case "Typescript": - self.dependencies.push("@types/react", "@types/react-dom"); - break; - case "ES6": - self.dependencies.push("@babel/preset-react"); - break; - } -} - -/** - * Handles generation of project files - * @param self Generator values - */ -export function generate(self: CustomGenerator): void { - const files = ["./index.html", "./src/assets/webpack.png", "webpack.config.js", "package.json"]; - - switch (self.answers.langType) { - case "Typescript": - self.answers.entry = "./src/index.tsx"; - files.push("tsconfig.json", "index.d.ts", "./src/App.tsx", self.answers.entry as string); - break; - case "ES6": - self.answers.entry = "./src/index.js"; - files.push("./src/App.js", self.answers.entry as string); - break; - } - - switch (self.answers.cssType) { - case "CSS only": - files.push("./src/styles/global.css"); - break; - case "SASS": - files.push("./src/styles/global.scss"); - break; - case "LESS": - files.push("./src/styles/global.less"); - break; - case "Stylus": - files.push("./src/styles/global.styl"); - break; - } - - for (const file of files) { - self.fs.copyTpl(resolveFile(file + ".tpl"), self.destinationPath(file as string), self.answers); - } -} diff --git a/packages/generators/src/index.ts b/packages/generators/src/index.ts deleted file mode 100644 index bcd7f7e8245..00000000000 --- a/packages/generators/src/index.ts +++ /dev/null @@ -1,146 +0,0 @@ -import yeoman from "yeoman-environment"; -import loaderGenerator from "./loader-generator"; -import pluginGenerator from "./plugin-generator"; -import addonGenerator from "./addon-generator"; -import initGenerator from "./init-generator"; -import type { InitOptions, LoaderOptions, PluginOptions } from "./types/index"; -import type { IWebpackCLI } from "webpack-cli"; - -class GeneratorsCommand { - async apply(cli: IWebpackCLI): Promise { - await cli.makeCommand( - { - name: "init [generation-path]", - alias: ["create", "new", "c", "n"], - description: "Initialize a new webpack project.", - argsDescription: { - "generation-path": "Path to the installation directory, e.g. ./projectName", - }, - usage: "[generation-path] [options]", - pkg: "@webpack-cli/generators", - }, - [ - { - name: "template", - alias: "t", - configs: [{ type: "string" }], - description: "Type of template", - defaultValue: "default", - helpLevel: "minimum", - }, - { - name: "force", - alias: "f", - configs: [ - { - type: "enum", - values: [true], - }, - ], - description: "Generate without questions (ideally) using default answers", - helpLevel: "minimum", - }, - ], - async (generationPath: string, options: InitOptions) => { - const cwd = generationPath || "."; - const env = yeoman.createEnv([], { cwd }); - const generatorName = "webpack-init-generator"; - - env.registerStub(initGenerator, generatorName); - - env.run(generatorName, { cli, options: { ...options, generationPath: cwd } }).then( - () => { - cli.logger.success("Project has been initialised with webpack!"); - }, - (error) => { - cli.logger.error(`Failed to initialize the project.\n ${error}`); - process.exit(2); - }, - ); - }, - ); - - await cli.makeCommand( - { - name: "loader [output-path]", - alias: "l", - description: "Scaffold a loader.", - argsDescription: { - "output-path": "Path to the output directory, e.g. ./loaderName", - }, - usage: "[output-path] [options]", - pkg: "@webpack-cli/generators", - }, - [ - { - name: "template", - alias: "t", - configs: [{ type: "string" }], - description: "Type of template", - defaultValue: "default", - helpLevel: "minimum", - }, - ], - async (outputPath: string, options: LoaderOptions) => { - const cwd = outputPath || "."; - const env = yeoman.createEnv([], { cwd }); - const generatorName = "webpack-loader-generator"; - - env.registerStub(loaderGenerator, generatorName); - - env.run(generatorName, { cli, options: { ...options, generationPath: cwd } }).then( - () => { - cli.logger.success("Loader template has been successfully scaffolded."); - }, - (error) => { - cli.logger.error(`Failed to initialize the loader template.\n ${error}`); - process.exit(2); - }, - ); - }, - ); - - await cli.makeCommand( - { - name: "plugin [output-path]", - alias: "p", - description: "Scaffold a plugin.", - argsDescription: { - "output-path": "Path to the output directory, e.g. ./pluginName", - }, - usage: "[output-path] [options]", - pkg: "@webpack-cli/generators", - }, - [ - { - name: "template", - alias: "t", - configs: [{ type: "string" }], - description: "Type of template", - defaultValue: "default", - helpLevel: "minimum", - }, - ], - async (outputPath: string, options: PluginOptions) => { - const cwd = outputPath || "."; - const env = yeoman.createEnv([], { cwd }); - const generatorName = "webpack-plugin-generator"; - - env.registerStub(pluginGenerator, generatorName); - - env.run(generatorName, { cli, options: { ...options, generationPath: cwd } }).then( - () => { - cli.logger.success("Plugin template has been successfully scaffolded."); - }, - (error) => { - cli.logger.error(`Failed to initialize the plugin template.\n ${error}`); - process.exit(2); - }, - ); - }, - ); - } -} - -export default GeneratorsCommand; -export { addonGenerator, initGenerator }; diff --git a/packages/generators/src/init-generator.ts b/packages/generators/src/init-generator.ts deleted file mode 100644 index 739aea26368..00000000000 --- a/packages/generators/src/init-generator.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { readFileSync, writeFileSync } from "fs"; - -import { CustomGenerator } from "./custom-generator"; -import { getInstaller, getTemplate } from "./utils/helpers"; -import * as Question from "./utils/scaffold-utils"; -import handlers from "./handlers"; - -import { type InitGeneratorOptions, type CustomGeneratorOptions } from "./types/index"; - -export default class InitGenerator< - T extends InitGeneratorOptions = InitGeneratorOptions, - Z extends CustomGeneratorOptions = CustomGeneratorOptions, -> extends CustomGenerator { - public configurationPath: string | undefined; - - public constructor(args: string | string[], opts: Z) { - super(args, opts); - - this.dependencies = ["webpack", "webpack-cli"]; - this.supportedTemplates = Object.keys(handlers); - } - - public async prompting(): Promise { - this.template = await getTemplate.call(this); - - await handlers[this.template as keyof typeof handlers].questions(this, Question); - - // Handle installation of prettier - try { - // eslint-disable-next-line n/no-extraneous-require - require.resolve("prettier"); - } catch (_err) { - const { installPrettier } = await Question.Confirm( - this, - "installPrettier", - "Do you like to install prettier to format generated configuration?", - true, - this.force, - ); - - if (installPrettier) { - this.dependencies.push("prettier"); - } - } - } - - public async installPlugins(): Promise { - this.packageManager = await getInstaller.call(this); - - const opts: { - dev?: boolean; - "save-dev"?: boolean; - } = this.packageManager === "yarn" ? { dev: true } : { "save-dev": true }; - - this.scheduleInstallTask(this.packageManager, this.dependencies, opts, { - cwd: this.generationPath, - }); - } - - public writing(): void { - this.cli.logger.log(`${this.cli.colors.blue("ℹ INFO ")} Initialising project...`); - this.configurationPath = this.destinationPath("webpack.config.js"); - - handlers[this.template as keyof typeof handlers].generate(this); - } - - public async end(): Promise { - // Prettify configuration file if possible - try { - // eslint-disable-next-line n/no-extraneous-require - const prettier = require("prettier"); - const source = readFileSync(this.configurationPath as string, { encoding: "utf8" }); - const formattedSource = await prettier.format(source, { parser: "babel" }); - - writeFileSync(this.configurationPath as string, formattedSource); - } catch (_err) { - this.cli.logger.log( - `${this.cli.colors.yellow( - `⚠ Generated configuration may not be properly formatted as prettier is not installed.`, - )}`, - ); - - return; - } - } -} diff --git a/packages/generators/src/loader-generator.ts b/packages/generators/src/loader-generator.ts deleted file mode 100644 index 24df97828d9..00000000000 --- a/packages/generators/src/loader-generator.ts +++ /dev/null @@ -1,42 +0,0 @@ -import path from "path"; -import addonGenerator from "./addon-generator"; -import { toKebabCase } from "./utils/helpers"; - -import type { LoaderGeneratorOptions } from "./types/index"; -import type Generator from "yeoman-generator"; - -/** - * Formats a string into webpack loader format - * (eg: 'style-loader', 'raw-loader') - * - * @param {string} name A loader name to be formatted - * @returns {string} The formatted string - */ -export function makeLoaderName(name: string): string { - name = toKebabCase(name); - - if (!/loader$/.test(name)) { - name += "-loader"; - } - - return name; -} - -export const LoaderGenerator = addonGenerator( - [ - { - default: "my-loader", - filter: makeLoaderName, - message: "Loader name", - name: "name", - type: "input", - validate: (str: string): boolean => str.length > 0, - }, - ], - path.resolve(__dirname, "../loader-template"), - (gen): Record => ({ - name: (gen.props as Generator.Question).name, - }), -); - -export default LoaderGenerator; diff --git a/packages/generators/src/plugin-generator.ts b/packages/generators/src/plugin-generator.ts deleted file mode 100644 index 3f438e39723..00000000000 --- a/packages/generators/src/plugin-generator.ts +++ /dev/null @@ -1,24 +0,0 @@ -import path from "path"; -import addonGenerator from "./addon-generator"; -import { toKebabCase, toUpperCamelCase } from "./utils/helpers"; -import type { PluginGeneratorOptions } from "./types/index"; -import type Generator from "yeoman-generator"; - -export const PluginGenerator = addonGenerator( - [ - { - default: "my-webpack-plugin", - filter: toKebabCase, - message: "Plugin name", - name: "name", - type: "input", - validate: (str: string): boolean => str.length > 0, - }, - ], - path.resolve(__dirname, "../plugin-template"), - (gen): Record => ({ - name: toUpperCamelCase((gen.props as Generator.Question).name as string), - }), -); - -export default PluginGenerator; diff --git a/packages/generators/src/types/index.ts b/packages/generators/src/types/index.ts deleted file mode 100644 index abbd8118c59..00000000000 --- a/packages/generators/src/types/index.ts +++ /dev/null @@ -1,21 +0,0 @@ -import type Generator from "yeoman-generator"; -import { type IWebpackCLI } from "webpack-cli"; - -export type InitOptions = { template: string; force?: boolean }; -export type LoaderOptions = { template: string }; -export type PluginOptions = { template: string }; - -export type InitGeneratorOptions = { generationPath: string } & InitOptions; -export type LoaderGeneratorOptions = { generationPath: string } & LoaderOptions; -export type PluginGeneratorOptions = { generationPath: string } & PluginOptions; - -export type BaseCustomGeneratorOptions = { - template: string; - generationPath: string; - force?: boolean; -}; -export type CustomGeneratorOptions = - Generator.GeneratorOptions & { - cli: IWebpackCLI; - options: T; - }; diff --git a/packages/generators/src/update-generator.ts b/packages/generators/src/update-generator.ts deleted file mode 100644 index 83e32c6dbda..00000000000 --- a/packages/generators/src/update-generator.ts +++ /dev/null @@ -1,3 +0,0 @@ -import Generator from "yeoman-generator"; - -export default class UpdateGenerator extends Generator {} diff --git a/packages/generators/src/utils/helpers.ts b/packages/generators/src/utils/helpers.ts deleted file mode 100644 index 99e08bff55c..00000000000 --- a/packages/generators/src/utils/helpers.ts +++ /dev/null @@ -1,63 +0,0 @@ -import type { CustomGenerator } from "../custom-generator"; -import { List } from "./scaffold-utils"; - -const regex = /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g; - -/** - * Convert str to kebab-case - * @param str input string - * @returns output string - */ -export function toKebabCase(str: string): string { - return (str.match(regex) as string[]).join("-").toLowerCase(); -} - -/** - * Convert str to UpperCamelCase - * @param str import string - * @returns {string} output string - */ -export function toUpperCamelCase(str: string): string { - return (str.match(regex) as string[]) - .map((x) => x.slice(0, 1).toUpperCase() + x.slice(1).toLowerCase()) - .join(""); -} - -export async function getInstaller(this: CustomGenerator): Promise { - const installers = this.cli.getAvailablePackageManagers(); - - if (installers.length === 1) { - return installers[0]; - } - - // Prompt for the package manager of choice - const defaultPackager = this.cli.getDefaultPackageManager(); - const { packager } = await List( - this, - "packager", - "Pick a package manager:", - installers, - defaultPackager as string, - this.force, - ); - return packager; -} - -export async function getTemplate(this: CustomGenerator): Promise { - if (this.supportedTemplates.includes(this.template)) { - return this.template; - } - - this.cli.logger.warn(`⚠ ${this.template} is not a valid template, please select one from below`); - - const { selectedTemplate } = await List( - this, - "selectedTemplate", - "Select a valid template from below:", - this.supportedTemplates, - "default", - false, - ); - - return selectedTemplate; -} diff --git a/packages/generators/src/utils/scaffold-utils.ts b/packages/generators/src/utils/scaffold-utils.ts deleted file mode 100644 index 4e58ffd2ba5..00000000000 --- a/packages/generators/src/utils/scaffold-utils.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type Generator from "yeoman-generator"; - -type CustomGeneratorStringPrompt = { [x: string]: string } | Promise<{ [x: string]: string }>; -type CustomGeneratorBoolPrompt = { [x: string]: boolean } | Promise<{ [x: string]: boolean }>; - -export function List( - self: Generator, - name: string, - message: string, - choices: string[], - defaultChoice: string, - skip = false, -): CustomGeneratorStringPrompt { - if (skip) { - return { [name]: defaultChoice }; - } - - return self.prompt([{ choices, message, name, type: "list", default: defaultChoice }]); -} - -export function Input( - self: Generator, - name: string, - message: string, - defaultChoice: string, - skip = false, -): CustomGeneratorStringPrompt { - if (skip) { - return { [name]: defaultChoice }; - } - - return self.prompt([{ default: defaultChoice, message, name, type: "input" }]); -} - -export function Confirm( - self: Generator, - name: string, - message: string, - defaultChoice = true, - skip = false, -): CustomGeneratorBoolPrompt { - if (skip) { - return { [name]: defaultChoice }; - } - - return self.prompt([{ default: defaultChoice, message, name, type: "confirm" }]); -} diff --git a/packages/generators/tsconfig.json b/packages/generators/tsconfig.json deleted file mode 100644 index 991ba583366..00000000000 --- a/packages/generators/tsconfig.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "exclude": ["src/utils/__tests__"], - "compilerOptions": { - "outDir": "lib", - "rootDir": "src" - }, - "include": ["src"], - "references": [ - { - "path": "../webpack-cli" - } - ] -} diff --git a/packages/webpack-cli/package.json b/packages/webpack-cli/package.json index 9d5ed29f1fb..69a93981447 100644 --- a/packages/webpack-cli/package.json +++ b/packages/webpack-cli/package.json @@ -55,9 +55,6 @@ "webpack": "5.x.x" }, "peerDependenciesMeta": { - "@webpack-cli/generators": { - "optional": true - }, "webpack-bundle-analyzer": { "optional": true }, diff --git a/packages/webpack-cli/src/webpack-cli.ts b/packages/webpack-cli/src/webpack-cli.ts index 312d4bd98cf..e25c6cc4d2a 100644 --- a/packages/webpack-cli/src/webpack-cli.ts +++ b/packages/webpack-cli/src/webpack-cli.ts @@ -1138,21 +1138,6 @@ class WebpackCLI implements IWebpackCLI { alias: "i", pkg: "@webpack-cli/info", }, - { - name: "init", - alias: ["create", "new", "c", "n"], - pkg: "@webpack-cli/generators", - }, - { - name: "loader", - alias: "l", - pkg: "@webpack-cli/generators", - }, - { - name: "plugin", - alias: "p", - pkg: "@webpack-cli/generators", - }, { name: "configtest [config-path]", alias: "t", diff --git a/smoketests/index.js b/smoketests/index.js index 3f5ec06c8c1..598941ed193 100644 --- a/smoketests/index.js +++ b/smoketests/index.js @@ -2,11 +2,9 @@ const tests = [ require("./missing-packages/webpack-dev-server.test.js"), require("./missing-packages/webpack.test.js"), require("./missing-packages/webpack-bundle-analyzer.test.js"), - require("./missing-command-packages/generator.test.js"), require("./missing-command-packages/serve.test.js"), require("./missing-command-packages/info.test.js"), require("./missing-command-packages/configtest.test.js"), - require("./missing-packages/prettier.test.js"), ]; (async () => { diff --git a/smoketests/missing-command-packages/generator.test.js b/smoketests/missing-command-packages/generator.test.js deleted file mode 100644 index 4c11f97583d..00000000000 --- a/smoketests/missing-command-packages/generator.test.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -const { runTest, runTestWithHelp } = require("../helpers"); - -const packageName = "generators"; -const isSubPackage = true; - -const initTest = () => { - const args = ["init"]; - const logMessage = - "For using this command you need to install: '@webpack-cli/generators' package"; - - return runTest(packageName, args, logMessage, isSubPackage); -}; - -const initTestWithHelp = () => { - const args = ["help", "init"]; - const logMessage = - "For using 'init' command you need to install '@webpack-cli/generators' package"; - - return runTestWithHelp(packageName, args, logMessage, isSubPackage); -}; - -module.exports.run = [initTest, initTestWithHelp]; -module.exports.name = "Missing @webpack-cli/generators"; diff --git a/smoketests/missing-packages/prettier.test.js b/smoketests/missing-packages/prettier.test.js deleted file mode 100644 index 7400fcc193f..00000000000 --- a/smoketests/missing-packages/prettier.test.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; - -const { runTestStdout, runTestStdoutWithInput } = require("../helpers"); -const rimraf = require("rimraf"); -const os = require("os"); -const { resolve } = require("path"); - -const prettierTestWithoutForce = async () => { - const packageName = "prettier"; - const rootPath = resolve(os.tmpdir(), "./test-assets-2"); - const cliArgs = ["init", rootPath]; - const inputs = { - "Which of the following JS solutions do you want to use?": `\n`, - "Do you want to use webpack-dev-server?": `n\n`, - "Do you want to simplify the creation of HTML files for your bundle?": `n\n`, - "Do you want to add PWA support?": `n\n`, - "Which of the following CSS solutions do you want to use?": "\n", - "Do you like to install prettier to format generated configuration?": `n\n`, - "Pick a package manager": "\n", - }; - const logMessage = - "Generated configuration may not be properly formatted as prettier is not installed"; - const status = await runTestStdoutWithInput({ - packageName, - cliArgs, - inputs, - logMessage, - }); - rimraf.sync(rootPath); - return status; -}; - -const prettierTestWithNoAnswer = async () => { - const packageName = "prettier"; - const rootPath = resolve(os.tmpdir(), "./test-assets-2"); - const cliArgs = ["init", rootPath, "--force"]; - const logMessage = - "Generated configuration may not be properly formatted as prettier is not installed"; - const status = await runTestStdout({ - packageName, - cliArgs, - logMessage, - }); - rimraf.sync(rootPath); - return status; -}; - -module.exports.run = [prettierTestWithoutForce, prettierTestWithNoAnswer]; -module.exports.name = "Missing prettier"; diff --git a/test/api/generators/helpers.test.js b/test/api/generators/helpers.test.js deleted file mode 100644 index ed921c836b1..00000000000 --- a/test/api/generators/helpers.test.js +++ /dev/null @@ -1,99 +0,0 @@ -const path = require("path"); -const CLI = require("../../../packages/webpack-cli/lib/webpack-cli"); - -const utilsDirectory = { - cli: "../../../packages/webpack-cli/lib/utils", - generators: "../../../packages/generators/src/utils", -}; - -jest.mock(path.join(utilsDirectory.generators, "scaffold-utils"), () => ({ - List: jest.fn(), -})); - -const { getInstaller, getTemplate, toKebabCase, toUpperCamelCase } = require( - path.join(utilsDirectory.generators, "helpers"), -); -const { List } = require(path.join(utilsDirectory.generators, "scaffold-utils")); - -describe("helpers", () => { - let cli; - let getDefaultPackageManagerSpy; - let context; - - beforeEach(() => { - cli = new CLI(); - context = { - prompt: () => {}, - supportedTemplates: ["default"], - cli: cli, - }; - getDefaultPackageManagerSpy = jest.spyOn(cli, "getDefaultPackageManager"); - }); - - afterEach(() => { - jest.clearAllMocks(); - - getDefaultPackageManagerSpy.mockRestore(); - }); - - it("toKebabCase() returns kebab case", () => { - const kebabValue = toKebabCase("HtmlMinimizerPlugin"); - - expect(kebabValue).toBe("html-minimizer-plugin"); - }); - - it("toUpperCamelCase() returns camel case strings", () => { - const camelCaseString = toUpperCamelCase("html-minimizer-webpack-plugin"); - - expect(camelCaseString).toBe("HtmlMinimizerWebpackPlugin"); - }); - - it("getInstaller() returns the available installer", async () => { - // Multiple installers are not available - getDefaultPackageManagerSpy.mockReturnValue(["npm"]); - - // User chose "pnpm" - List.mockReturnValue({ packager: "npm" }); - - // Invoke the helper function - const installer = await getInstaller.call(context); - - expect(installer).toBe("npm"); - }); - - it("getInstaller() invokes a List prompt if multiple installers are available", async () => { - // Multiple installers are available - getDefaultPackageManagerSpy.mockReturnValue(["npm", "yarn", "pnpm"]); - - // User chose "pnpm" - List.mockReturnValue({ packager: "pnpm" }); - - // Invoke the helper function - const installer = await getInstaller.call(context); - expect(installer).toBe("pnpm"); - }); - - it("getTemplate() returns with the valid template", async () => { - context.template = "default"; - - // Invoke the helper function - const template = await getTemplate.call(context); - - expect(template).toBe("default"); - }); - - it("getTemplate() invokes a List prompt on supplying an invalid template", async () => { - context.template = "unknown"; - - // User chose "default" - List.mockReturnValue({ selectedTemplate: "default" }); - - const { logger } = cli; - const loggerMock = jest.spyOn(logger, "warn").mockImplementation(() => {}); - // Invoke the helper function` - const template = await getTemplate.call(context); - - expect(template).toBe("default"); - expect(loggerMock).toHaveBeenCalled(); - }); -}); diff --git a/test/api/generators/scaffold-utils.test.js b/test/api/generators/scaffold-utils.test.js deleted file mode 100755 index ebfbe90c526..00000000000 --- a/test/api/generators/scaffold-utils.test.js +++ /dev/null @@ -1,65 +0,0 @@ -const { - Confirm, - List, - Input, - // eslint-disable-next-line n/no-missing-require -} = require("../../../packages/generators/src/utils/scaffold-utils"); - -describe("utils", () => { - let mockSelf; - - beforeEach(() => { - mockSelf = { - prompt: (arg) => { - return arg[0]; - }, - }; - }); - describe("Inquirer", () => { - it("should emulate a prompt for List", () => { - expect(List(mockSelf, "entry", "does it work?", ["Yes", "Maybe"], "Yes")).toEqual({ - choices: ["Yes", "Maybe"], - type: "list", - name: "entry", - message: "does it work?", - default: "Yes", - }); - }); - - it("should make default value for a List", () => { - expect(List(mockSelf, "entry", "does it work?", ["Yes", "Maybe"], "Yes", true)).toEqual({ - entry: "Yes", - }); - }); - - it("should emulate a prompt for list input", () => { - expect(Input(mockSelf, "plugins", "what is your plugin?", "openJSF")).toEqual({ - type: "input", - name: "plugins", - message: "what is your plugin?", - default: "openJSF", - }); - }); - - it("should return a default Input object value", () => { - expect(Input(mockSelf, "plugins", "what is your plugin?", "my-plugin", true)).toEqual({ - plugins: "my-plugin", - }); - }); - - it("should emulate a prompt for confirm", () => { - expect(Confirm(mockSelf, "context", "what is your context?")).toEqual({ - name: "context", - default: true, - message: "what is your context?", - type: "confirm", - }); - }); - - it("should make a Confirm object with yes as default", () => { - expect(Confirm(mockSelf, "context", "what is your context?", true, true)).toEqual({ - context: true, - }); - }); - }); -}); diff --git a/test/help/__snapshots__/help.test.js.snap.devServer4.webpack5 b/test/help/__snapshots__/help.test.js.snap.devServer4.webpack5 index 0261ebf1311..c92580463f2 100644 --- a/test/help/__snapshots__/help.test.js.snap.devServer4.webpack5 +++ b/test/help/__snapshots__/help.test.js.snap.devServer4.webpack5 @@ -94,49 +94,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -154,49 +151,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -214,49 +208,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -547,60 +538,6 @@ CLI documentation: https://webpack.js.org/api/cli/. Made with ♥ by the webpack team." `; -exports[`help should show help information for 'c' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'c' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'c' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'c' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - exports[`help should show help information for 'configtest' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; exports[`help should show help information for 'configtest' and respect the "--color" flag using the "--help" option: stdout 1`] = ` @@ -681,60 +618,6 @@ CLI documentation: https://webpack.js.org/api/cli/. Made with ♥ by the webpack team." `; -exports[`help should show help information for 'create' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'create' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'create' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'create' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - exports[`help should show help information for 'i' command using command syntax: stderr 1`] = `""`; exports[`help should show help information for 'i' command using command syntax: stdout 1`] = ` @@ -879,534 +762,6 @@ CLI documentation: https://webpack.js.org/api/cli/. Made with ♥ by the webpack team." `; -exports[`help should show help information for 'init' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'init' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'l' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'l' command using command syntax: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'l' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'l' command using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' command using command syntax: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' command using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'n' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'n' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'n' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'n' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'new' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'new' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'new' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'new' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'p' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'p' command using command syntax: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'p' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'p' command using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' command using command syntax: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' command using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - exports[`help should show help information for 's' command using command syntax: stderr 1`] = `""`; exports[`help should show help information for 's' command using the "--help" option: stderr 1`] = `""`; @@ -1742,49 +1097,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -1802,49 +1154,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -2052,49 +1401,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -2110,49 +1456,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. diff --git a/test/help/__snapshots__/help.test.js.snap.devServer5.webpack5 b/test/help/__snapshots__/help.test.js.snap.devServer5.webpack5 index 0261ebf1311..c92580463f2 100644 --- a/test/help/__snapshots__/help.test.js.snap.devServer5.webpack5 +++ b/test/help/__snapshots__/help.test.js.snap.devServer5.webpack5 @@ -94,49 +94,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -154,49 +151,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -214,49 +208,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -547,60 +538,6 @@ CLI documentation: https://webpack.js.org/api/cli/. Made with ♥ by the webpack team." `; -exports[`help should show help information for 'c' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'c' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'c' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'c' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - exports[`help should show help information for 'configtest' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; exports[`help should show help information for 'configtest' and respect the "--color" flag using the "--help" option: stdout 1`] = ` @@ -681,60 +618,6 @@ CLI documentation: https://webpack.js.org/api/cli/. Made with ♥ by the webpack team." `; -exports[`help should show help information for 'create' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'create' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'create' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'create' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - exports[`help should show help information for 'i' command using command syntax: stderr 1`] = `""`; exports[`help should show help information for 'i' command using command syntax: stdout 1`] = ` @@ -879,534 +762,6 @@ CLI documentation: https://webpack.js.org/api/cli/. Made with ♥ by the webpack team." `; -exports[`help should show help information for 'init' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'init' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'init' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'init' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'l' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'l' command using command syntax: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'l' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'l' command using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' command using command syntax: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'loader' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'loader' command using the "--help" option: stdout 1`] = ` -"Usage: webpack loader|l [output-path] [options] - -Scaffold a loader. - -Arguments: - output-path Path to the output directory, e.g. ./loaderName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'n' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'n' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'n' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'n' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'new' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'new' command using command syntax: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'new' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'new' command using the "--help" option: stdout 1`] = ` -"Usage: webpack init|create|new|c|n [generation-path] [options] - -Initialize a new webpack project. - -Arguments: - generation-path Path to the installation directory, e.g. ./projectName - -Options: - -t, --template Type of template (default: "default") - -f, --force Generate without questions (ideally) using default answers - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'p' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'p' command using command syntax: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'p' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'p' command using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' and respect the "--color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' and respect the "--color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' and respect the "--no-color" flag using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' and respect the "--no-color" flag using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' command using command syntax: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' command using command syntax: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - -exports[`help should show help information for 'plugin' command using the "--help" option: stderr 1`] = `""`; - -exports[`help should show help information for 'plugin' command using the "--help" option: stdout 1`] = ` -"Usage: webpack plugin|p [output-path] [options] - -Scaffold a plugin. - -Arguments: - output-path Path to the output directory, e.g. ./pluginName - -Options: - -t, --template Type of template (default: "default") - -Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. - -To see list of all supported commands and options run 'webpack --help=verbose'. - -Webpack documentation: https://webpack.js.org/. -CLI documentation: https://webpack.js.org/api/cli/. -Made with ♥ by the webpack team." -`; - exports[`help should show help information for 's' command using command syntax: stderr 1`] = `""`; exports[`help should show help information for 's' command using the "--help" option: stderr 1`] = `""`; @@ -1742,49 +1097,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -1802,49 +1154,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -2052,49 +1401,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. @@ -2110,49 +1456,46 @@ Alternative usage to run commands: webpack [command] [options] The build tool for modern web applications. Options: - -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". - --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. - -m, --merge Merge two or more configurations using 'webpack-merge'. - --disable-interpret Disable interpret for loading the config file. - --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". - --node-env Sets process.env.NODE_ENV to the specified value. - --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. - --progress [value] Print compilation progress during build. - -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. - --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. - -e, --extends Path to the configuration to be extended (only works when using webpack-cli). - -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). - --no-devtool Negative 'devtool' option. - --entry A module that is loaded upon startup. Only the last one is exported. - --mode Enable production optimizations or development hints. - --name Name of the configuration. Used when loading multiple configurations. - -o, --output-path The output directory as **absolute path** (required). - --stats [value] Stats options object or preset name. - --no-stats Negative 'stats' option. - -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. - --no-target Negative 'target' option. - -w, --watch Enter watch mode, which rebuilds on file change. - --no-watch Negative 'watch' option. - --watch-options-stdin Stop watching when stdin stream has ended. - --no-watch-options-stdin Negative 'watch-options-stdin' option. + -c, --config Provide path to one or more webpack configuration files to process, e.g. "./webpack.config.js". + --config-name Name(s) of particular configuration(s) to use if configuration file exports an array of multiple configurations. + -m, --merge Merge two or more configurations using 'webpack-merge'. + --disable-interpret Disable interpret for loading the config file. + --env Environment variables passed to the configuration when it is a function, e.g. "myvar" or "myvar=myval". + --node-env Sets process.env.NODE_ENV to the specified value. + --analyze It invokes webpack-bundle-analyzer plugin to get bundle information. + --progress [value] Print compilation progress during build. + -j, --json [pathToJsonFile] Prints result as JSON or store it in a file. + --fail-on-warnings Stop webpack-cli process with non-zero exit code on warnings from webpack. + -e, --extends Path to the configuration to be extended (only works when using webpack-cli). + -d, --devtool A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map). + --no-devtool Negative 'devtool' option. + --entry A module that is loaded upon startup. Only the last one is exported. + --mode Enable production optimizations or development hints. + --name Name of the configuration. Used when loading multiple configurations. + -o, --output-path The output directory as **absolute path** (required). + --stats [value] Stats options object or preset name. + --no-stats Negative 'stats' option. + -t, --target Environment to build for. Environment to build for. An array of environments to build for all of them when possible. + --no-target Negative 'target' option. + -w, --watch Enter watch mode, which rebuilds on file change. + --no-watch Negative 'watch' option. + --watch-options-stdin Stop watching when stdin stream has ended. + --no-watch-options-stdin Negative 'watch-options-stdin' option. Global options: - --color Enable colors on console. - --no-color Disable colors on console. - -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - -h, --help [verbose] Display help for commands and options. + --color Enable colors on console. + --no-color Disable colors on console. + -v, --version Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + -h, --help [verbose] Display help for commands and options. Commands: - build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). - configtest|t [config-path] Validate a webpack configuration. - help|h [command] [option] Display help for commands and options. - info|i [options] Outputs information about your system. - init|create|new|c|n [generation-path] [options] Initialize a new webpack project. - loader|l [output-path] [options] Scaffold a loader. - plugin|p [output-path] [options] Scaffold a plugin. - serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. - version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. - watch|w [entries...] [options] Run webpack and watch for files changes. + build|bundle|b [entries...] [options] Run webpack (default command, can be omitted). + configtest|t [config-path] Validate a webpack configuration. + help|h [command] [option] Display help for commands and options. + info|i [options] Outputs information about your system. + serve|server|s [entries...] [options] Run the webpack dev server and watch for source file changes while serving. + version|v [options] Output the version number of 'webpack', 'webpack-cli' and 'webpack-dev-server' and commands. + watch|w [entries...] [options] Run webpack and watch for files changes. To see list of all supported commands and options run 'webpack --help=verbose'. diff --git a/test/help/help.test.js b/test/help/help.test.js index 6308c46fcf1..36096a2af0b 100644 --- a/test/help/help.test.js +++ b/test/help/help.test.js @@ -74,22 +74,10 @@ describe("help", () => { }); const commands = [ - { - name: "init", - alias: ["create", "new", "c", "n"], - }, { name: "info", alias: "i", }, - { - name: "loader", - alias: "l", - }, - { - name: "plugin", - alias: "p", - }, { name: "configtest", alias: "t", diff --git a/test/init/__snapshots__/init.test.js.snap.webpack5 b/test/init/__snapshots__/init.test.js.snap.webpack5 deleted file mode 100644 index 3a715855875..00000000000 --- a/test/init/__snapshots__/init.test.js.snap.webpack5 +++ /dev/null @@ -1,1333 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`init command recognizes '-f' as an alias for '--force' 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command recognizes '-t' as an alias for '--template' 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should ask question when wrong template is supplied 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should configure WDS as opted 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should configure WDS as opted 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); - -const isProduction = process.env.NODE_ENV === "production"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - devServer: { - open: true, - host: "localhost", - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should configure assets modules by default 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should configure assets modules by default 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); -const HtmlWebpackPlugin = require("html-webpack-plugin"); -const WorkboxWebpackPlugin = require("workbox-webpack-plugin"); - -const isProduction = process.env.NODE_ENV === "production"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - devServer: { - open: true, - host: "localhost", - }, - plugins: [ - new HtmlWebpackPlugin({ - template: "index.html", - }), - - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - { - test: /\\.html$/i, - use: ["html-loader"], - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - - config.plugins.push(new WorkboxWebpackPlugin.GenerateSW()); - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should configure html-webpack-plugin as opted 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should configure html-webpack-plugin as opted 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); -const HtmlWebpackPlugin = require("html-webpack-plugin"); - -const isProduction = process.env.NODE_ENV === "production"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - plugins: [ - new HtmlWebpackPlugin({ - template: "index.html", - }), - - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - { - test: /\\.html$/i, - use: ["html-loader"], - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should configure workbox-webpack-plugin as opted 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should configure workbox-webpack-plugin as opted 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); -const HtmlWebpackPlugin = require("html-webpack-plugin"); -const WorkboxWebpackPlugin = require("workbox-webpack-plugin"); - -const isProduction = process.env.NODE_ENV === "production"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - plugins: [ - new HtmlWebpackPlugin({ - template: "index.html", - }), - - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - { - test: /\\.html$/i, - use: ["html-loader"], - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - - config.plugins.push(new WorkboxWebpackPlugin.GenerateSW()); - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should generate ES6 project correctly 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "@babel/core": "x.x.x", - "@babel/preset-env": "x.x.x", - "babel-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate ES6 project correctly 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); - -const isProduction = process.env.NODE_ENV === "production"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.(js|jsx)$/i, - loader: "babel-loader", - }, - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should generate default project when nothing is passed 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate folders if non existing generation path is given 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate project when generationPath is supplied 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate react template with --force 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "@babel/core": "x.x.x", - "@babel/preset-env": "x.x.x", - "@babel/preset-react": "x.x.x", - "babel-loader": "x.x.x", - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "react": "x.x.x", - "react-dom": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate react template with --force 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); -const HtmlWebpackPlugin = require("html-webpack-plugin"); -const WorkboxWebpackPlugin = require("workbox-webpack-plugin"); - -const isProduction = process.env.NODE_ENV === "production"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - devServer: { - open: true, - host: "localhost", - }, - plugins: [ - new HtmlWebpackPlugin({ - template: "index.html", - }), - - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.?js$/, - exclude: /node_modules/, - use: { - loader: "babel-loader", - options: { - presets: ["@babel/preset-env", "@babel/preset-react"], - }, - }, - }, - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, - resolve: { - alias: { - "@": path.resolve(__dirname, "./src/"), - }, - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - - config.plugins.push(new WorkboxWebpackPlugin.GenerateSW()); - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should generate react template with prompt answers 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate react template with prompt answers 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); -const HtmlWebpackPlugin = require("html-webpack-plugin"); -const WorkboxWebpackPlugin = require("workbox-webpack-plugin"); - -const isProduction = process.env.NODE_ENV === "production"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - devServer: { - open: true, - host: "localhost", - }, - plugins: [ - new HtmlWebpackPlugin({ - template: "index.html", - }), - - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - { - test: /\\.html$/i, - use: ["html-loader"], - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - - config.plugins.push(new WorkboxWebpackPlugin.GenerateSW()); - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should generate typescript project correctly 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "ts-loader": "x.x.x", - "typescript": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should generate typescript project correctly 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); - -const isProduction = process.env.NODE_ENV === "production"; - -const config = { - entry: "./src/index.ts", - output: { - path: path.resolve(__dirname, "dist"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.(ts|tsx)$/i, - loader: "ts-loader", - exclude: ["/node_modules/"], - }, - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, - resolve: { - extensions: [".tsx", ".ts", ".jsx", ".js", "..."], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should use less in project when selected 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "css-loader": "x.x.x", - "less": "x.x.x", - "less-loader": "x.x.x", - "style-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use less in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); - -const isProduction = process.env.NODE_ENV === "production"; - -const stylesHandler = "style-loader"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.less$/i, - use: [stylesHandler, "css-loader", "less-loader"], - }, - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should use mini-css-extract-plugin when selected 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "css-loader": "x.x.x", - "sass": "x.x.x", - "sass-loader": "x.x.x", - "style-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use mini-css-extract-plugin when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); - -const isProduction = process.env.NODE_ENV === "production"; - -const stylesHandler = "style-loader"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.s[ac]ss$/i, - use: [stylesHandler, "css-loader", "sass-loader"], - }, - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should use postcss in project when selected 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "autoprefixer": "x.x.x", - "css-loader": "x.x.x", - "postcss": "x.x.x", - "postcss-loader": "x.x.x", - "style-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use postcss in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); - -const isProduction = process.env.NODE_ENV === "production"; - -const stylesHandler = "style-loader"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.css$/i, - use: [stylesHandler, "css-loader", "postcss-loader"], - }, - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should use sass and css with postcss in project when selected 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "autoprefixer": "x.x.x", - "css-loader": "x.x.x", - "postcss": "x.x.x", - "postcss-loader": "x.x.x", - "sass": "x.x.x", - "sass-loader": "x.x.x", - "style-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use sass and css with postcss in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); - -const isProduction = process.env.NODE_ENV === "production"; - -const stylesHandler = "style-loader"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.s[ac]ss$/i, - use: [stylesHandler, "css-loader", "postcss-loader", "sass-loader"], - }, - { - test: /\\.css$/i, - use: [stylesHandler, "css-loader", "postcss-loader"], - }, - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should use sass in project when selected 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "css-loader": "x.x.x", - "sass": "x.x.x", - "sass-loader": "x.x.x", - "style-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use sass in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); - -const isProduction = process.env.NODE_ENV === "production"; - -const stylesHandler = "style-loader"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.s[ac]ss$/i, - use: [stylesHandler, "css-loader", "sass-loader"], - }, - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should use sass with postcss in project when selected 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "autoprefixer": "x.x.x", - "css-loader": "x.x.x", - "postcss": "x.x.x", - "postcss-loader": "x.x.x", - "sass": "x.x.x", - "sass-loader": "x.x.x", - "style-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use sass with postcss in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); - -const isProduction = process.env.NODE_ENV === "production"; - -const stylesHandler = "style-loader"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.s[ac]ss$/i, - use: [stylesHandler, "css-loader", "postcss-loader", "sass-loader"], - }, - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should use stylus in project when selected 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "css-loader": "x.x.x", - "style-loader": "x.x.x", - "stylus": "x.x.x", - "stylus-loader": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should use stylus in project when selected 2`] = ` -"// Generated using webpack-cli https://github.com/webpack/webpack-cli - -const path = require("path"); - -const isProduction = process.env.NODE_ENV === "production"; - -const stylesHandler = "style-loader"; - -const config = { - entry: "./src/index.js", - output: { - path: path.resolve(__dirname, "dist"), - }, - plugins: [ - // Add your plugins here - // Learn more about plugins from https://webpack.js.org/configuration/plugins/ - ], - module: { - rules: [ - { - test: /\\.styl$/i, - use: [stylesHandler, "css-loader", "stylus-loader"], - }, - { - test: /\\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, - type: "asset", - }, - - // Add your rules for custom modules here - // Learn more about loaders from https://webpack.js.org/loaders/ - ], - }, -}; - -module.exports = () => { - if (isProduction) { - config.mode = "production"; - } else { - config.mode = "development"; - } - return config; -}; -" -`; - -exports[`init command should work with 'c' alias 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should work with 'create' alias 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should work with 'n' alias 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command should work with 'new' alias 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "html-loader": "x.x.x", - "html-webpack-plugin": "x.x.x", - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - "webpack-dev-server": "x.x.x", - "workbox-webpack-plugin": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "serve": "webpack serve", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; - -exports[`init command uses yarn as the package manager when opted 1`] = ` -{ - "description": "My webpack project", - "devDependencies": { - "webpack": "x.x.x", - "webpack-cli": "x.x.x", - }, - "name": "my-webpack-project", - "scripts": { - "build": "webpack --mode=production --node-env=production", - "build:dev": "webpack --mode=development", - "build:prod": "webpack --mode=production --node-env=production", - "watch": "webpack --watch", - }, - "version": "1.0.0", -} -`; diff --git a/test/init/init.test.js b/test/init/init.test.js deleted file mode 100644 index edcfc5ae6f7..00000000000 --- a/test/init/init.test.js +++ /dev/null @@ -1,680 +0,0 @@ -const os = require("os"); -const path = require("path"); -const { mkdirSync, existsSync, readFileSync } = require("fs"); -const { join, resolve } = require("path"); -const { - isWindows, - run, - runPromptWithAnswers, - uniqueDirectoryForTest, -} = require("../utils/test-utils"); - -jest.setTimeout(480000); - -const ENTER = "\x0D"; -const DOWN = "\x1B\x5B\x42"; - -const defaultTemplateFiles = [ - "package.json", - "package-lock.json", - "src", - "src/index.js", - "webpack.config.js", -]; - -const reactTemplateFiles = [...defaultTemplateFiles, "index.html"]; - -// Helper to read from package.json in a given path -const readFromPkgJSON = (path) => { - const pkgJSONPath = join(path, "package.json"); - - if (!existsSync(pkgJSONPath)) { - return {}; - } - - const pkgJSON = JSON.parse(readFileSync(pkgJSONPath, "utf8")); - const { devDependencies: devDeps } = pkgJSON; - - // Update devDeps versions to be x.x.x to prevent frequent snapshot updates - Object.keys(devDeps).forEach((dep) => (devDeps[dep] = "x.x.x")); - - return { ...pkgJSON, devDependencies: devDeps }; -}; - -// Helper to read from webpack.config.js in a given path -const readFromWebpackConfig = (path) => readFileSync(join(path, "webpack.config.js"), "utf8"); - -describe("init command", () => { - it("should generate default project when nothing is passed", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await run(assetsPath, ["init", "--force"]); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - }); - - it("should generate project when generationPath is supplied", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await run(__dirname, ["init", assetsPath, "--force"]); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - }); - - it("should generate folders if non existing generation path is given", async () => { - const assetsPath = path.resolve(os.tmpdir(), Date.now().toString()); - const { stdout, stderr } = await run(__dirname, ["init", assetsPath, "--force"]); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain(`create ${path.relative(__dirname, assetsPath)}`); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - }); - - it("should configure assets modules by default", async () => { - const assetsPath = path.resolve(os.tmpdir(), Date.now().toString()); - const { stdout, stderr } = await run(__dirname, ["init", assetsPath, "--force"]); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain(`create ${path.relative(__dirname, assetsPath)}`); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should ask question when wrong template is supplied", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init", "--force", "--template=apple"], - [`${ENTER}`], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("apple is not a valid template, please select one from below"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - }); - - it("should generate typescript project correctly", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [`${DOWN}${DOWN}${ENTER}`, `n${ENTER}`, `n${ENTER}`, `n${ENTER}`, ENTER, ENTER], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - expect(stderr).toContain("tsconfig.json"); - - // Test files - const files = [ - ...defaultTemplateFiles.filter((file) => file !== "src/index.js"), - "src/index.ts", - "tsconfig.json", - ]; - - files.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should generate ES6 project correctly", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [`${DOWN}${ENTER}`, `n${ENTER}`, `n${ENTER}`, `n${ENTER}`, ENTER, ENTER], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - expect(stderr).toContain(".babelrc"); - - // Test files - const files = [...defaultTemplateFiles, ".babelrc"]; - - files.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should use sass in project when selected", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ - `${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `${DOWN}${DOWN}${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - ENTER, - ], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should use sass with postcss in project when selected", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ - `${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `${DOWN}${DOWN}${ENTER}`, - `n${ENTER}`, - `y${ENTER}`, - `n${ENTER}`, - ENTER, - ], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - const files = [...defaultTemplateFiles, "postcss.config.js"]; - - files.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should use mini-css-extract-plugin when selected", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ - `${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `${DOWN}${DOWN}${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `y${ENTER}`, - ENTER, - ], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should use sass and css with postcss in project when selected", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ - `${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `${DOWN}${DOWN}${ENTER}`, - `y${ENTER}`, - `y${ENTER}`, - `n${ENTER}`, - ENTER, - ], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - const files = [...defaultTemplateFiles, "postcss.config.js"]; - - files.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should use less in project when selected", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ - `${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `${DOWN}${DOWN}${DOWN}${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - ENTER, - ], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should use stylus in project when selected", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ - `${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `${DOWN}${DOWN}${DOWN}${DOWN}${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - ENTER, - ], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should configure WDS as opted", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ENTER, ENTER, `n${ENTER}`, `n${ENTER}`, ENTER, ENTER], - ); - - expect(stdout).toContain("Do you want to use webpack-dev-server?"); - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should use postcss in project when selected", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ - `${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `n${ENTER}`, - `${DOWN}${ENTER}`, - ENTER, - `n${ENTER}`, - ENTER, - ], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - const files = [...defaultTemplateFiles, "postcss.config.js"]; - - files.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should configure html-webpack-plugin as opted", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ENTER, `n${ENTER}`, ENTER, `n${ENTER}`, ENTER, ENTER], - ); - - expect(stdout).toContain("Do you want to simplify the creation of HTML files for your bundle?"); - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should configure workbox-webpack-plugin as opted", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ENTER, `n${ENTER}`, ENTER, ENTER, ENTER, ENTER], - ); - - expect(stdout).toContain("Do you want to add PWA support?"); - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should throw if the current path is not writable", async () => { - if (isWindows) { - return; - } - - const assetsPath = await uniqueDirectoryForTest(); - const projectPath = join(assetsPath, "non-writable-path"); - - mkdirSync(projectPath, 0o500); - - const { exitCode, stderr } = await run(projectPath, ["init", "my-app"], { reject: false }); - - expect(exitCode).toBe(2); - expect(stderr).toContain("Failed to initialize the project."); - }); - - it("should work with 'new' alias", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await run(assetsPath, ["new", "--force"]); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - }); - - it("should work with 'create' alias", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await run(assetsPath, ["create", "--force"]); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - }); - - it("should work with 'c' alias", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await run(assetsPath, ["c", "--force"]); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - }); - - it("should work with 'n' alias", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await run(assetsPath, ["n", "--force"]); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - }); - - it("recognizes '-t' as an alias for '--template'", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await run(assetsPath, ["init", "-t", "default", "--force"]); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - }); - - it("recognizes '-f' as an alias for '--force'", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await run(assetsPath, ["init", "-f"]); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - defaultTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - }); - - it("uses yarn as the package manager when opted", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ENTER, `n${ENTER}`, `n${ENTER}`, `n${ENTER}`, ENTER, `${DOWN}${ENTER}`], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - const files = [ - ...defaultTemplateFiles.filter((file) => file !== "package-lock.json"), - "yarn.lock", - ]; - - files.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - }); - - it("should generate react template with prompt answers", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers( - assetsPath, - ["init"], - [ENTER, `y${ENTER}`, `${DOWN}${ENTER}`, `y${ENTER}`, ENTER, ENTER], - ); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - reactTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); - - it("should generate react template with --force", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await run(assetsPath, ["init", "--template=react", "--force"]); - - expect(stdout).toContain("Project has been initialised with webpack!"); - expect(stderr).toContain("webpack.config.js"); - - // Test files - reactTemplateFiles.forEach((file) => { - expect(existsSync(resolve(assetsPath, file))).toBeTruthy(); - }); - - // Check if the generated package.json file content matches the snapshot - expect(readFromPkgJSON(assetsPath)).toMatchSnapshot(); - - // Check if the generated webpack configuration matches the snapshot - expect(readFromWebpackConfig(assetsPath)).toMatchSnapshot(); - }); -}); diff --git a/test/loader/error-test/loader-error.test.js b/test/loader/error-test/loader-error.test.js deleted file mode 100644 index 27586096863..00000000000 --- a/test/loader/error-test/loader-error.test.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -const { run } = require("../../utils/test-utils"); - -describe("loader error regression test for #1581", () => { - it(`should not ignore loader's error produce a failing build`, async () => { - // Ignoring assertion on stderr because ts-loader is producing depreciation warnings - // with webpack@v5.0.0-beta.24 -> https://github.com/TypeStrong/ts-loader/issues/1169 - const { stdout, exitCode } = await run(__dirname, []); - expect(exitCode).not.toEqual(0); - expect(stdout).toContain("[1 error]"); - expect(stdout).toContain(`Cannot assign to 'foobar' because it is a constant`); - }); -}); diff --git a/test/loader/error-test/src/index.ts b/test/loader/error-test/src/index.ts deleted file mode 100644 index f7c6b335f8e..00000000000 --- a/test/loader/error-test/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -const foobar = "foobar"; -// eslint-disable-next-line no-const-assign -foobar = "barbaz"; // Error! -console.log(foobar); diff --git a/test/loader/error-test/tsconfig.json b/test/loader/error-test/tsconfig.json deleted file mode 100644 index 27682f8e29b..00000000000 --- a/test/loader/error-test/tsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "compileOnSave": false, - "buildOnSave": false, - "compilerOptions": { - "target": "es6", - "moduleResolution": "node", - "noEmitOnError": false, - "outDir": "./dist" - }, - "exclude": ["node_modules"] -} diff --git a/test/loader/error-test/webpack.config.js b/test/loader/error-test/webpack.config.js deleted file mode 100644 index 056147de1ac..00000000000 --- a/test/loader/error-test/webpack.config.js +++ /dev/null @@ -1,25 +0,0 @@ -const path = require("path"); - -module.exports = { - mode: "development", - - entry: { - bundle: "./src/index.ts", - }, - - output: { - path: path.resolve(__dirname, "dist"), - filename: "[name].js", - }, - - module: { - rules: [ - { - test: /.(ts|tsx)?$/, - loader: "ts-loader", - include: [path.resolve(__dirname, "src")], - exclude: [/node_modules/], - }, - ], - }, -}; diff --git a/test/loader/loader.test.js b/test/loader/loader.test.js deleted file mode 100644 index f23d647c2dc..00000000000 --- a/test/loader/loader.test.js +++ /dev/null @@ -1,244 +0,0 @@ -"use strict"; - -const { existsSync } = require("fs"); -const { join, resolve } = require("path"); -const { - run, - runPromptWithAnswers, - uniqueDirectoryForTest, - normalizeStdout, - normalizeStderr, -} = require("../utils/test-utils"); - -const firstPrompt = "? Loader name (my-loader)"; -const ENTER = "\x0D"; -const DOWN = "\x1B\x5B\x42"; - -const dataForTests = (rootAssetsPath) => ({ - loaderName: "test-loader", - loaderPath: join(rootAssetsPath, "test-loader"), - defaultLoaderPath: join(rootAssetsPath, "my-loader"), - genPath: join(rootAssetsPath, "test-assets"), - customLoaderPath: join(rootAssetsPath, "test-assets", "loaderName"), - defaultTemplateFiles: [ - "package.json", - "package-lock.json", - "examples", - "src", - "test", - "src/index.js", - "examples/simple/webpack.config.js", - ], -}); - -describe("loader command", () => { - it.only("should ask the loader name when invoked", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers(assetsPath, ["loader"]); - - expect(stdout).toBeTruthy(); - expect(normalizeStderr(stderr)).toBeFalsy(); - expect(normalizeStdout(stdout)).toContain(firstPrompt); - }); - - it("should scaffold loader with default name if no loader name provided", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { defaultLoaderPath, defaultTemplateFiles } = dataForTests(assetsPath); - let { stdout } = await runPromptWithAnswers(assetsPath, ["loader"], [ENTER, ENTER]); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Skip test in case installation fails - if (!existsSync(resolve(defaultLoaderPath, "./package-lock.json"))) { - return; - } - - // Check if the output directory exists with the appropriate loader name - expect(existsSync(defaultLoaderPath)).toBeTruthy(); - - // All test files are scaffolded - defaultTemplateFiles.forEach((file) => { - expect(existsSync(defaultLoaderPath, file)).toBeTruthy(); - }); - - // Check if the the generated loader works successfully - const path = resolve(defaultLoaderPath, "./examples/simple/"); - - ({ stdout } = await run(path, [])); - - expect(stdout).toContain("my-loader"); - }); - - it("should scaffold loader template with a given name", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { loaderName, loaderPath, defaultTemplateFiles } = dataForTests(assetsPath); - let { stdout } = await runPromptWithAnswers( - assetsPath, - ["loader"], - [`${loaderName}${ENTER}`, ENTER], - ); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Skip test in case installation fails - if (!existsSync(resolve(loaderPath, "./package-lock.json"))) { - return; - } - - // Check if the output directory exists with the appropriate loader name - expect(existsSync(loaderPath)).toBeTruthy(); - - // All test files are scaffolded - defaultTemplateFiles.forEach((file) => { - expect(existsSync(loaderPath, file)).toBeTruthy(); - }); - - // Check if the the generated loader works successfully - const path = resolve(loaderPath, "./examples/simple/"); - - ({ stdout } = await run(path, [])); - - expect(stdout).toContain("test-loader"); - }); - - it("should scaffold loader template in the specified path", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { loaderName, customLoaderPath, defaultTemplateFiles } = dataForTests(assetsPath); - let { stdout } = await runPromptWithAnswers( - assetsPath, - ["loader", "test-assets"], - [`${loaderName}${ENTER}`, ENTER], - ); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Skip test in case installation fails - if (!existsSync(resolve(customLoaderPath, "./package-lock.json"))) { - return; - } - - // Check if the output directory exists with the appropriate loader name - expect(existsSync(customLoaderPath)).toBeTruthy(); - - // All test files are scaffolded - defaultTemplateFiles.forEach((file) => { - expect(existsSync(customLoaderPath, file)).toBeTruthy(); - }); - - // Check if the the generated loader works successfully - const path = resolve(customLoaderPath, "./examples/simple/"); - - ({ stdout } = await run(path, [])); - - expect(stdout).toContain("test-loader"); - }); - - it("should scaffold loader template in the current directory", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { loaderName, customLoaderPath, defaultTemplateFiles } = dataForTests(assetsPath); - - let { stdout } = await runPromptWithAnswers( - assetsPath, - ["loader", "./"], - [`${loaderName}${ENTER}`, ENTER], - ); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Skip test in case installation fails - if (!existsSync(resolve(customLoaderPath, "./package-lock.json"))) { - return; - } - - // Check if the output directory exists with the appropriate loader name - expect(existsSync(customLoaderPath)).toBeTruthy(); - - // All test files are scaffolded - defaultTemplateFiles.forEach((file) => { - expect(existsSync(customLoaderPath, file)).toBeTruthy(); - }); - - // Check if the the generated loader works successfully - const path = resolve(customLoaderPath, "./examples/simple/"); - - ({ stdout } = await run(path, [])); - - expect(stdout).toContain("test-loader"); - }); - - it("should prompt on supplying an invalid template", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stderr } = await runPromptWithAnswers(assetsPath, ["loader", "--template=unknown"]); - - expect(stderr).toContain("unknown is not a valid template"); - }); - - it("recognizes '-t' as an alias for '--template'", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { defaultLoaderPath, defaultTemplateFiles } = dataForTests(assetsPath); - let { stdout } = await runPromptWithAnswers( - assetsPath, - ["loader", "-t", "default"], - [`${ENTER}`, ENTER], - ); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Skip test in case installation fails - if (!existsSync(resolve(defaultLoaderPath, "./package-lock.json"))) { - return; - } - - // Check if the output directory exists with the appropriate loader name - expect(existsSync(defaultLoaderPath)).toBeTruthy(); - - // All test files are scaffolded - defaultTemplateFiles.forEach((file) => { - expect(existsSync(defaultLoaderPath, file)).toBeTruthy(); - }); - - // Check if the the generated loader works successfully - const path = resolve(assetsPath, "./my-loader/examples/simple/"); - - ({ stdout } = await run(path, [])); - - expect(stdout).toContain("my-loader"); - }); - - it("uses yarn as the package manager when opted", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { defaultLoaderPath, defaultTemplateFiles } = dataForTests(assetsPath); - let { stdout } = await runPromptWithAnswers( - assetsPath, - ["loader", "-t", "default"], - [`${ENTER}`, `${DOWN}${ENTER}`], - ); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Skip test in case installation fails - if (!existsSync(resolve(defaultLoaderPath, "./yarn.lock"))) { - return; - } - - // Check if the output directory exists with the appropriate loader name - expect(existsSync(defaultLoaderPath)).toBeTruthy(); - - // All test files are scaffolded - const files = [ - ...defaultTemplateFiles.filter((file) => file !== "package-lock.json"), - "yarn.lock", - ]; - - files.forEach((file) => { - expect(existsSync(defaultLoaderPath, file)).toBeTruthy(); - }); - - // Check if the the generated loader works successfully - const path = resolve(assetsPath, "./my-loader/examples/simple/"); - - ({ stdout } = await run(path, [])); - - expect(stdout).toContain("my-loader"); - }); -}); diff --git a/test/loader/warning-test/loader-warning.test.js b/test/loader/warning-test/loader-warning.test.js deleted file mode 100644 index 0b81fe06618..00000000000 --- a/test/loader/warning-test/loader-warning.test.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -const { run } = require("../../utils/test-utils"); - -describe("loader warning test", () => { - it(`should not ignore loader's warning and exit with a non zero exit code`, async () => { - const { stdout, exitCode } = await run(__dirname, [], false); - - expect(stdout).toContain("[1 warning]"); - expect(stdout).toContain("This is a warning"); - expect(exitCode).toEqual(0); - }); -}); diff --git a/test/loader/warning-test/my-loader.js b/test/loader/warning-test/my-loader.js deleted file mode 100644 index 9ad6b8e4ba0..00000000000 --- a/test/loader/warning-test/my-loader.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = function loader(source) { - const { emitWarning } = this; - emitWarning("This is a warning"); - return source; -}; diff --git a/test/loader/warning-test/src/main.js b/test/loader/warning-test/src/main.js deleted file mode 100644 index d89f4de2697..00000000000 --- a/test/loader/warning-test/src/main.js +++ /dev/null @@ -1,2 +0,0 @@ -require("../my-loader"); -console.log("loader warning test"); diff --git a/test/loader/warning-test/webpack.config.js b/test/loader/warning-test/webpack.config.js deleted file mode 100644 index c7fe3695bd5..00000000000 --- a/test/loader/warning-test/webpack.config.js +++ /dev/null @@ -1,33 +0,0 @@ -const path = require("path"); - -module.exports = { - mode: "development", - - entry: { - bundle: "./src/main.js", - }, - - output: { - path: path.resolve(__dirname, "dist"), - filename: "[name].js", - }, - - module: { - rules: [ - { - test: /.(js|jsx)?$/, - loader: "my-loader", - include: [path.resolve(__dirname, "src")], - exclude: [/node_modules/], - }, - ], - }, - resolveLoader: { - alias: { - "my-loader": require.resolve("./my-loader"), - }, - }, - performance: { - hints: "warning", - }, -}; diff --git a/test/plugin/plugin.test.js b/test/plugin/plugin.test.js deleted file mode 100644 index 9b60d3f2458..00000000000 --- a/test/plugin/plugin.test.js +++ /dev/null @@ -1,246 +0,0 @@ -const { existsSync, mkdirSync } = require("fs"); -const { join, resolve } = require("path"); -const { - run, - runPromptWithAnswers, - uniqueDirectoryForTest, - normalizeStdout, - normalizeStderr, -} = require("../utils/test-utils"); - -const ENTER = "\x0D"; -const DOWN = "\x1B\x5B\x42"; - -const firstPrompt = "? Plugin name"; -const dataForTests = (rootAssetsPath) => ({ - pluginName: "test-plugin", - pluginPath: join(rootAssetsPath, "test-plugin"), - defaultPluginPath: join(rootAssetsPath, "my-webpack-plugin"), - genPath: join(rootAssetsPath, "test-assets"), - customPluginPath: join(rootAssetsPath, "test-assets", "test-plugin"), - defaultTemplateFiles: [ - "package.json", - "examples", - "src", - "test", - "src/index.js", - "examples/simple/webpack.config.js", - ], -}); - -describe("plugin command", () => { - it("should ask the plugin name when invoked", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stdout, stderr } = await runPromptWithAnswers(assetsPath, ["plugin"]); - - expect(stdout).toBeTruthy(); - expect(normalizeStderr(stderr)).toBeFalsy(); - expect(normalizeStdout(stdout)).toContain(firstPrompt); - }); - - it("should scaffold plugin with default name if no plugin name provided", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { defaultPluginPath, defaultTemplateFiles } = dataForTests(assetsPath); - const { stdout } = await runPromptWithAnswers(assetsPath, ["plugin"], [ENTER, ENTER]); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Check if the output directory exists with the appropriate plugin name - expect(existsSync(defaultPluginPath)).toBeTruthy(); - - // Skip test in case installation fails - if (!existsSync(resolve(defaultPluginPath, "./package-lock.json"))) { - return; - } - - // Test regressively files are scaffolded - defaultTemplateFiles.forEach((file) => { - expect(existsSync(join(defaultPluginPath, file))).toBeTruthy(); - }); - - // Check if the the generated plugin works successfully - const { stdout: stdout2 } = await run(defaultPluginPath, [ - "--config", - "./examples/simple/webpack.config.js", - ]); - expect(normalizeStdout(stdout2)).toContain("Hello World!"); - }); - - it("should scaffold plugin template with a given name", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { pluginName, pluginPath, defaultTemplateFiles } = dataForTests(assetsPath); - const { stdout } = await runPromptWithAnswers( - assetsPath, - ["plugin"], - [`${pluginName}${ENTER}`, ENTER], - ); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Check if the output directory exists with the appropriate plugin name - expect(existsSync(pluginPath)).toBeTruthy(); - - // Skip test in case installation fails - if (!existsSync(resolve(pluginPath, "./package-lock.json"))) { - return; - } - - // Test regressively files are scaffolded - defaultTemplateFiles.forEach((file) => { - expect(existsSync(join(pluginPath, file))).toBeTruthy(); - }); - - // Check if the the generated plugin works successfully - const { stdout: stdout2 } = await run(pluginPath, [ - "--config", - "./examples/simple/webpack.config.js", - ]); - expect(normalizeStdout(stdout2)).toContain("Hello World!"); - }); - - it("should scaffold plugin template in the specified path", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { pluginName, customPluginPath, defaultTemplateFiles } = dataForTests(assetsPath); - const { stdout } = await runPromptWithAnswers( - assetsPath, - ["plugin", "test-assets"], - [`${pluginName}${ENTER}`, ENTER], - ); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Check if the output directory exists with the appropriate plugin name - expect(existsSync(customPluginPath)).toBeTruthy(); - - // Skip test in case installation fails - if (!existsSync(resolve(customPluginPath, "./package-lock.json"))) { - return; - } - - // Test regressively files are scaffolded - defaultTemplateFiles.forEach((file) => { - expect(existsSync(join(customPluginPath, file))).toBeTruthy(); - }); - - // Check if the the generated plugin works successfully - const { stdout: stdout2 } = await run(customPluginPath, [ - "--config", - "./examples/simple/webpack.config.js", - ]); - expect(normalizeStdout(stdout2)).toContain("Hello World!"); - }); - - it("should scaffold plugin template in the current directory", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { genPath, customPluginPath, pluginName, defaultTemplateFiles } = - dataForTests(assetsPath); - - if (!existsSync(genPath)) { - mkdirSync(genPath); - } - - const { stdout } = await runPromptWithAnswers( - genPath, - ["plugin", "./"], - [`${pluginName}${ENTER}`, ENTER], - ); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Check if the output directory exists with the appropriate plugin name - expect(existsSync(customPluginPath)).toBeTruthy(); - - // Skip test in case installation fails - if (!existsSync(resolve(customPluginPath, "./package-lock.json"))) { - return; - } - - // Test regressively files are scaffolded - defaultTemplateFiles.forEach((file) => { - expect(existsSync(join(customPluginPath, file))).toBeTruthy(); - }); - - // Check if the the generated plugin works successfully - const { stdout: stdout2 } = await run(customPluginPath, [ - "--config", - "./examples/simple/webpack.config.js", - ]); - expect(normalizeStdout(stdout2)).toContain("Hello World!"); - }); - - it("should prompt on supplying an invalid template", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { stderr } = await runPromptWithAnswers(assetsPath, ["plugin", "--template=unknown"]); - - expect(stderr).toContain("unknown is not a valid template"); - }); - - it("recognizes '-t' as an alias for '--template'", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { defaultPluginPath, defaultTemplateFiles } = dataForTests(assetsPath); - const { stdout } = await runPromptWithAnswers( - assetsPath, - ["plugin", "-t", "default"], - [`${ENTER}`, ENTER], - ); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Check if the output directory exists with the appropriate plugin name - expect(existsSync(defaultPluginPath)).toBeTruthy(); - - // Skip test in case installation fails - if (!existsSync(resolve(defaultPluginPath, "./package-lock.json"))) { - return; - } - - // Test regressively files are scaffolded - defaultTemplateFiles.forEach((file) => { - expect(existsSync(join(defaultPluginPath, file))).toBeTruthy(); - }); - - // Check if the the generated plugin works successfully - const { stdout: stdout2 } = await run(defaultPluginPath, [ - "--config", - "./examples/simple/webpack.config.js", - ]); - expect(normalizeStdout(stdout2)).toContain("Hello World!"); - }); - - it("uses yarn as the package manager when opted", async () => { - const assetsPath = await uniqueDirectoryForTest(); - const { defaultPluginPath, defaultTemplateFiles } = dataForTests(assetsPath); - const { stdout } = await runPromptWithAnswers( - assetsPath, - ["plugin"], - [`${ENTER}`, `${DOWN}${ENTER}`], - ); - - expect(normalizeStdout(stdout)).toContain(firstPrompt); - - // Check if the output directory exists with the appropriate plugin name - expect(existsSync(defaultPluginPath)).toBeTruthy(); - - // Skip test in case installation fails - if (!existsSync(resolve(defaultPluginPath, "./yarn.lock"))) { - return; - } - - // Test regressively files are scaffolded - const files = [ - ...defaultTemplateFiles.filter((file) => file !== "package-lock.json"), - "yarn.lock", - ]; - - files.forEach((file) => { - expect(existsSync(join(defaultPluginPath, file))).toBeTruthy(); - }); - - // Check if the the generated plugin works successfully - const { stdout: stdout2 } = await run(defaultPluginPath, [ - "--config", - "./examples/simple/webpack.config.js", - ]); - expect(normalizeStdout(stdout2)).toContain("Hello World!"); - }); -}); diff --git a/tsconfig.json b/tsconfig.json index 7a8f5bdf817..f56de5bdccc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,9 +24,6 @@ { "path": "packages/configtest" }, - { - "path": "packages/generators" - }, { "path": "packages/info" }, diff --git a/yarn.lock b/yarn.lock index 1ce6adc86a6..027b8a90f67 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1571,11 +1571,6 @@ resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.1.tgz#de633db3ec2ef6a3c89e2f19038063e8a122e2c2" integrity sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q== -"@gar/promisify@^1.0.1", "@gar/promisify@^1.1.3": - version "1.1.3" - resolved "https://registry.yarnpkg.com/@gar/promisify/-/promisify-1.1.3.tgz#555193ab2e3bb3b6adc3d551c9c030d9e860daf6" - integrity sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw== - "@humanwhocodes/config-array@^0.13.0": version "0.13.0" resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.13.0.tgz#fb907624df3256d04b9aa2df50d7aa97ec648748" @@ -2202,60 +2197,6 @@ treeverse "^3.0.0" walk-up-path "^3.0.1" -"@npmcli/arborist@^4.0.4": - version "4.3.1" - resolved "https://registry.yarnpkg.com/@npmcli/arborist/-/arborist-4.3.1.tgz#a08cddce3339882f688c1dea1651f6971e781c44" - integrity sha512-yMRgZVDpwWjplorzt9SFSaakWx6QIK248Nw4ZFgkrAy/GvJaFRaSZzE6nD7JBK5r8g/+PTxFq5Wj/sfciE7x+A== - dependencies: - "@isaacs/string-locale-compare" "^1.1.0" - "@npmcli/installed-package-contents" "^1.0.7" - "@npmcli/map-workspaces" "^2.0.0" - "@npmcli/metavuln-calculator" "^2.0.0" - "@npmcli/move-file" "^1.1.0" - "@npmcli/name-from-folder" "^1.0.1" - "@npmcli/node-gyp" "^1.0.3" - "@npmcli/package-json" "^1.0.1" - "@npmcli/run-script" "^2.0.0" - bin-links "^3.0.0" - cacache "^15.0.3" - common-ancestor-path "^1.0.1" - json-parse-even-better-errors "^2.3.1" - json-stringify-nice "^1.1.4" - mkdirp "^1.0.4" - mkdirp-infer-owner "^2.0.0" - npm-install-checks "^4.0.0" - npm-package-arg "^8.1.5" - npm-pick-manifest "^6.1.0" - npm-registry-fetch "^12.0.1" - pacote "^12.0.2" - parse-conflict-json "^2.0.1" - proc-log "^1.0.0" - promise-all-reject-late "^1.0.0" - promise-call-limit "^1.0.1" - read-package-json-fast "^2.0.2" - readdir-scoped-modules "^1.1.0" - rimraf "^3.0.2" - semver "^7.3.5" - ssri "^8.0.1" - treeverse "^1.0.4" - walk-up-path "^1.0.0" - -"@npmcli/fs@^1.0.0": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-1.1.1.tgz#72f719fe935e687c56a4faecf3c03d06ba593257" - integrity sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ== - dependencies: - "@gar/promisify" "^1.0.1" - semver "^7.3.5" - -"@npmcli/fs@^2.1.0": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-2.1.2.tgz#a9e2541a4a2fec2e69c29b35e6060973da79b865" - integrity sha512-yOJKRvohFOaLqipNtwYB9WugyZKhC/DZC4VYPmpaCzDBrA8YpK3qHZ8/HGscMnE4GqbkLNuVcCnxkeQEdGt6LQ== - dependencies: - "@gar/promisify" "^1.1.3" - semver "^7.3.5" - "@npmcli/fs@^3.1.0", "@npmcli/fs@^3.1.1": version "3.1.1" resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-3.1.1.tgz#59cdaa5adca95d135fc00f2bb53f5771575ce726" @@ -2263,34 +2204,6 @@ dependencies: semver "^7.3.5" -"@npmcli/git@^2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@npmcli/git/-/git-2.1.0.tgz#2fbd77e147530247d37f325930d457b3ebe894f6" - integrity sha512-/hBFX/QG1b+N7PZBFs0bi+evgRZcK9nWBxQKZkGoXUT5hJSwl5c4d7y8/hm+NQZRPhQ67RzFaj5UM9YeyKoryw== - dependencies: - "@npmcli/promise-spawn" "^1.3.2" - lru-cache "^6.0.0" - mkdirp "^1.0.4" - npm-pick-manifest "^6.1.1" - promise-inflight "^1.0.1" - promise-retry "^2.0.1" - semver "^7.3.5" - which "^2.0.2" - -"@npmcli/git@^4.0.0": - version "4.1.0" - resolved "https://registry.yarnpkg.com/@npmcli/git/-/git-4.1.0.tgz#ab0ad3fd82bc4d8c1351b6c62f0fa56e8fe6afa6" - integrity sha512-9hwoB3gStVfa0N31ymBmrX+GuDGdVA/QWShZVqE0HK2Af+7QGGrCTbZia/SW0ImUTjTne7SP91qxDmtXvDHRPQ== - dependencies: - "@npmcli/promise-spawn" "^6.0.0" - lru-cache "^7.4.4" - npm-pick-manifest "^8.0.0" - proc-log "^3.0.0" - promise-inflight "^1.0.1" - promise-retry "^2.0.1" - semver "^7.3.5" - which "^3.0.0" - "@npmcli/git@^5.0.0": version "5.0.8" resolved "https://registry.yarnpkg.com/@npmcli/git/-/git-5.0.8.tgz#8ba3ff8724192d9ccb2735a2aa5380a992c5d3d1" @@ -2306,14 +2219,6 @@ semver "^7.3.5" which "^4.0.0" -"@npmcli/installed-package-contents@^1.0.6", "@npmcli/installed-package-contents@^1.0.7": - version "1.0.7" - resolved "https://registry.yarnpkg.com/@npmcli/installed-package-contents/-/installed-package-contents-1.0.7.tgz#ab7408c6147911b970a8abe261ce512232a3f4fa" - integrity sha512-9rufe0wnJusCQoLpV9ZPKIVP55itrM5BxOXs10DmdbRfgWtHy1LDyskbwRnBghuB0PrF7pNPOqREVtpz4HqzKw== - dependencies: - npm-bundled "^1.1.1" - npm-normalize-package-bin "^1.0.1" - "@npmcli/installed-package-contents@^2.0.1", "@npmcli/installed-package-contents@^2.1.0": version "2.1.0" resolved "https://registry.yarnpkg.com/@npmcli/installed-package-contents/-/installed-package-contents-2.1.0.tgz#63048e5f6e40947a3a88dcbcb4fd9b76fdd37c17" @@ -2322,16 +2227,6 @@ npm-bundled "^3.0.0" npm-normalize-package-bin "^3.0.0" -"@npmcli/map-workspaces@^2.0.0": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@npmcli/map-workspaces/-/map-workspaces-2.0.4.tgz#9e5e8ab655215a262aefabf139782b894e0504fc" - integrity sha512-bMo0aAfwhVwqoVM5UzX1DJnlvVvzDCHae821jv48L1EsrYwfOZChlqWYXEtto/+BkBXetPbEWgau++/brh4oVg== - dependencies: - "@npmcli/name-from-folder" "^1.0.1" - glob "^8.0.1" - minimatch "^5.0.1" - read-package-json-fast "^2.0.3" - "@npmcli/map-workspaces@^3.0.2": version "3.0.6" resolved "https://registry.yarnpkg.com/@npmcli/map-workspaces/-/map-workspaces-3.0.6.tgz#27dc06c20c35ef01e45a08909cab9cb3da08cea6" @@ -2342,16 +2237,6 @@ minimatch "^9.0.0" read-package-json-fast "^3.0.0" -"@npmcli/metavuln-calculator@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@npmcli/metavuln-calculator/-/metavuln-calculator-2.0.0.tgz#70937b8b5a5cad5c588c8a7b38c4a8bd6f62c84c" - integrity sha512-VVW+JhWCKRwCTE+0xvD6p3uV4WpqocNYYtzyvenqL/u1Q3Xx6fGTJ+6UoIoii07fbuEO9U3IIyuGY0CYHDv1sg== - dependencies: - cacache "^15.0.5" - json-parse-even-better-errors "^2.3.1" - pacote "^12.0.0" - semver "^7.3.2" - "@npmcli/metavuln-calculator@^7.1.1": version "7.1.1" resolved "https://registry.yarnpkg.com/@npmcli/metavuln-calculator/-/metavuln-calculator-7.1.1.tgz#4d3b6c3192f72bc8ad59476de0da939c33877fcf" @@ -2363,37 +2248,11 @@ proc-log "^4.1.0" semver "^7.3.5" -"@npmcli/move-file@^1.0.1", "@npmcli/move-file@^1.1.0": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@npmcli/move-file/-/move-file-1.1.2.tgz#1a82c3e372f7cae9253eb66d72543d6b8685c674" - integrity sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg== - dependencies: - mkdirp "^1.0.4" - rimraf "^3.0.2" - -"@npmcli/move-file@^2.0.0": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@npmcli/move-file/-/move-file-2.0.1.tgz#26f6bdc379d87f75e55739bab89db525b06100e4" - integrity sha512-mJd2Z5TjYWq/ttPLLGqArdtnC74J6bOzg4rMDnN+p1xTacZ2yPRCk2y0oSWQtygLR9YVQXgOcONrwtnk3JupxQ== - dependencies: - mkdirp "^1.0.4" - rimraf "^3.0.2" - -"@npmcli/name-from-folder@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@npmcli/name-from-folder/-/name-from-folder-1.0.1.tgz#77ecd0a4fcb772ba6fe927e2e2e155fbec2e6b1a" - integrity sha512-qq3oEfcLFwNfEYOQ8HLimRGKlD8WSeGEdtUa7hmzpR8Sa7haL1KVQrvgO6wqMjhWFFVjgtrh1gIxDz+P8sjUaA== - "@npmcli/name-from-folder@^2.0.0": version "2.0.0" resolved "https://registry.yarnpkg.com/@npmcli/name-from-folder/-/name-from-folder-2.0.0.tgz#c44d3a7c6d5c184bb6036f4d5995eee298945815" integrity sha512-pwK+BfEBZJbKdNYpHHRTNBwBoqrN/iIMO0AiGvYsp3Hoaq0WbgGSWQR6SCldZovoDpY3yje5lkFUe6gsDgJ2vg== -"@npmcli/node-gyp@^1.0.2", "@npmcli/node-gyp@^1.0.3": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@npmcli/node-gyp/-/node-gyp-1.0.3.tgz#a912e637418ffc5f2db375e93b85837691a43a33" - integrity sha512-fnkhw+fmX65kiLqk6E3BFLXNC26rUhK90zVwe2yncPliVT/Qos3xjhTLE59Df8KnPlcwIERXKVlU1bXoUQ+liA== - "@npmcli/node-gyp@^3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/@npmcli/node-gyp/-/node-gyp-3.0.0.tgz#101b2d0490ef1aa20ed460e4c0813f0db560545a" @@ -2412,13 +2271,6 @@ proc-log "^4.0.0" semver "^7.5.3" -"@npmcli/package-json@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@npmcli/package-json/-/package-json-1.0.1.tgz#1ed42f00febe5293c3502fd0ef785647355f6e89" - integrity sha512-y6jnu76E9C23osz8gEMBayZmaZ69vFOIk8vR1FJL/wbEJ54+9aVG9rLTjQKSXfgYZEr50nw1txBBFfBZZe+bYg== - dependencies: - json-parse-even-better-errors "^2.3.1" - "@npmcli/package-json@^5.0.0", "@npmcli/package-json@^5.1.0": version "5.2.1" resolved "https://registry.yarnpkg.com/@npmcli/package-json/-/package-json-5.2.1.tgz#df69477b1023b81ff8503f2b9db4db4faea567ed" @@ -2432,20 +2284,6 @@ proc-log "^4.0.0" semver "^7.5.3" -"@npmcli/promise-spawn@^1.2.0", "@npmcli/promise-spawn@^1.3.2": - version "1.3.2" - resolved "https://registry.yarnpkg.com/@npmcli/promise-spawn/-/promise-spawn-1.3.2.tgz#42d4e56a8e9274fba180dabc0aea6e38f29274f5" - integrity sha512-QyAGYo/Fbj4MXeGdJcFzZ+FkDkomfRBrPM+9QYJSg+PxgAUL+LU3FneQk37rKR2/zjqkCV1BLHccX98wRXG3Sg== - dependencies: - infer-owner "^1.0.4" - -"@npmcli/promise-spawn@^6.0.0", "@npmcli/promise-spawn@^6.0.1": - version "6.0.2" - resolved "https://registry.yarnpkg.com/@npmcli/promise-spawn/-/promise-spawn-6.0.2.tgz#c8bc4fa2bd0f01cb979d8798ba038f314cfa70f2" - integrity sha512-gGq0NJkIGSwdbUt4yhdF8ZrmkGKVz9vAdVzpOfnom+V8PLSmSOVhZwbNvZZS1EYcJN5hzzKBxmmVVAInM6HQLg== - dependencies: - which "^3.0.0" - "@npmcli/promise-spawn@^7.0.0": version "7.0.2" resolved "https://registry.yarnpkg.com/@npmcli/promise-spawn/-/promise-spawn-7.0.2.tgz#1d53d34ffeb5d151bfa8ec661bcccda8bbdfd532" @@ -2477,27 +2315,6 @@ proc-log "^4.0.0" which "^4.0.0" -"@npmcli/run-script@^2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@npmcli/run-script/-/run-script-2.0.0.tgz#9949c0cab415b17aaac279646db4f027d6f1e743" - integrity sha512-fSan/Pu11xS/TdaTpTB0MRn9guwGU8dye+x56mEVgBEd/QsybBbYcAL0phPXi8SGWFEChkQd6M9qL4y6VOpFig== - dependencies: - "@npmcli/node-gyp" "^1.0.2" - "@npmcli/promise-spawn" "^1.3.2" - node-gyp "^8.2.0" - read-package-json-fast "^2.0.1" - -"@npmcli/run-script@^6.0.0": - version "6.0.2" - resolved "https://registry.yarnpkg.com/@npmcli/run-script/-/run-script-6.0.2.tgz#a25452d45ee7f7fb8c16dfaf9624423c0c0eb885" - integrity sha512-NCcr1uQo1k5U+SYlnIrbAh3cxy+OQT1VtqiAbxdymSlptbzBb62AjH2xXgjNCoP073hoa1CfCAcwoZ8k96C4nA== - dependencies: - "@npmcli/node-gyp" "^3.0.0" - "@npmcli/promise-spawn" "^6.0.0" - node-gyp "^9.0.0" - read-package-json-fast "^3.0.0" - which "^3.0.0" - "@nx/devkit@>=17.1.2 < 21": version "20.0.7" resolved "https://registry.yarnpkg.com/@nx/devkit/-/devkit-20.0.7.tgz#c610eb5171bc8cc7681d45eda22ad21cb5409f1a" @@ -2562,31 +2379,11 @@ resolved "https://registry.yarnpkg.com/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-20.0.7.tgz#45e4ba4304e3118cb111ad36a1dc87b0efe28051" integrity sha512-U8LY1O3XA1yD8FoCM0ozT0DpFJdei2NNSrp/5lBXn5KHb2nkZ8DQ1zh7RKvMhEMwDNfNGbM7JsaBTr+fP6eYJg== -"@octokit/auth-token@^2.4.4": - version "2.5.0" - resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.5.0.tgz#27c37ea26c205f28443402477ffd261311f21e36" - integrity sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g== - dependencies: - "@octokit/types" "^6.0.3" - "@octokit/auth-token@^3.0.0": version "3.0.4" resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-3.0.4.tgz#70e941ba742bdd2b49bdb7393e821dea8520a3db" integrity sha512-TWFX7cZF2LXoCvdmJWY7XVPi74aSY0+FfBZNSXEXFkMpjcqsQwDSYVv5FhRFaI0V1ECnwbz4j59T/G+rXNWaIQ== -"@octokit/core@^3.5.1": - version "3.6.0" - resolved "https://registry.yarnpkg.com/@octokit/core/-/core-3.6.0.tgz#3376cb9f3008d9b3d110370d90e0a1fcd5fe6085" - integrity sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q== - dependencies: - "@octokit/auth-token" "^2.4.4" - "@octokit/graphql" "^4.5.8" - "@octokit/request" "^5.6.3" - "@octokit/request-error" "^2.0.5" - "@octokit/types" "^6.0.3" - before-after-hook "^2.2.0" - universal-user-agent "^6.0.0" - "@octokit/core@^4.2.1": version "4.2.4" resolved "https://registry.yarnpkg.com/@octokit/core/-/core-4.2.4.tgz#d8769ec2b43ff37cc3ea89ec4681a20ba58ef907" @@ -2600,15 +2397,6 @@ before-after-hook "^2.2.0" universal-user-agent "^6.0.0" -"@octokit/endpoint@^6.0.1": - version "6.0.12" - resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.12.tgz#3b4d47a4b0e79b1027fb8d75d4221928b2d05658" - integrity sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA== - dependencies: - "@octokit/types" "^6.0.3" - is-plain-object "^5.0.0" - universal-user-agent "^6.0.0" - "@octokit/endpoint@^7.0.0": version "7.0.6" resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-7.0.6.tgz#791f65d3937555141fb6c08f91d618a7d645f1e2" @@ -2618,15 +2406,6 @@ is-plain-object "^5.0.0" universal-user-agent "^6.0.0" -"@octokit/graphql@^4.5.8": - version "4.8.0" - resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.8.0.tgz#664d9b11c0e12112cbf78e10f49a05959aa22cc3" - integrity sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg== - dependencies: - "@octokit/request" "^5.6.0" - "@octokit/types" "^6.0.3" - universal-user-agent "^6.0.0" - "@octokit/graphql@^5.0.0": version "5.0.6" resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-5.0.6.tgz#9eac411ac4353ccc5d3fca7d76736e6888c5d248" @@ -2636,11 +2415,6 @@ "@octokit/types" "^9.0.0" universal-user-agent "^6.0.0" -"@octokit/openapi-types@^12.11.0": - version "12.11.0" - resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-12.11.0.tgz#da5638d64f2b919bca89ce6602d059f1b52d3ef0" - integrity sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ== - "@octokit/openapi-types@^18.0.0": version "18.1.1" resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-18.1.1.tgz#09bdfdabfd8e16d16324326da5148010d765f009" @@ -2651,13 +2425,6 @@ resolved "https://registry.yarnpkg.com/@octokit/plugin-enterprise-rest/-/plugin-enterprise-rest-6.0.1.tgz#e07896739618dab8da7d4077c658003775f95437" integrity sha512-93uGjlhUD+iNg1iWhUENAtJata6w5nE+V4urXOAlIXdco6xNZtUSfYY8dzp3Udy74aqO/B5UZL80x/YMa5PKRw== -"@octokit/plugin-paginate-rest@^2.16.8": - version "2.21.3" - resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz#7f12532797775640dbb8224da577da7dc210c87e" - integrity sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw== - dependencies: - "@octokit/types" "^6.40.0" - "@octokit/plugin-paginate-rest@^6.1.2": version "6.1.2" resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-6.1.2.tgz#f86456a7a1fe9e58fec6385a85cf1b34072341f8" @@ -2671,14 +2438,6 @@ resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz#5e50ed7083a613816b1e4a28aeec5fb7f1462e85" integrity sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA== -"@octokit/plugin-rest-endpoint-methods@^5.12.0": - version "5.16.2" - resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz#7ee8bf586df97dd6868cf68f641354e908c25342" - integrity sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw== - dependencies: - "@octokit/types" "^6.39.0" - deprecation "^2.3.1" - "@octokit/plugin-rest-endpoint-methods@^7.1.2": version "7.2.3" resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-7.2.3.tgz#37a84b171a6cb6658816c82c4082ac3512021797" @@ -2686,15 +2445,6 @@ dependencies: "@octokit/types" "^10.0.0" -"@octokit/request-error@^2.0.5", "@octokit/request-error@^2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677" - integrity sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg== - dependencies: - "@octokit/types" "^6.0.3" - deprecation "^2.0.0" - once "^1.4.0" - "@octokit/request-error@^3.0.0": version "3.0.3" resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-3.0.3.tgz#ef3dd08b8e964e53e55d471acfe00baa892b9c69" @@ -2704,18 +2454,6 @@ deprecation "^2.0.0" once "^1.4.0" -"@octokit/request@^5.6.0", "@octokit/request@^5.6.3": - version "5.6.3" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.6.3.tgz#19a022515a5bba965ac06c9d1334514eb50c48b0" - integrity sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A== - dependencies: - "@octokit/endpoint" "^6.0.1" - "@octokit/request-error" "^2.1.0" - "@octokit/types" "^6.16.1" - is-plain-object "^5.0.0" - node-fetch "^2.6.7" - universal-user-agent "^6.0.0" - "@octokit/request@^6.0.0": version "6.2.8" resolved "https://registry.yarnpkg.com/@octokit/request/-/request-6.2.8.tgz#aaf480b32ab2b210e9dadd8271d187c93171d8eb" @@ -2738,16 +2476,6 @@ "@octokit/plugin-request-log" "^1.0.4" "@octokit/plugin-rest-endpoint-methods" "^7.1.2" -"@octokit/rest@^18.0.6": - version "18.12.0" - resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.12.0.tgz#f06bc4952fc87130308d810ca9d00e79f6988881" - integrity sha512-gDPiOHlyGavxr72y0guQEhLsemgVjwRePayJ+FcKc2SJqKUbxbkvf5kAZEWA/MKvsfYlQAMVzNJE3ezQcxMJ2Q== - dependencies: - "@octokit/core" "^3.5.1" - "@octokit/plugin-paginate-rest" "^2.16.8" - "@octokit/plugin-request-log" "^1.0.4" - "@octokit/plugin-rest-endpoint-methods" "^5.12.0" - "@octokit/tsconfig@^1.0.2": version "1.0.2" resolved "https://registry.yarnpkg.com/@octokit/tsconfig/-/tsconfig-1.0.2.tgz#59b024d6f3c0ed82f00d08ead5b3750469125af7" @@ -2760,13 +2488,6 @@ dependencies: "@octokit/openapi-types" "^18.0.0" -"@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.39.0", "@octokit/types@^6.40.0": - version "6.41.0" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.41.0.tgz#e58ef78d78596d2fb7df9c6259802464b5f84a04" - integrity sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg== - dependencies: - "@octokit/openapi-types" "^12.11.0" - "@octokit/types@^9.0.0", "@octokit/types@^9.2.3": version "9.3.2" resolved "https://registry.yarnpkg.com/@octokit/types/-/types-9.3.2.tgz#3f5f89903b69f6a2d196d78ec35f888c0013cac5" @@ -2867,13 +2588,6 @@ resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.28.tgz#d45e01c4a56f143ee69c54dd6b12eade9e270a73" integrity sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw== -"@sigstore/bundle@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@sigstore/bundle/-/bundle-1.1.0.tgz#17f8d813b09348b16eeed66a8cf1c3d6bd3d04f1" - integrity sha512-PFutXEy0SmQxYI4texPw3dd2KewuNqv7OuK1ZFtY2fM754yhvG2KdgwIhRnoEE2uHdtdGNQ8s0lb94dW9sELog== - dependencies: - "@sigstore/protobuf-specs" "^0.2.0" - "@sigstore/bundle@^2.3.2": version "2.3.2" resolved "https://registry.yarnpkg.com/@sigstore/bundle/-/bundle-2.3.2.tgz#ad4dbb95d665405fd4a7a02c8a073dbd01e4e95e" @@ -2886,25 +2600,11 @@ resolved "https://registry.yarnpkg.com/@sigstore/core/-/core-1.1.0.tgz#5583d8f7ffe599fa0a89f2bf289301a5af262380" integrity sha512-JzBqdVIyqm2FRQCulY6nbQzMpJJpSiJ8XXWMhtOX9eKgaXXpfNOF53lzQEjIydlStnd/eFtuC1dW4VYdD93oRg== -"@sigstore/protobuf-specs@^0.2.0": - version "0.2.1" - resolved "https://registry.yarnpkg.com/@sigstore/protobuf-specs/-/protobuf-specs-0.2.1.tgz#be9ef4f3c38052c43bd399d3f792c97ff9e2277b" - integrity sha512-XTWVxnWJu+c1oCshMLwnKvz8ZQJJDVOlciMfgpJBQbThVjKTCG8dwyhgLngBD2KN0ap9F/gOV8rFDEx8uh7R2A== - "@sigstore/protobuf-specs@^0.3.2": version "0.3.2" resolved "https://registry.yarnpkg.com/@sigstore/protobuf-specs/-/protobuf-specs-0.3.2.tgz#5becf88e494a920f548d0163e2978f81b44b7d6f" integrity sha512-c6B0ehIWxMI8wiS/bj6rHMPqeFvngFV7cDU/MY+B16P9Z3Mp9k8L93eYZ7BYzSickzuqAQqAq0V956b3Ju6mLw== -"@sigstore/sign@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@sigstore/sign/-/sign-1.0.0.tgz#6b08ebc2f6c92aa5acb07a49784cb6738796f7b4" - integrity sha512-INxFVNQteLtcfGmcoldzV6Je0sbbfh9I16DM4yJPw3j5+TFP8X6uIiA18mvpEa9yyeycAKgPmOA3X9hVdVTPUA== - dependencies: - "@sigstore/bundle" "^1.1.0" - "@sigstore/protobuf-specs" "^0.2.0" - make-fetch-happen "^11.0.1" - "@sigstore/sign@^2.3.2": version "2.3.2" resolved "https://registry.yarnpkg.com/@sigstore/sign/-/sign-2.3.2.tgz#d3d01e56d03af96fd5c3a9b9897516b1233fc1c4" @@ -2917,14 +2617,6 @@ proc-log "^4.2.0" promise-retry "^2.0.1" -"@sigstore/tuf@^1.0.3": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@sigstore/tuf/-/tuf-1.0.3.tgz#2a65986772ede996485728f027b0514c0b70b160" - integrity sha512-2bRovzs0nJZFlCN3rXirE4gwxCn97JNjMmwpecqlbgV9WcxX7WRuIrgzx/X7Ib7MYRbyUTpBYE0s2x6AmZXnlg== - dependencies: - "@sigstore/protobuf-specs" "^0.2.0" - tuf-js "^1.1.7" - "@sigstore/tuf@^2.3.4": version "2.3.4" resolved "https://registry.yarnpkg.com/@sigstore/tuf/-/tuf-2.3.4.tgz#da1d2a20144f3b87c0172920cbc8dcc7851ca27c" @@ -2966,16 +2658,6 @@ dependencies: "@sinonjs/commons" "^3.0.0" -"@tootallnate/once@1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" - integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== - -"@tootallnate/once@2": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" - integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== - "@tsconfig/node10@^1.0.7": version "1.0.11" resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2" @@ -2996,24 +2678,11 @@ resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== -"@tufjs/canonical-json@1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@tufjs/canonical-json/-/canonical-json-1.0.0.tgz#eade9fd1f537993bc1f0949f3aea276ecc4fab31" - integrity sha512-QTnf++uxunWvG2z3UFNzAoQPHxnSXOwtaI3iJ+AohhV+5vONuArPjJE7aPXPVXfXJsqrVbZBu9b81AJoSd09IQ== - "@tufjs/canonical-json@2.0.0": version "2.0.0" resolved "https://registry.yarnpkg.com/@tufjs/canonical-json/-/canonical-json-2.0.0.tgz#a52f61a3d7374833fca945b2549bc30a2dd40d0a" integrity sha512-yVtV8zsdo8qFHe+/3kw81dSLyF7D576A5cCFCi4X7B39tWT7SekaEFUnvnWJHz+9qO7qJTah1JbrDjWKqFtdWA== -"@tufjs/models@1.0.4": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@tufjs/models/-/models-1.0.4.tgz#5a689630f6b9dbda338d4b208019336562f176ef" - integrity sha512-qaGV9ltJP0EO25YfFUPhxRVK0evXFIAGicsVXuRim4Ed9cjPxYhNnNJ49SFmbeLgtxpslIkX317IgpfcHPVj/A== - dependencies: - "@tufjs/canonical-json" "1.0.0" - minimatch "^9.0.0" - "@tufjs/models@2.0.1": version "2.0.1" resolved "https://registry.yarnpkg.com/@tufjs/models/-/models-2.0.1.tgz#e429714e753b6c2469af3212e7f320a6973c2812" @@ -3106,19 +2775,7 @@ dependencies: "@types/node" "*" -"@types/debug@*": - version "4.1.12" - resolved "https://registry.yarnpkg.com/@types/debug/-/debug-4.1.12.tgz#a155f21690871953410df4b6b6f53187f0500917" - integrity sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ== - dependencies: - "@types/ms" "*" - -"@types/diff@*": - version "5.2.3" - resolved "https://registry.yarnpkg.com/@types/diff/-/diff-5.2.3.tgz#dcdcfa40df9f011f9465180e0196dfbd921971d9" - integrity sha512-K0Oqlrq3kQMaO2RhfrNQX5trmt+XLyom88zS0u84nnIcLvFnRUMRRHmrGny5GSM+kNO9IZLARsdQHDzkhAgmrQ== - -"@types/ejs@*", "@types/ejs@^3.1.5": +"@types/ejs@^3.1.5": version "3.1.5" resolved "https://registry.yarnpkg.com/@types/ejs/-/ejs-3.1.5.tgz#49d738257cc73bafe45c13cb8ff240683b4d5117" integrity sha512-nv+GSx77ZtXiJzwKdsASqi+YQ5Z7vwHsTP0JY2SiQgjGckkBRKZnk8nIM+7oUZ1VCtuTz0+By4qVR7fqzp/Dfg== @@ -3149,11 +2806,6 @@ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.6.tgz#628effeeae2064a1b4e79f78e81d87b7e5fc7b50" integrity sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw== -"@types/expect@^1.20.4": - version "1.20.4" - resolved "https://registry.yarnpkg.com/@types/expect/-/expect-1.20.4.tgz#8288e51737bf7e3ab5d7c77bfa695883745264e5" - integrity sha512-Q5Vn3yjTDyCMV50TB6VRIbQNxSE4OmZR86VSbGaNpfUolm0iePBB4KdEEHmxoY5sT2+2DIvXW0rvMDP2nHZ4Mg== - "@types/express-serve-static-core@*", "@types/express-serve-static-core@^5.0.0": version "5.0.0" resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-5.0.0.tgz#91f06cda1049e8f17eeab364798ed79c97488a1c" @@ -3213,14 +2865,6 @@ dependencies: "@types/node" "*" -"@types/inquirer@^8": - version "8.2.10" - resolved "https://registry.yarnpkg.com/@types/inquirer/-/inquirer-8.2.10.tgz#9444dce2d764c35bc5bb4d742598aaa4acb6561b" - integrity sha512-IdD5NmHyVjWM8SHWo/kPBgtzXatwPkfwzyP3fN1jF2g9BWt5WO+8hL2F4o2GKIYsU40PpqeevuUWvkS/roXJkA== - dependencies: - "@types/through" "*" - rxjs "^7.2.0" - "@types/inquirer@^9.0.3": version "9.0.7" resolved "https://registry.yarnpkg.com/@types/inquirer/-/inquirer-9.0.7.tgz#61bb8d0e42f038b9a1738b08fba7fa98ad9b4b24" @@ -3268,26 +2912,6 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== -"@types/mem-fs-editor@*": - version "7.0.7" - resolved "https://registry.yarnpkg.com/@types/mem-fs-editor/-/mem-fs-editor-7.0.7.tgz#1a0d29d6f1e40eff4a89c1ac9412f4c5cfb3b16c" - integrity sha512-hLNd2KEDHz/3dg4Rq7y8fQJSOObzR/aFHrnR1imAfTtSO/6vJs2mOCy3Fwpfqs1uVj9KFahW1Ky7BFlDqPl1hg== - dependencies: - "@types/ejs" "*" - "@types/json-schema" "*" - "@types/mem-fs" "*" - "@types/node" "*" - "@types/vinyl" "*" - globby "^11.1.0" - -"@types/mem-fs@*": - version "1.1.5" - resolved "https://registry.yarnpkg.com/@types/mem-fs/-/mem-fs-1.1.5.tgz#832f99bf4f33d84e26afa062639a20b9e340098a" - integrity sha512-fnzN9xAKb3IPEoKgAkbpDE+8Q5J+QoCThPTVv3oKDHUe5xBpENP7ZwXC6HZnXBmVPLK5zfUZrphPe6zeCTPyrQ== - dependencies: - "@types/node" "*" - "@types/vinyl" "*" - "@types/mime@^1": version "1.3.5" resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.5.tgz#1ef302e01cf7d2b5a0fa526790c9123bf1d06690" @@ -3303,11 +2927,6 @@ resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.5.tgz#ec10755e871497bcd83efe927e43ec46e8c0747e" integrity sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag== -"@types/ms@*": - version "0.7.34" - resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.34.tgz#10964ba0dee6ac4cd462e2795b6bebd407303433" - integrity sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g== - "@types/mute-stream@^0.0.4": version "0.0.4" resolved "https://registry.yarnpkg.com/@types/mute-stream/-/mute-stream-0.0.4.tgz#77208e56a08767af6c5e1237be8888e2f255c478" @@ -3329,11 +2948,6 @@ dependencies: undici-types "~6.20.0" -"@types/node@^15.6.2": - version "15.14.9" - resolved "https://registry.yarnpkg.com/@types/node/-/node-15.14.9.tgz#bc43c990c3c9be7281868bbc7b8fdd6e2b57adfa" - integrity sha512-qjd88DrCxupx/kJD5yQgZdcYKZKSIGBVDIBE1/LTGcNm3d2Np/jxojkdePDdfnBHJc5W7vSMpbJ1aB7p/Py69A== - "@types/normalize-package-data@^2.4.0": version "2.4.4" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz#56e2cc26c397c038fab0e3a917a12d5c5909e901" @@ -3397,11 +3011,6 @@ resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8" integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw== -"@types/text-table@*": - version "0.2.5" - resolved "https://registry.yarnpkg.com/@types/text-table/-/text-table-0.2.5.tgz#f9c609b81c943e9fc8d73ef82ad2f2a78be5f53b" - integrity sha512-hcZhlNvMkQG/k1vcZ6yHOl6WAYftQ2MLfTHcYRZ2xYZFD8tGVnE3qFV0lj1smQeDSR7/yY0PyuUalauf33bJeA== - "@types/through@*": version "0.0.33" resolved "https://registry.yarnpkg.com/@types/through/-/through-0.0.33.tgz#14ebf599320e1c7851e7d598149af183c6b9ea56" @@ -3409,14 +3018,6 @@ dependencies: "@types/node" "*" -"@types/vinyl@*", "@types/vinyl@^2.0.4": - version "2.0.12" - resolved "https://registry.yarnpkg.com/@types/vinyl/-/vinyl-2.0.12.tgz#17642ca9a8ae10f3db018e9f885da4188db4c6e6" - integrity sha512-Sr2fYMBUVGYq8kj3UthXFAu5UN6ZW+rYr4NACjZQJvHvj+c8lYv0CahmZ2P/r7iUkN44gGUBwqxZkrKXYPb7cw== - dependencies: - "@types/expect" "^1.20.4" - "@types/node" "*" - "@types/wrap-ansi@^3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/@types/wrap-ansi/-/wrap-ansi-3.0.0.tgz#18b97a972f94f60a679fd5c796d96421b9abb9fd" @@ -3441,36 +3042,6 @@ dependencies: "@types/yargs-parser" "*" -"@types/yeoman-environment@*": - version "2.10.11" - resolved "https://registry.yarnpkg.com/@types/yeoman-environment/-/yeoman-environment-2.10.11.tgz#8327b621007af4846431baf4e7304f4de9137a50" - integrity sha512-kIDgoiuPnL9HGHwa2t6h4FiUgYFb411/okY0nKhRKw+IMsRxMOWzQUFhZ/CKQvwXvKoCjFTj+MZI2KXAKxVmug== - dependencies: - "@types/diff" "*" - "@types/inquirer" "^8" - "@types/mem-fs" "*" - "@types/node" "*" - "@types/text-table" "*" - "@types/vinyl" "*" - "@types/yeoman-generator" "*" - chalk "^4.1.0" - commander "^9.0.0" - execa "^5.0.0" - rxjs "^6.4.0" - -"@types/yeoman-generator@*", "@types/yeoman-generator@^5.2.8": - version "5.2.14" - resolved "https://registry.yarnpkg.com/@types/yeoman-generator/-/yeoman-generator-5.2.14.tgz#31bc71dfaf2a11885a41924779a5e8abd2d1612f" - integrity sha512-eIYBqQyURXiAaoU6jvJqMI+tNSG4s7EXtcHucLCgb8EV2vqz4x1WPr91MT0MiWHV8+9dDRrMkc1VZ6LduexuyA== - dependencies: - "@types/debug" "*" - "@types/ejs" "*" - "@types/inquirer" "^8" - "@types/mem-fs-editor" "*" - "@types/node" "*" - "@types/yeoman-environment" "*" - rxjs "^6.4.0" - "@typescript-eslint/eslint-plugin@^8.6.0": version "8.18.1" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.18.1.tgz#992e5ac1553ce20d0d46aa6eccd79dc36dedc805" @@ -3716,11 +3287,6 @@ JSONStream@^1.3.5: jsonparse "^1.2.0" through ">=2.2.7 <3" -abbrev@1, abbrev@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" - integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== - abbrev@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-2.0.0.tgz#cf59829b8b4f03f89dda2771cb7f3653828c89bf" @@ -3763,13 +3329,6 @@ add-stream@^1.0.0: resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" integrity sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ== -agent-base@6, agent-base@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" - agent-base@^7.0.2, agent-base@^7.1.0, agent-base@^7.1.1: version "7.1.1" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-7.1.1.tgz#bdbded7dfb096b751a2a087eeeb9664725b2e317" @@ -3777,13 +3336,6 @@ agent-base@^7.0.2, agent-base@^7.1.0, agent-base@^7.1.1: dependencies: debug "^4.3.4" -agentkeepalive@^4.1.3, agentkeepalive@^4.2.1: - version "4.5.0" - resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-4.5.0.tgz#2673ad1389b3c418c5a20c5d7364f93ca04be923" - integrity sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew== - dependencies: - humanize-ms "^1.2.1" - aggregate-error@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" @@ -3910,7 +3462,7 @@ append-transform@^2.0.0: dependencies: default-require-extensions "^3.0.0" -aproba@2.0.0, "aproba@^1.0.3 || ^2.0.0": +aproba@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc" integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ== @@ -3920,22 +3472,6 @@ archy@^1.0.0: resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40" integrity sha512-Xg+9RwCg/0p32teKdGMPTPnVXKD0w3DfHnFTficozsAgsvq2XenPJq/MYpzzQ/v8zrOyJn6Ds39VA4JIDwFfqw== -are-we-there-yet@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz#372e0e7bd279d8e94c653aaa1f67200884bf3e1c" - integrity sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw== - dependencies: - delegates "^1.0.0" - readable-stream "^3.6.0" - -are-we-there-yet@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz#679df222b278c64f2cdba1175cdc00b0d96164bd" - integrity sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg== - dependencies: - delegates "^1.0.0" - readable-stream "^3.6.0" - arg@^4.1.0: version "4.1.3" resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" @@ -3988,11 +3524,6 @@ arrify@^2.0.1: resolved "https://registry.yarnpkg.com/arrify/-/arrify-2.0.1.tgz#c9655e9331e0abcd588d2a7cad7e9956f66701fa" integrity sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug== -asap@^2.0.0: - version "2.0.6" - resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" - integrity sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA== - async@^3.2.3: version "3.2.6" resolved "https://registry.yarnpkg.com/async/-/async-3.2.6.tgz#1b0728e14929d51b85b449b7f06e27c1145e38ce" @@ -4119,18 +3650,6 @@ before-after-hook@^2.2.0: resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c" integrity sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ== -bin-links@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/bin-links/-/bin-links-3.0.3.tgz#3842711ef3db2cd9f16a5f404a996a12db355a6e" - integrity sha512-zKdnMPWEdh4F5INR07/eBrodC7QrF5JKvqskjz/ZZRXg5YSAZIbn8zGhbhUrElzHBZ2fvEQdOU59RHcTG3GiwA== - dependencies: - cmd-shim "^5.0.0" - mkdirp-infer-owner "^2.0.0" - npm-normalize-package-bin "^2.0.0" - read-cmd-shim "^3.0.0" - rimraf "^3.0.0" - write-file-atomic "^4.0.0" - bin-links@^4.0.4: version "4.0.4" resolved "https://registry.yarnpkg.com/bin-links/-/bin-links-4.0.4.tgz#c3565832b8e287c85f109a02a17027d152a58a63" @@ -4146,11 +3665,6 @@ binary-extensions@^2.0.0: resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== -binaryextensions@^4.15.0, binaryextensions@^4.16.0: - version "4.19.0" - resolved "https://registry.yarnpkg.com/binaryextensions/-/binaryextensions-4.19.0.tgz#7944b41ce6bbbcd3e544e05f65794ac48caaa132" - integrity sha512-DRxnVbOi/1OgA5pA9EDiRT8gvVYeqfuN7TmPfLyt6cyho3KbHCi3EtDQf39TTmGDrR5dZ9CspdXhPkL/j/WGbg== - bl@^4.0.3, bl@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" @@ -4253,11 +3767,6 @@ buffer@^6.0.3: base64-js "^1.3.1" ieee754 "^1.2.1" -builtins@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88" - integrity sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ== - bundle-name@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/bundle-name/-/bundle-name-4.1.0.tgz#f3b96b34160d6431a19d7688135af7cfb8797889" @@ -4280,72 +3789,6 @@ bytes@3.1.2: resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== -cacache@^15.0.3, cacache@^15.0.5, cacache@^15.2.0: - version "15.3.0" - resolved "https://registry.yarnpkg.com/cacache/-/cacache-15.3.0.tgz#dc85380fb2f556fe3dda4c719bfa0ec875a7f1eb" - integrity sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ== - dependencies: - "@npmcli/fs" "^1.0.0" - "@npmcli/move-file" "^1.0.1" - chownr "^2.0.0" - fs-minipass "^2.0.0" - glob "^7.1.4" - infer-owner "^1.0.4" - lru-cache "^6.0.0" - minipass "^3.1.1" - minipass-collect "^1.0.2" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.2" - mkdirp "^1.0.3" - p-map "^4.0.0" - promise-inflight "^1.0.1" - rimraf "^3.0.2" - ssri "^8.0.1" - tar "^6.0.2" - unique-filename "^1.1.1" - -cacache@^16.1.0: - version "16.1.3" - resolved "https://registry.yarnpkg.com/cacache/-/cacache-16.1.3.tgz#a02b9f34ecfaf9a78c9f4bc16fceb94d5d67a38e" - integrity sha512-/+Emcj9DAXxX4cwlLmRI9c166RuL3w30zp4R7Joiv2cQTtTtA+jeuCAjH3ZlGnYS3tKENSrKhAzVVP9GVyzeYQ== - dependencies: - "@npmcli/fs" "^2.1.0" - "@npmcli/move-file" "^2.0.0" - chownr "^2.0.0" - fs-minipass "^2.1.0" - glob "^8.0.1" - infer-owner "^1.0.4" - lru-cache "^7.7.1" - minipass "^3.1.6" - minipass-collect "^1.0.2" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - mkdirp "^1.0.4" - p-map "^4.0.0" - promise-inflight "^1.0.1" - rimraf "^3.0.2" - ssri "^9.0.0" - tar "^6.1.11" - unique-filename "^2.0.0" - -cacache@^17.0.0: - version "17.1.4" - resolved "https://registry.yarnpkg.com/cacache/-/cacache-17.1.4.tgz#b3ff381580b47e85c6e64f801101508e26604b35" - integrity sha512-/aJwG2l3ZMJ1xNAnqbMpA40of9dj/pIH3QfiuQSqjfPJF747VR0J/bHn+/KdNnHKc6XQcWt/AfRSBft82W1d2A== - dependencies: - "@npmcli/fs" "^3.1.0" - fs-minipass "^3.0.0" - glob "^10.2.2" - lru-cache "^7.7.1" - minipass "^7.0.3" - minipass-collect "^1.0.2" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - p-map "^4.0.0" - ssri "^10.0.0" - tar "^6.1.11" - unique-filename "^3.0.0" - cacache@^18.0.0, cacache@^18.0.3: version "18.0.4" resolved "https://registry.yarnpkg.com/cacache/-/cacache-18.0.4.tgz#4601d7578dadb59c66044e157d02a3314682d6a5" @@ -4583,13 +4026,6 @@ cli-spinners@^2.5.0: resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.9.2.tgz#1773a8f4b9c4d6ac31563df53b3fc1d79462fe41" integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg== -cli-table@^0.3.1: - version "0.3.11" - resolved "https://registry.yarnpkg.com/cli-table/-/cli-table-0.3.11.tgz#ac69cdecbe81dccdba4889b9a18b7da312a9d3ee" - integrity sha512-IqLQi4lO0nIB4tcdTpN4LCB9FI3uqrJZK7RC515EnhZ6qBaglkIgICb1wjeAqpdoOabm1+SuQtkXIPdYC93jhQ== - dependencies: - colors "1.0.3" - cli-truncate@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-4.0.0.tgz#6cc28a2924fee9e25ce91e973db56c7066e6172a" @@ -4635,11 +4071,6 @@ cliui@^8.0.1: strip-ansi "^6.0.1" wrap-ansi "^7.0.0" -clone-buffer@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/clone-buffer/-/clone-buffer-1.0.0.tgz#e3e25b207ac4e701af721e2cb5a16792cac3dc58" - integrity sha512-KLLTJWrvwIP+OPfMn0x2PheDEP20RPUcGXj/ERegTgdmPEZylALQldygiqrPPu8P45uNuPs7ckmReLY6v/iA5g== - clone-deep@4.0.1, clone-deep@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" @@ -4649,42 +4080,16 @@ clone-deep@4.0.1, clone-deep@^4.0.1: kind-of "^6.0.2" shallow-clone "^3.0.0" -clone-stats@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-1.0.0.tgz#b3782dff8bb5474e18b9b6bf0fdfe782f8777680" - integrity sha512-au6ydSpg6nsrigcZ4m8Bc9hxjeW+GJ8xh5G3BJCMt4WXe1H10UNaVOamqQTmrx1kjVuxAHIQSNU6hY4Nsn9/ag== - clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== -clone@^2.1.1: - version "2.1.2" - resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f" - integrity sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w== - -cloneable-readable@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/cloneable-readable/-/cloneable-readable-1.1.3.tgz#120a00cb053bfb63a222e709f9683ea2e11d8cec" - integrity sha512-2EF8zTQOxYq70Y4XKtorQupqF0m49MBz2/yf5Bj+MHjvpG3Hy7sImifnqD6UA+TKYxeSV+u6qqQPawN5UvnpKQ== - dependencies: - inherits "^2.0.1" - process-nextick-args "^2.0.0" - readable-stream "^2.3.5" - cmd-shim@6.0.3, cmd-shim@^6.0.0: version "6.0.3" resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-6.0.3.tgz#c491e9656594ba17ac83c4bd931590a9d6e26033" integrity sha512-FMabTRlc5t5zjdenF6mS0MBeFZm0XqHqeOkcskKFb/LYCcRQ5fVgLOHVc4Lq9CqABd9zhjwPjMBCJvMCziSVtA== -cmd-shim@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/cmd-shim/-/cmd-shim-5.0.0.tgz#8d0aaa1a6b0708630694c4dbde070ed94c707724" - integrity sha512-qkCtZ59BidfEwHltnJwkyVZn+XQojdAySM1D1gSeh11Z4pW1Kpolkyo53L5noc0nrxmIvyFwTmJRo4xs7FFLPw== - dependencies: - mkdirp-infer-owner "^2.0.0" - co@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" @@ -4712,7 +4117,7 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -color-support@1.1.3, color-support@^1.1.2, color-support@^1.1.3: +color-support@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== @@ -4722,11 +4127,6 @@ colorette@^2.0.10, colorette@^2.0.14, colorette@^2.0.16, colorette@^2.0.20: resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a" integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== -colors@1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" - integrity sha512-pFGrxThWcWQ2MsAz6RtgeWe4NK2kUE1WfsrvvlctdII745EW9I0yflqhe7++M5LEc7bV2c/9/5zc8sFcpL0Drw== - columnify@1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/columnify/-/columnify-1.6.0.tgz#6989531713c9008bb29735e61e37acf5bd553cf3" @@ -4742,11 +4142,6 @@ combined-stream@^1.0.8: dependencies: delayed-stream "~1.0.0" -commander@7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-7.1.0.tgz#f2eaecf131f10e36e07d894698226e36ae0eb5ff" - integrity sha512-pRxBna3MJe6HKnBGsDyMv8ETbptw3axEdYHoqNh7gu5oDcew8fs0xnivZGm06Ogk8zGAJ9VX+OPEr2GXEQK4dg== - commander@^10.0.1: version "10.0.1" resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" @@ -4767,11 +4162,6 @@ commander@^7.2.0: resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== -commander@^9.0.0: - version "9.5.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-9.5.0.tgz#bc08d1eb5cedf7ccb797a96199d41c7bc3e60d30" - integrity sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ== - comment-json@^4.2.5: version "4.2.5" resolved "https://registry.yarnpkg.com/comment-json/-/comment-json-4.2.5.tgz#482e085f759c2704b60bc6f97f55b8c01bc41e70" @@ -4841,7 +4231,7 @@ connect-history-api-fallback@^2.0.0: resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8" integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA== -console-control-strings@^1.0.0, console-control-strings@^1.1.0: +console-control-strings@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" integrity sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ== @@ -5183,11 +4573,6 @@ dateformat@^3.0.3: resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== -dateformat@^4.5.0: - version "4.6.3" - resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-4.6.3.tgz#556fa6497e5217fedb78821424f8a1c22fa3f4b5" - integrity sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA== - debounce@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.1.tgz#38881d8f4166a5c5848020c11827b834bcb3e0a5" @@ -5200,18 +4585,20 @@ debug@2.6.9: dependencies: ms "2.0.0" -debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.3, debug@^4.3.4, debug@~4.4.0: +debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: + version "4.3.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52" + integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ== + dependencies: + ms "^2.1.3" + +debug@~4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.0.tgz#2b3f2aea2ffeb776477460267377dc8710faba8a" integrity sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA== dependencies: ms "^2.1.3" -debuglog@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492" - integrity sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw== - decamelize-keys@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.1.tgz#04a2d523b2f18d80d0158a43b895d56dff8d19d8" @@ -5230,11 +4617,6 @@ dedent@1.5.3, dedent@^1.0.0: resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.3.tgz#99aee19eb9bae55a67327717b6e848d0bf777e5a" integrity sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ== -deep-extend@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" - integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== - deep-is@^0.1.3: version "0.1.4" resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" @@ -5330,11 +4712,6 @@ delayed-stream@~1.0.0: resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== -delegates@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" - integrity sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ== - depd@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" @@ -5345,7 +4722,7 @@ depd@~1.1.2: resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== -deprecation@^2.0.0, deprecation@^2.3.1: +deprecation@^2.0.0: version "2.3.1" resolved "https://registry.yarnpkg.com/deprecation/-/deprecation-2.3.1.tgz#6368cbdb40abf3373b525ac87e4a260c3a700919" integrity sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ== @@ -5375,14 +4752,6 @@ detect-node@^2.0.4: resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.1.0.tgz#c9c70775a49c3d03bc2c06d9a73be550f978f8b1" integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g== -dezalgo@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/dezalgo/-/dezalgo-1.0.4.tgz#751235260469084c132157dfa857f386d4c33d81" - integrity sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig== - dependencies: - asap "^2.0.0" - wrappy "1" - diff-sequences@^29.6.3: version "29.6.3" resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921" @@ -5393,11 +4762,6 @@ diff@^4.0.1: resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== -diff@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-5.2.0.tgz#26ded047cd1179b78b9537d5ef725503ce1ae531" - integrity sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A== - dir-glob@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" @@ -5461,7 +4825,7 @@ ee-first@1.1.1: resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== -ejs@^3.1.10, ejs@^3.1.7, ejs@^3.1.8: +ejs@^3.1.10, ejs@^3.1.7: version "3.1.10" resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.10.tgz#69ab8358b14e896f80cc39e62087b88500c3ac3b" integrity sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA== @@ -5503,7 +4867,7 @@ encodeurl@~2.0.0: resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58" integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg== -encoding@^0.1.12, encoding@^0.1.13: +encoding@^0.1.13: version "0.1.13" resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A== @@ -5569,11 +4933,6 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -error@^10.4.0: - version "10.4.0" - resolved "https://registry.yarnpkg.com/error/-/error-10.4.0.tgz#6fcf0fd64bceb1e750f8ed9a3dd880f00e46a487" - integrity sha512-YxIFEJuhgcICugOUvRx5th0UM+ActZ9sjY0QJmeVwsQdvosZ7kYzc9QqS0Da3R5iUmgU5meGIxh0xBeZpMVeLw== - es-define-property@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" @@ -5814,7 +5173,7 @@ execa@5.0.0: signal-exit "^3.0.3" strip-final-newline "^2.0.0" -execa@^5.0.0, execa@^5.1.1: +execa@^5.0.0: version "5.1.1" resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== @@ -6088,21 +5447,6 @@ find-up@^7.0.0: path-exists "^5.0.0" unicorn-magic "^0.1.0" -find-yarn-workspace-root2@1.2.16: - version "1.2.16" - resolved "https://registry.yarnpkg.com/find-yarn-workspace-root2/-/find-yarn-workspace-root2-1.2.16.tgz#60287009dd2f324f59646bdb4b7610a6b301c2a9" - integrity sha512-hr6hb1w8ePMpPVUK39S4RlwJzi+xPLuVuG8XlwXU3KD5Yn3qgBWVfy3AzNlDhWvE1EORCE65/Qm26rFQt3VLVA== - dependencies: - micromatch "^4.0.2" - pkg-dir "^4.2.0" - -first-chunk-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/first-chunk-stream/-/first-chunk-stream-2.0.0.tgz#1bdecdb8e083c0664b91945581577a43a9f31d70" - integrity sha512-X8Z+b/0L4lToKYq+lwnKqi9X/Zek0NibLpsJgVsSxpoYq7JtiCtRb5HqKVEjEw/qAb/4AKKRLOwwKHlWNpm2Eg== - dependencies: - readable-stream "^2.0.2" - flat-cache@^3.0.4: version "3.2.0" resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.2.0.tgz#2c0c2d5040c99b1632771a9d105725c0115363ee" @@ -6196,7 +5540,7 @@ fs-extra@^11.2.0: jsonfile "^6.0.1" universalify "^2.0.0" -fs-minipass@^2.0.0, fs-minipass@^2.1.0: +fs-minipass@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb" integrity sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg== @@ -6225,35 +5569,6 @@ function-bind@^1.1.2: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== -gauge@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-3.0.2.tgz#03bf4441c044383908bcfa0656ad91803259b395" - integrity sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q== - dependencies: - aproba "^1.0.3 || ^2.0.0" - color-support "^1.1.2" - console-control-strings "^1.0.0" - has-unicode "^2.0.1" - object-assign "^4.1.1" - signal-exit "^3.0.0" - string-width "^4.2.3" - strip-ansi "^6.0.1" - wide-align "^1.1.2" - -gauge@^4.0.3: - version "4.0.4" - resolved "https://registry.yarnpkg.com/gauge/-/gauge-4.0.4.tgz#52ff0652f2bbf607a989793d53b751bef2328dce" - integrity sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg== - dependencies: - aproba "^1.0.3 || ^2.0.0" - color-support "^1.1.3" - console-control-strings "^1.1.0" - has-unicode "^2.0.1" - signal-exit "^3.0.7" - string-width "^4.2.3" - strip-ansi "^6.0.1" - wide-align "^1.1.5" - gensequence@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/gensequence/-/gensequence-7.0.0.tgz#bb6aedec8ff665e3a6c42f92823121e3a6ea7718" @@ -6388,13 +5703,6 @@ gitconfiglocal@^1.0.0: dependencies: ini "^1.3.2" -github-username@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/github-username/-/github-username-6.0.0.tgz#d543eced7295102996cd8e4e19050ebdcbe60658" - integrity sha512-7TTrRjxblSI5l6adk9zd+cV5d6i1OrJSo3Vr9xdGqFLBQo0mz5P9eIfKCDJ7eekVGGFLbce0qbPSnktXV2BjDQ== - dependencies: - "@octokit/rest" "^18.0.6" - glob-parent@6.0.2, glob-parent@^6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" @@ -6426,7 +5734,7 @@ glob@^10.2.2, glob@^10.3.10: package-json-from-dist "^1.0.0" path-scurry "^1.11.1" -glob@^7.0.0, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: +glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== @@ -6438,17 +5746,6 @@ glob@^7.0.0, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^8.0.1: - version "8.1.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-8.1.0.tgz#d388f656593ef708ee3e34640fdfb99a9fd1c33e" - integrity sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^5.0.1" - once "^1.3.0" - glob@^9.2.0: version "9.3.5" resolved "https://registry.yarnpkg.com/glob/-/glob-9.3.5.tgz#ca2ed8ca452781a3009685607fdf025a899dfe21" @@ -6483,7 +5780,7 @@ globals@^15.11.0: resolved "https://registry.yarnpkg.com/globals/-/globals-15.11.0.tgz#b96ed4c6998540c6fb824b24b5499216d2438d6e" integrity sha512-yeyNSjdbyVaWurlwCpcA6XNBrHTMIeDdj0/hnvX/OLJ9ekOXYbLsLinH/MucQyGvNnXhidTdNhTtJaffL2sMfw== -globby@11.1.0, globby@^11.0.1, globby@^11.1.0: +globby@11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== @@ -6525,7 +5822,7 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" -graceful-fs@4.2.11, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.5, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.10, graceful-fs@^4.2.11, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: +graceful-fs@4.2.11, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.10, graceful-fs@^4.2.11, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -6535,11 +5832,6 @@ graphemer@^1.4.0: resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== -grouped-queue@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/grouped-queue/-/grouped-queue-2.0.0.tgz#a2c6713f2171e45db2c300a3a9d7c119d694dac8" - integrity sha512-/PiFUa7WIsl48dUeCvhIHnwNmAAzlI/eHoJl0vu3nsFA366JleY7Ff8EVTplZu5kO0MIdZjKTTnzItL61ahbnw== - gzip-size@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462" @@ -6596,7 +5888,7 @@ has-symbols@^1.0.3: resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== -has-unicode@2.0.1, has-unicode@^2.0.1: +has-unicode@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" integrity sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ== @@ -6636,13 +5928,6 @@ hosted-git-info@^4.0.0, hosted-git-info@^4.0.1: dependencies: lru-cache "^6.0.0" -hosted-git-info@^6.0.0: - version "6.1.1" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-6.1.1.tgz#629442c7889a69c05de604d52996b74fe6f26d58" - integrity sha512-r0EI+HBMcXadMrugk0GCQ+6BQV39PiWAZVfq7oIckeGiN7sjRGyQxPdft3nQekFTCQbYxLBH+/axZMeH8UX6+w== - dependencies: - lru-cache "^7.5.1" - hosted-git-info@^7.0.0, hosted-git-info@^7.0.2: version "7.0.2" resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-7.0.2.tgz#9b751acac097757667f30114607ef7b661ff4f17" @@ -6665,7 +5950,7 @@ html-escaper@^2.0.0, html-escaper@^2.0.2: resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== -http-cache-semantics@^4.1.0, http-cache-semantics@^4.1.1: +http-cache-semantics@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a" integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== @@ -6701,24 +5986,6 @@ http-parser-js@>=0.5.1: resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.5.8.tgz#af23090d9ac4e24573de6f6aecc9d84a48bf20e3" integrity sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q== -http-proxy-agent@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" - integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== - dependencies: - "@tootallnate/once" "1" - agent-base "6" - debug "4" - -http-proxy-agent@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz#5129800203520d434f142bc78ff3c170800f2b43" - integrity sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w== - dependencies: - "@tootallnate/once" "2" - agent-base "6" - debug "4" - http-proxy-agent@^7.0.0: version "7.0.2" resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz#9a8b1f246866c028509486585f62b8f2c18c270e" @@ -6747,14 +6014,6 @@ http-proxy@^1.18.1: follow-redirects "^1.0.0" requires-port "^1.0.0" -https-proxy-agent@^5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" - integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== - dependencies: - agent-base "6" - debug "4" - https-proxy-agent@^7.0.1: version "7.0.5" resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz#9e8b5013873299e11fab6fd548405da2d6c602b2" @@ -6773,13 +6032,6 @@ human-signals@^5.0.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28" integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ== -humanize-ms@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed" - integrity sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ== - dependencies: - ms "^2.0.0" - husky@^9.1.4: version "9.1.7" resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.7.tgz#d46a38035d101b46a70456a850ff4201344c0b2d" @@ -6814,14 +6066,7 @@ ieee754@^1.1.13, ieee754@^1.2.1: resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== -ignore-walk@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-4.0.1.tgz#fc840e8346cf88a3a9380c5b17933cd8f4d39fa3" - integrity sha512-rzDQLaW4jQbh2YrOFlJdCtX8qgJTehFRYiUB2r1osqTeDzV/3+Jh8fz1oAPzUThf3iku8Ds4IDqawI5d8mUiQw== - dependencies: - minimatch "^3.0.4" - -ignore-walk@^6.0.0, ignore-walk@^6.0.4: +ignore-walk@^6.0.4: version "6.0.5" resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-6.0.5.tgz#ef8d61eab7da169078723d1f82833b36e200b0dd" integrity sha512-VuuG0wCnjhnylG1ABXT3dAuIpTNDs/G8jlpmwXY03fXoXy/8ZK8/T+hMzt8L4WnrLCJgdybqgPagnF/f97cg3A== @@ -6882,11 +6127,6 @@ indent-string@^5.0.0: resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-5.0.0.tgz#4fd2980fccaf8622d14c64d694f4cf33c81951a5" integrity sha512-m6FAo/spmsW2Ab2fU35JTYwtOKa2yAwXSwgjSv1TJzh4Mh7mC3lzAOVLBprb72XsTrgkEIsl7YrFNAiDiRhIGg== -infer-owner@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/infer-owner/-/infer-owner-1.0.4.tgz#c4cefcaa8e51051c2a40ba2ce8a3d27295af9467" - integrity sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A== - inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -6933,7 +6173,7 @@ init-package-json@6.0.3: validate-npm-package-license "^3.0.4" validate-npm-package-name "^5.0.0" -inquirer@^8.0.0, inquirer@^8.2.4: +inquirer@^8.2.4: version "8.2.6" resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.6.tgz#733b74888195d8d400a67ac332011b5fae5ea562" integrity sha512-M1WuAmb7pn9zdFRtQYk26ZBoY043Sse0wVDdk4Bppr+JOXyQYybdtvK+l9wUibhtjdjvtoiNy8tk+EgsYIUqKg== @@ -6972,11 +6212,6 @@ inquirer@^9.2.10: wrap-ansi "^6.2.0" yoctocolors-cjs "^2.1.2" -interpret@^1.0.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e" - integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== - interpret@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/interpret/-/interpret-3.1.1.tgz#5be0ceed67ca79c6c4bc5cf0d7ee843dcea110c4" @@ -7019,7 +6254,7 @@ is-ci@3.0.1: dependencies: ci-info "^3.2.0" -is-core-module@^2.13.0, is-core-module@^2.5.0, is-core-module@^2.8.1: +is-core-module@^2.13.0, is-core-module@^2.5.0: version "2.15.1" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37" integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ== @@ -7122,11 +6357,6 @@ is-plain-obj@^1.0.0, is-plain-obj@^1.1.0: resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== -is-plain-obj@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" - integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== - is-plain-obj@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7" @@ -7144,13 +6374,6 @@ is-plain-object@^5.0.0: resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344" integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== -is-scoped@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-scoped/-/is-scoped-2.1.0.tgz#fef0713772658bdf5bee418608267ddae6d3566d" - integrity sha512-Cv4OpPTHAK9kHYzkzCrof3VJh7H/PrG2MBUMvvJebaaUMbqhm0YAtXnvh0I3Hnj2tMZWwrRROWLSgfJrKqWmlQ== - dependencies: - scoped-regex "^2.0.0" - is-ssh@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/is-ssh/-/is-ssh-1.4.0.tgz#4f8220601d2839d8fa624b3106f8e8884f01b8b2" @@ -7197,11 +6420,6 @@ is-unicode-supported@^0.1.0: resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== -is-utf8@^0.2.0, is-utf8@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" - integrity sha512-rMYPYvCzsXywIsldgLaSoPlw5PfoB/ssr7hY4pLfcodrA5M/eArza1a9VmTiNIBNMjOGr1Ow9mTyU2o69U6U9Q== - is-windows@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" @@ -7226,11 +6444,6 @@ isarray@~1.0.0: resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== -isbinaryfile@^4.0.10: - version "4.0.10" - resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-4.0.10.tgz#0c5b5e30c2557a2f06febd37b7322946aaee42b3" - integrity sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw== - isbinaryfile@^5.0.0: version "5.0.3" resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-5.0.3.tgz#d7d9451fad89d7d3e889567f00bed6d3ea950bd3" @@ -7739,7 +6952,7 @@ js-yaml@4.1.0, js-yaml@^4.1.0: dependencies: argparse "^2.0.1" -js-yaml@^3.10.0, js-yaml@^3.13.0, js-yaml@^3.13.1: +js-yaml@^3.10.0, js-yaml@^3.13.1: version "3.14.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== @@ -7836,11 +7049,6 @@ just-diff-apply@^5.2.0: resolved "https://registry.yarnpkg.com/just-diff-apply/-/just-diff-apply-5.5.0.tgz#771c2ca9fa69f3d2b54e7c3f5c1dfcbcc47f9f0f" integrity sha512-OYTthRfSh55WOItVqwpefPtNt2VdKsq5AnAK6apdtR6yCH8pr0CmSr710J0Mf+WdQy7K/OzMy7K2MgAfdQURDw== -just-diff@^5.0.1: - version "5.2.0" - resolved "https://registry.yarnpkg.com/just-diff/-/just-diff-5.2.0.tgz#60dca55891cf24cd4a094e33504660692348a241" - integrity sha512-6ufhP9SHjb7jibNFrNxyFZ6od3g+An6Ai9mhGRvcYe8UJlH0prseN64M+6ZBBUoKYHZsitDP42gAJ8+eVWr3lw== - just-diff@^6.0.0: version "6.0.2" resolved "https://registry.yarnpkg.com/just-diff/-/just-diff-6.0.2.tgz#03b65908543ac0521caf6d8eb85035f7d27ea285" @@ -8056,16 +7264,6 @@ load-json-file@^4.0.0: pify "^3.0.0" strip-bom "^3.0.0" -load-yaml-file@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/load-yaml-file/-/load-yaml-file-0.2.0.tgz#af854edaf2bea89346c07549122753c07372f64d" - integrity sha512-OfCBkGEw4nN6JLtgRidPX6QxjBQGQf72q3si2uvqyFEMbycSFFHwAZeXx6cJgFM9wmLrf9zBwCP3Ivqa+LLZPw== - dependencies: - graceful-fs "^4.1.5" - js-yaml "^3.13.0" - pify "^4.0.1" - strip-bom "^3.0.0" - loader-runner@^4.2.0: version "4.3.0" resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1" @@ -8178,7 +7376,7 @@ lodash.upperfirst@^4.3.1: resolved "https://registry.yarnpkg.com/lodash.upperfirst/-/lodash.upperfirst-4.3.1.tgz#1365edf431480481ef0d1c68957a5ed99d49f7ce" integrity sha512-sReKOYJIJf74dhJONhU4e0/shzi1trVbSWDOhKYE5XV2O+H7Sb2Dihwuc7xWxVl+DgFPyTqIN3zMfT9cq5iWDg== -lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.21: +lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -8228,11 +7426,6 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" -lru-cache@^7.4.4, lru-cache@^7.5.1, lru-cache@^7.7.1: - version "7.18.3" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-7.18.3.tgz#f793896e0fd0e954a59dfdd82f0773808df6aa89" - integrity sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA== - make-dir@4.0.0, make-dir@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" @@ -8260,49 +7453,6 @@ make-error@^1.1.1, make-error@^1.3.6: resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== -make-fetch-happen@^10.0.1, make-fetch-happen@^10.0.3: - version "10.2.1" - resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-10.2.1.tgz#f5e3835c5e9817b617f2770870d9492d28678164" - integrity sha512-NgOPbRiaQM10DYXvN3/hhGVI2M5MtITFryzBGxHM5p4wnFxsVCbxkrBrDsk+EZ5OB4jEOT7AjDxtdF+KVEFT7w== - dependencies: - agentkeepalive "^4.2.1" - cacache "^16.1.0" - http-cache-semantics "^4.1.0" - http-proxy-agent "^5.0.0" - https-proxy-agent "^5.0.0" - is-lambda "^1.0.1" - lru-cache "^7.7.1" - minipass "^3.1.6" - minipass-collect "^1.0.2" - minipass-fetch "^2.0.3" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - negotiator "^0.6.3" - promise-retry "^2.0.1" - socks-proxy-agent "^7.0.0" - ssri "^9.0.0" - -make-fetch-happen@^11.0.0, make-fetch-happen@^11.0.1, make-fetch-happen@^11.1.1: - version "11.1.1" - resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-11.1.1.tgz#85ceb98079584a9523d4bf71d32996e7e208549f" - integrity sha512-rLWS7GCSTcEujjVBs2YqG7Y4643u8ucvCJeSRqiLYhesrDuzeuFIk37xREzAsfQaqzl8b9rNCE4m6J8tvX4Q8w== - dependencies: - agentkeepalive "^4.2.1" - cacache "^17.0.0" - http-cache-semantics "^4.1.1" - http-proxy-agent "^5.0.0" - https-proxy-agent "^5.0.0" - is-lambda "^1.0.1" - lru-cache "^7.7.1" - minipass "^5.0.0" - minipass-fetch "^3.0.0" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - negotiator "^0.6.3" - promise-retry "^2.0.1" - socks-proxy-agent "^7.0.0" - ssri "^10.0.0" - make-fetch-happen@^13.0.0, make-fetch-happen@^13.0.1: version "13.0.1" resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-13.0.1.tgz#273ba2f78f45e1f3a6dca91cede87d9fa4821e36" @@ -8321,28 +7471,6 @@ make-fetch-happen@^13.0.0, make-fetch-happen@^13.0.1: promise-retry "^2.0.1" ssri "^10.0.0" -make-fetch-happen@^9.1.0: - version "9.1.0" - resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz#53085a09e7971433e6765f7971bf63f4e05cb968" - integrity sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg== - dependencies: - agentkeepalive "^4.1.3" - cacache "^15.2.0" - http-cache-semantics "^4.1.0" - http-proxy-agent "^4.0.1" - https-proxy-agent "^5.0.0" - is-lambda "^1.0.1" - lru-cache "^6.0.0" - minipass "^3.1.3" - minipass-collect "^1.0.2" - minipass-fetch "^1.3.2" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - negotiator "^0.6.2" - promise-retry "^2.0.1" - socks-proxy-agent "^6.0.0" - ssri "^8.0.0" - makeerror@1.0.12: version "1.0.12" resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" @@ -8365,32 +7493,6 @@ media-typer@0.3.0: resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== -"mem-fs-editor@^8.1.2 || ^9.0.0", mem-fs-editor@^9.0.0: - version "9.7.0" - resolved "https://registry.yarnpkg.com/mem-fs-editor/-/mem-fs-editor-9.7.0.tgz#dbb458b8acb885c84013645e93f71aa267a7fdf6" - integrity sha512-ReB3YD24GNykmu4WeUL/FDIQtkoyGB6zfJv60yfCo3QjKeimNcTqv2FT83bP0ccs6uu+sm5zyoBlspAzigmsdg== - dependencies: - binaryextensions "^4.16.0" - commondir "^1.0.1" - deep-extend "^0.6.0" - ejs "^3.1.8" - globby "^11.1.0" - isbinaryfile "^5.0.0" - minimatch "^7.2.0" - multimatch "^5.0.0" - normalize-path "^3.0.0" - textextensions "^5.13.0" - -"mem-fs@^1.2.0 || ^2.0.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/mem-fs/-/mem-fs-2.3.0.tgz#d38bdd729ab0316bfb56d0d0ff669f91e7078463" - integrity sha512-GftCCBs6EN8sz3BoWO1bCj8t7YBtT713d8bUgbhg9Iel5kFSqnSvCK06TYIDJAtJ51cSiWkM/YemlT0dfoFycw== - dependencies: - "@types/node" "^15.6.2" - "@types/vinyl" "^2.0.4" - vinyl "^2.0.1" - vinyl-file "^3.0.0" - memfs@^4.6.0: version "4.14.0" resolved "https://registry.yarnpkg.com/memfs/-/memfs-4.14.0.tgz#48d5e85a03ea0b428280003212fbca3063531be3" @@ -8539,13 +7641,6 @@ minimatch@^5.0.1: dependencies: brace-expansion "^2.0.1" -minimatch@^7.2.0: - version "7.4.6" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-7.4.6.tgz#845d6f254d8f4a5e4fd6baf44d5f10c8448365fb" - integrity sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw== - dependencies: - brace-expansion "^2.0.1" - minimatch@^8.0.2: version "8.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-8.0.4.tgz#847c1b25c014d4e9a7f68aaf63dedd668a626229" @@ -8574,13 +7669,6 @@ minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6, minimist@^1.2.8: resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== -minipass-collect@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-1.0.2.tgz#22b813bf745dc6edba2576b940022ad6edc8c617" - integrity sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA== - dependencies: - minipass "^3.0.0" - minipass-collect@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-2.0.1.tgz#1621bc77e12258a12c60d34e2276ec5c20680863" @@ -8588,28 +7676,6 @@ minipass-collect@^2.0.1: dependencies: minipass "^7.0.3" -minipass-fetch@^1.3.2, minipass-fetch@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-1.4.1.tgz#d75e0091daac1b0ffd7e9d41629faff7d0c1f1b6" - integrity sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw== - dependencies: - minipass "^3.1.0" - minipass-sized "^1.0.3" - minizlib "^2.0.0" - optionalDependencies: - encoding "^0.1.12" - -minipass-fetch@^2.0.3: - version "2.1.2" - resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-2.1.2.tgz#95560b50c472d81a3bc76f20ede80eaed76d8add" - integrity sha512-LT49Zi2/WMROHYoqGgdlQIZh8mLPZmOrN2NdJjMXxYe4nkN6FUyuPuOAOedNJDrx0IRGg9+4guZewtp8hE6TxA== - dependencies: - minipass "^3.1.6" - minipass-sized "^1.0.3" - minizlib "^2.1.2" - optionalDependencies: - encoding "^0.1.13" - minipass-fetch@^3.0.0: version "3.0.5" resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-3.0.5.tgz#f0f97e40580affc4a35cc4a1349f05ae36cb1e4c" @@ -8628,15 +7694,7 @@ minipass-flush@^1.0.5: dependencies: minipass "^3.0.0" -minipass-json-stream@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/minipass-json-stream/-/minipass-json-stream-1.0.2.tgz#5121616c77a11c406c3ffa77509e0b77bb267ec3" - integrity sha512-myxeeTm57lYs8pH2nxPzmEEg8DGIgW+9mv6D4JZD2pa81I/OBjeU7PtICXV6c9eRGTA5JMDsuIPUZRCyBMYNhg== - dependencies: - jsonparse "^1.3.1" - minipass "^3.0.0" - -minipass-pipeline@^1.2.2, minipass-pipeline@^1.2.4: +minipass-pipeline@^1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz#68472f79711c084657c067c5c6ad93cddea8214c" integrity sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A== @@ -8650,7 +7708,7 @@ minipass-sized@^1.0.3: dependencies: minipass "^3.0.0" -minipass@^3.0.0, minipass@^3.1.0, minipass@^3.1.1, minipass@^3.1.3, minipass@^3.1.6: +minipass@^3.0.0: version "3.3.6" resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.3.6.tgz#7bba384db3a1520d18c9c0e5251c3444e95dd94a" integrity sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw== @@ -8672,7 +7730,7 @@ minipass@^5.0.0: resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707" integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw== -minizlib@^2.0.0, minizlib@^2.1.1, minizlib@^2.1.2: +minizlib@^2.1.1, minizlib@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931" integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg== @@ -8680,16 +7738,7 @@ minizlib@^2.0.0, minizlib@^2.1.1, minizlib@^2.1.2: minipass "^3.0.0" yallist "^4.0.0" -mkdirp-infer-owner@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/mkdirp-infer-owner/-/mkdirp-infer-owner-2.0.0.tgz#55d3b368e7d89065c38f32fd38e638f0ab61d316" - integrity sha512-sdqtiFt3lkOaYvTXSRIUjkIdPTcxgv5+fgqYE/5qgwdw12cOrAuzzgzvVExIkH/ul1oeHN3bCLOWSG3XOqbKKw== - dependencies: - chownr "^2.0.0" - infer-owner "^1.0.4" - mkdirp "^1.0.3" - -mkdirp@^1.0.3, mkdirp@^1.0.4: +mkdirp@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== @@ -8714,7 +7763,7 @@ ms@2.0.0: resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== -ms@2.1.3, ms@^2.0.0, ms@^2.1.3: +ms@2.1.3, ms@^2.1.3: version "2.1.3" resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== @@ -8727,7 +7776,7 @@ multicast-dns@^7.2.5: dns-packet "^5.2.2" thunky "^1.0.2" -multimatch@5.0.0, multimatch@^5.0.0: +multimatch@5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-5.0.0.tgz#932b800963cea7a31a033328fa1e0c3a1874dbe6" integrity sha512-ypMKuglUrZUD99Tk2bUQ+xNQj43lPEfAeX2o9cTteAmShXy2VHDJpuwu1o0xqoKCt9jLVAvwyFKdLTPXKAfJyA== @@ -8758,7 +7807,7 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -negotiator@0.6.3, negotiator@^0.6.2, negotiator@^0.6.3: +negotiator@0.6.3, negotiator@^0.6.3: version "0.6.3" resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== @@ -8816,39 +7865,6 @@ node-gyp@^10.0.0: tar "^6.2.1" which "^4.0.0" -node-gyp@^8.2.0: - version "8.4.1" - resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-8.4.1.tgz#3d49308fc31f768180957d6b5746845fbd429937" - integrity sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w== - dependencies: - env-paths "^2.2.0" - glob "^7.1.4" - graceful-fs "^4.2.6" - make-fetch-happen "^9.1.0" - nopt "^5.0.0" - npmlog "^6.0.0" - rimraf "^3.0.2" - semver "^7.3.5" - tar "^6.1.2" - which "^2.0.2" - -node-gyp@^9.0.0: - version "9.4.1" - resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-9.4.1.tgz#8a1023e0d6766ecb52764cc3a734b36ff275e185" - integrity sha512-OQkWKbjQKbGkMf/xqI1jjy3oCTgMKJac58G2+bjZb3fza6gW2YrCSdMQYaoTb70crvE//Gngr4f0AgVHmqHvBQ== - dependencies: - env-paths "^2.2.0" - exponential-backoff "^3.1.1" - glob "^7.1.4" - graceful-fs "^4.2.6" - make-fetch-happen "^10.0.3" - nopt "^6.0.0" - npmlog "^6.0.0" - rimraf "^3.0.2" - semver "^7.3.5" - tar "^6.1.2" - which "^2.0.2" - node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" @@ -8890,20 +7906,6 @@ node-releases@^2.0.18: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== -nopt@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-5.0.0.tgz#530942bb58a512fccafe53fe210f13a25355dc88" - integrity sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ== - dependencies: - abbrev "1" - -nopt@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-6.0.0.tgz#245801d8ebf409c6df22ab9d95b65e1309cdb16d" - integrity sha512-ZwLpbTgdhuZUnZzjd7nb1ZV+4DoiC6/sfiVKok72ym/4Tlf+DFdlHYmT2JPmcNNWV6Pi3SDf1kT+A4r9RTuT9g== - dependencies: - abbrev "^1.0.0" - nopt@^7.0.0, nopt@^7.2.1: version "7.2.1" resolved "https://registry.yarnpkg.com/nopt/-/nopt-7.2.1.tgz#1cac0eab9b8e97c9093338446eddd40b2c8ca1e7" @@ -8931,16 +7933,6 @@ normalize-package-data@^3.0.0, normalize-package-data@^3.0.3: semver "^7.3.4" validate-npm-package-license "^3.0.1" -normalize-package-data@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-5.0.0.tgz#abcb8d7e724c40d88462b84982f7cbf6859b4588" - integrity sha512-h9iPVIfrVZ9wVYQnxFgtw1ugSvGEMOlyPWWtm8BMJhnwyEL/FLbYbTY3V3PpjI/BUK67n9PEWDu6eHzu1fB15Q== - dependencies: - hosted-git-info "^6.0.0" - is-core-module "^2.8.1" - semver "^7.3.5" - validate-npm-package-license "^3.0.4" - normalize-package-data@^6.0.0, normalize-package-data@^6.0.1: version "6.0.2" resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-6.0.2.tgz#a7bc22167fe24025412bcff0a9651eb768b03506" @@ -8955,13 +7947,6 @@ normalize-path@^3.0.0, normalize-path@~3.0.0: resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== -npm-bundled@^1.1.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.1.2.tgz#944c78789bd739035b70baa2ca5cc32b8d860bc1" - integrity sha512-x5DHup0SuyQcmL3s7Rx/YQ8sbw/Hzg0rj48eN0dV7hf5cmQq5PXIeioroH3raV1QC1yh3uTYuMThvEQF3iKgGQ== - dependencies: - npm-normalize-package-bin "^1.0.1" - npm-bundled@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-3.0.1.tgz#cca73e15560237696254b10170d8f86dad62da25" @@ -8969,13 +7954,6 @@ npm-bundled@^3.0.0: dependencies: npm-normalize-package-bin "^3.0.0" -npm-install-checks@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/npm-install-checks/-/npm-install-checks-4.0.0.tgz#a37facc763a2fde0497ef2c6d0ac7c3fbe00d7b4" - integrity sha512-09OmyDkNLYwqKPOnbI8exiOZU2GVVmQp7tgez2BPi5OZC8M82elDAps7sxC4l//uSUtotWqoEIDwjRvWH4qz8w== - dependencies: - semver "^7.1.1" - npm-install-checks@^6.0.0, npm-install-checks@^6.2.0: version "6.3.0" resolved "https://registry.yarnpkg.com/npm-install-checks/-/npm-install-checks-6.3.0.tgz#046552d8920e801fa9f919cad569545d60e826fe" @@ -8983,16 +7961,6 @@ npm-install-checks@^6.0.0, npm-install-checks@^6.2.0: dependencies: semver "^7.1.1" -npm-normalize-package-bin@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz#6e79a41f23fd235c0623218228da7d9c23b8f6e2" - integrity sha512-EPfafl6JL5/rU+ot6P3gRSCpPDW5VmIzX959Ob1+ySFUuuYHWHekXpwdUZcKP5C+DS4GEtdJluwBjnsNDl+fSA== - -npm-normalize-package-bin@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-2.0.0.tgz#9447a1adaaf89d8ad0abe24c6c84ad614a675fff" - integrity sha512-awzfKUO7v0FscrSpRoogyNm0sajikhBWpU0QMrW09AMi9n1PoKU6WaIqUzuJSQnpciZZmJ/jMZ2Egfmb/9LiWQ== - npm-normalize-package-bin@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.1.tgz#25447e32a9a7de1f51362c61a559233b89947832" @@ -9008,16 +7976,6 @@ npm-package-arg@11.0.2: semver "^7.3.5" validate-npm-package-name "^5.0.0" -npm-package-arg@^10.0.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-10.1.0.tgz#827d1260a683806685d17193073cc152d3c7e9b1" - integrity sha512-uFyyCEmgBfZTtrKk/5xDfHp6+MdrqGotX/VoOyEEl3mBwiEE5FlBaePanazJSVMPT7vKepcjYBY2ztg9A3yPIA== - dependencies: - hosted-git-info "^6.0.0" - proc-log "^3.0.0" - semver "^7.3.5" - validate-npm-package-name "^5.0.0" - npm-package-arg@^11.0.0, npm-package-arg@^11.0.2: version "11.0.3" resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-11.0.3.tgz#dae0c21199a99feca39ee4bfb074df3adac87e2d" @@ -9028,15 +7986,6 @@ npm-package-arg@^11.0.0, npm-package-arg@^11.0.2: semver "^7.3.5" validate-npm-package-name "^5.0.0" -npm-package-arg@^8.0.1, npm-package-arg@^8.1.2, npm-package-arg@^8.1.5: - version "8.1.5" - resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-8.1.5.tgz#3369b2d5fe8fdc674baa7f1786514ddc15466e44" - integrity sha512-LhgZrg0n0VgvzVdSm1oiZworPbTxYHUJCgtsJW8mGvlDpxTM1vSJc3m5QZeUkhAHIzbz3VCHd/R4osi1L1Tg/Q== - dependencies: - hosted-git-info "^4.0.1" - semver "^7.3.4" - validate-npm-package-name "^3.0.0" - npm-packlist@8.0.2, npm-packlist@^8.0.0: version "8.0.2" resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-8.0.2.tgz#5b8d1d906d96d21c85ebbeed2cf54147477c8478" @@ -9044,43 +7993,6 @@ npm-packlist@8.0.2, npm-packlist@^8.0.0: dependencies: ignore-walk "^6.0.4" -npm-packlist@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-3.0.0.tgz#0370df5cfc2fcc8f79b8f42b37798dd9ee32c2a9" - integrity sha512-L/cbzmutAwII5glUcf2DBRNY/d0TFd4e/FnaZigJV6JD85RHZXJFGwCndjMWiiViiWSsWt3tiOLpI3ByTnIdFQ== - dependencies: - glob "^7.1.6" - ignore-walk "^4.0.1" - npm-bundled "^1.1.1" - npm-normalize-package-bin "^1.0.1" - -npm-packlist@^7.0.0: - version "7.0.4" - resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-7.0.4.tgz#033bf74110eb74daf2910dc75144411999c5ff32" - integrity sha512-d6RGEuRrNS5/N84iglPivjaJPxhDbZmlbTwTDX2IbcRHG5bZCdtysYMhwiPvcF4GisXHGn7xsxv+GQ7T/02M5Q== - dependencies: - ignore-walk "^6.0.0" - -npm-pick-manifest@^6.0.0, npm-pick-manifest@^6.1.0, npm-pick-manifest@^6.1.1: - version "6.1.1" - resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-6.1.1.tgz#7b5484ca2c908565f43b7f27644f36bb816f5148" - integrity sha512-dBsdBtORT84S8V8UTad1WlUyKIY9iMsAmqxHbLdeEeBNMLQDlDWWra3wYUx9EBEIiG/YwAy0XyNHDd2goAsfuA== - dependencies: - npm-install-checks "^4.0.0" - npm-normalize-package-bin "^1.0.1" - npm-package-arg "^8.1.2" - semver "^7.3.4" - -npm-pick-manifest@^8.0.0: - version "8.0.2" - resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-8.0.2.tgz#2159778d9c7360420c925c1a2287b5a884c713aa" - integrity sha512-1dKY+86/AIiq1tkKVD3l0WI+Gd3vkknVGAggsFeBkTvbhMQ1OND/LKkYv4JtXPKUJ8bOTCyLiqEg2P6QNdK+Gg== - dependencies: - npm-install-checks "^6.0.0" - npm-normalize-package-bin "^3.0.0" - npm-package-arg "^10.0.0" - semver "^7.3.5" - npm-pick-manifest@^9.0.0, npm-pick-manifest@^9.0.1: version "9.1.0" resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-9.1.0.tgz#83562afde52b0b07cb6244361788d319ce7e8636" @@ -9091,31 +8003,6 @@ npm-pick-manifest@^9.0.0, npm-pick-manifest@^9.0.1: npm-package-arg "^11.0.0" semver "^7.3.5" -npm-registry-fetch@^12.0.0, npm-registry-fetch@^12.0.1: - version "12.0.2" - resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-12.0.2.tgz#ae583bb3c902a60dae43675b5e33b5b1f6159f1e" - integrity sha512-Df5QT3RaJnXYuOwtXBXS9BWs+tHH2olvkCLh6jcR/b/u3DvPMlp3J0TvvYwplPKxHMOwfg287PYih9QqaVFoKA== - dependencies: - make-fetch-happen "^10.0.1" - minipass "^3.1.6" - minipass-fetch "^1.4.1" - minipass-json-stream "^1.0.1" - minizlib "^2.1.2" - npm-package-arg "^8.1.5" - -npm-registry-fetch@^14.0.0: - version "14.0.5" - resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-14.0.5.tgz#fe7169957ba4986a4853a650278ee02e568d115d" - integrity sha512-kIDMIo4aBm6xg7jOttupWZamsZRkAqMqwqqbVXnUqstY5+tapvv6bkH/qMR76jdgV+YljEUCyWx3hRYMrJiAgA== - dependencies: - make-fetch-happen "^11.0.0" - minipass "^5.0.0" - minipass-fetch "^3.0.0" - minipass-json-stream "^1.0.1" - minizlib "^2.1.2" - npm-package-arg "^10.0.0" - proc-log "^3.0.0" - npm-registry-fetch@^17.0.0, npm-registry-fetch@^17.0.1, npm-registry-fetch@^17.1.0: version "17.1.0" resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-17.1.0.tgz#fb69e8e762d456f08bda2f5f169f7638fb92beb1" @@ -9144,26 +8031,6 @@ npm-run-path@^5.1.0: dependencies: path-key "^4.0.0" -npmlog@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-5.0.1.tgz#f06678e80e29419ad67ab964e0fa69959c1eb8b0" - integrity sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw== - dependencies: - are-we-there-yet "^2.0.0" - console-control-strings "^1.1.0" - gauge "^3.0.0" - set-blocking "^2.0.0" - -npmlog@^6.0.0: - version "6.0.2" - resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-6.0.2.tgz#c8166017a42f2dea92d6453168dd865186a70830" - integrity sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg== - dependencies: - are-we-there-yet "^3.0.0" - console-control-strings "^1.1.0" - gauge "^4.0.3" - set-blocking "^2.0.0" - "nx@>=17.1.2 < 21": version "20.0.7" resolved "https://registry.yarnpkg.com/nx/-/nx-20.0.7.tgz#ddf2fc19b8d91f97db0256202307a29bfbeba39e" @@ -9246,11 +8113,6 @@ nyc@^17.1.0: test-exclude "^6.0.0" yargs "^15.0.2" -object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== - object-inspect@^1.13.1: version "1.13.2" resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.2.tgz#dea0088467fb991e67af4058147a24824a3043ff" @@ -9475,7 +8337,7 @@ p-pipe@3.1.0: resolved "https://registry.yarnpkg.com/p-pipe/-/p-pipe-3.1.0.tgz#48b57c922aa2e1af6a6404cb7c6bf0eb9cc8e60e" integrity sha512-08pj8ATpzMR0Y80x50yJHn37NF6vjrqHutASaX5LiH5npS9XPvrUmscd9MF5R4fuYRHOxQR1FfMIlF7AzwoPqw== -p-queue@6.6.2, p-queue@^6.6.2: +p-queue@6.6.2: version "6.6.2" resolved "https://registry.yarnpkg.com/p-queue/-/p-queue-6.6.2.tgz#2068a9dcf8e67dd0ec3e7a2bcb76810faa85e426" integrity sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ== @@ -9504,14 +8366,6 @@ p-timeout@^3.2.0: dependencies: p-finally "^1.0.0" -p-transform@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/p-transform/-/p-transform-1.3.0.tgz#2da960ba92c6a56efbe75cbd1edf3ea7b3191049" - integrity sha512-UJKdSzgd3KOnXXAtqN5+/eeHcvTn1hBkesEmElVgvO/NAYcxAvmjzIGmnNd3Tb/gRAvMBdNRFD4qAWdHxY6QXg== - dependencies: - debug "^4.3.2" - p-queue "^6.6.2" - p-try@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" @@ -9544,55 +8398,6 @@ package-json-from-dist@^1.0.0: resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz#4f1471a010827a86f94cfd9b0727e36d267de505" integrity sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw== -pacote@^12.0.0, pacote@^12.0.2: - version "12.0.3" - resolved "https://registry.yarnpkg.com/pacote/-/pacote-12.0.3.tgz#b6f25868deb810e7e0ddf001be88da2bcaca57c7" - integrity sha512-CdYEl03JDrRO3x18uHjBYA9TyoW8gy+ThVcypcDkxPtKlw76e4ejhYB6i9lJ+/cebbjpqPW/CijjqxwDTts8Ow== - dependencies: - "@npmcli/git" "^2.1.0" - "@npmcli/installed-package-contents" "^1.0.6" - "@npmcli/promise-spawn" "^1.2.0" - "@npmcli/run-script" "^2.0.0" - cacache "^15.0.5" - chownr "^2.0.0" - fs-minipass "^2.1.0" - infer-owner "^1.0.4" - minipass "^3.1.3" - mkdirp "^1.0.3" - npm-package-arg "^8.0.1" - npm-packlist "^3.0.0" - npm-pick-manifest "^6.0.0" - npm-registry-fetch "^12.0.0" - promise-retry "^2.0.1" - read-package-json-fast "^2.0.1" - rimraf "^3.0.2" - ssri "^8.0.1" - tar "^6.1.0" - -pacote@^15.2.0: - version "15.2.0" - resolved "https://registry.yarnpkg.com/pacote/-/pacote-15.2.0.tgz#0f0dfcc3e60c7b39121b2ac612bf8596e95344d3" - integrity sha512-rJVZeIwHTUta23sIZgEIM62WYwbmGbThdbnkt81ravBplQv+HjyroqnLRNH2+sLJHcGZmLRmhPwACqhfTcOmnA== - dependencies: - "@npmcli/git" "^4.0.0" - "@npmcli/installed-package-contents" "^2.0.1" - "@npmcli/promise-spawn" "^6.0.1" - "@npmcli/run-script" "^6.0.0" - cacache "^17.0.0" - fs-minipass "^3.0.0" - minipass "^5.0.0" - npm-package-arg "^10.0.0" - npm-packlist "^7.0.0" - npm-pick-manifest "^8.0.0" - npm-registry-fetch "^14.0.0" - proc-log "^3.0.0" - promise-retry "^2.0.1" - read-package-json "^6.0.0" - read-package-json-fast "^3.0.0" - sigstore "^1.3.0" - ssri "^10.0.0" - tar "^6.1.11" - pacote@^18.0.0, pacote@^18.0.6: version "18.0.6" resolved "https://registry.yarnpkg.com/pacote/-/pacote-18.0.6.tgz#ac28495e24f4cf802ef911d792335e378e86fac7" @@ -9638,15 +8443,6 @@ parent-module@^2.0.0: dependencies: callsites "^3.1.0" -parse-conflict-json@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/parse-conflict-json/-/parse-conflict-json-2.0.2.tgz#3d05bc8ffe07d39600dc6436c6aefe382033d323" - integrity sha512-jDbRGb00TAPFsKWCpZZOT93SxVP9nONOSgES3AevqRq/CHvavEBvKAjxX9p5Y5F0RZLxH9Ufd9+RwtCsa+lFDA== - dependencies: - json-parse-even-better-errors "^2.3.1" - just-diff "^5.0.1" - just-diff-apply "^5.2.0" - parse-conflict-json@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/parse-conflict-json/-/parse-conflict-json-3.0.1.tgz#67dc55312781e62aa2ddb91452c7606d1969960c" @@ -9888,16 +8684,6 @@ postcss@^8.4.33: picocolors "^1.1.0" source-map-js "^1.2.1" -preferred-pm@^3.0.3: - version "3.1.4" - resolved "https://registry.yarnpkg.com/preferred-pm/-/preferred-pm-3.1.4.tgz#b99cf3da129cdb63555649b226b7530e82769769" - integrity sha512-lEHd+yEm22jXdCphDrkvIJQU66EuLojPPtvZkpKIkiD+l0DMThF/niqZKJSoU8Vl7iuvtmzyMhir9LdVy5WMnA== - dependencies: - find-up "^5.0.0" - find-yarn-workspace-root2 "1.2.16" - path-exists "^4.0.0" - which-pm "^2.2.0" - prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -9908,11 +8694,6 @@ prettier@^3.3.3: resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.4.2.tgz#a5ce1fb522a588bf2b78ca44c6e6fe5aa5a2b13f" integrity sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ== -pretty-bytes@^5.3.0: - version "5.6.0" - resolved "https://registry.yarnpkg.com/pretty-bytes/-/pretty-bytes-5.6.0.tgz#356256f643804773c82f64723fe78c92c62beaeb" - integrity sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg== - pretty-format@^29.0.0, pretty-format@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812" @@ -9922,22 +8703,12 @@ pretty-format@^29.0.0, pretty-format@^29.7.0: ansi-styles "^5.0.0" react-is "^18.0.0" -proc-log@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-1.0.0.tgz#0d927307401f69ed79341e83a0b2c9a13395eb77" - integrity sha512-aCk8AO51s+4JyuYGg3Q/a6gnrlDO09NpVWePtjp7xwphcoQ04x5WAfCyugcsbLooWcMJ87CLkD4+604IckEdhg== - -proc-log@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-3.0.0.tgz#fb05ef83ccd64fd7b20bbe9c8c1070fc08338dd8" - integrity sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A== - proc-log@^4.0.0, proc-log@^4.1.0, proc-log@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-4.2.0.tgz#b6f461e4026e75fdfe228b265e9f7a00779d7034" integrity sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA== -process-nextick-args@^2.0.0, process-nextick-args@~2.0.0: +process-nextick-args@~2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== @@ -9964,11 +8735,6 @@ promise-all-reject-late@^1.0.0: resolved "https://registry.yarnpkg.com/promise-all-reject-late/-/promise-all-reject-late-1.0.1.tgz#f8ebf13483e5ca91ad809ccc2fcf25f26f8643c2" integrity sha512-vuf0Lf0lOxyQREH7GDIOUMLS7kz+gs8i6B+Yi8dC68a2sychGrHTJYghMBD6k7eUcH0H5P73EckCA48xijWqXw== -promise-call-limit@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/promise-call-limit/-/promise-call-limit-1.0.2.tgz#f64b8dd9ef7693c9c7613e7dfe8d6d24de3031ea" - integrity sha512-1vTUnfI2hzui8AEIixbdAJlFY4LFDXqQswy/2eOlThAscXCY4It8FdVuI0fMJGAB2aWGbdQf/gv0skKYXmdrHA== - promise-call-limit@^3.0.1: version "3.0.2" resolved "https://registry.yarnpkg.com/promise-call-limit/-/promise-call-limit-3.0.2.tgz#524b7f4b97729ff70417d93d24f46f0265efa4f9" @@ -10079,19 +8845,6 @@ read-cmd-shim@4.0.0, read-cmd-shim@^4.0.0: resolved "https://registry.yarnpkg.com/read-cmd-shim/-/read-cmd-shim-4.0.0.tgz#640a08b473a49043e394ae0c7a34dd822c73b9bb" integrity sha512-yILWifhaSEEytfXI76kB9xEEiG1AiozaCJZ83A87ytjRiN+jVibXjedjCRNjoZviinhG+4UkalO3mWTd8u5O0Q== -read-cmd-shim@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/read-cmd-shim/-/read-cmd-shim-3.0.1.tgz#868c235ec59d1de2db69e11aec885bc095aea087" - integrity sha512-kEmDUoYf/CDy8yZbLTmhB1X9kkjf9Q80PCNsDMb7ufrGd6zZSQA1+UyjrO+pZm5K/S4OXCWJeiIt1JA8kAsa6g== - -read-package-json-fast@^2.0.1, read-package-json-fast@^2.0.2, read-package-json-fast@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/read-package-json-fast/-/read-package-json-fast-2.0.3.tgz#323ca529630da82cb34b36cc0b996693c98c2b83" - integrity sha512-W/BKtbL+dUjTuRL2vziuYhp76s5HZ9qQhd/dKfWIZveD0O40453QNyZhC0e63lqZrAQ4jiOapVoeJ7JrszenQQ== - dependencies: - json-parse-even-better-errors "^2.3.0" - npm-normalize-package-bin "^1.0.1" - read-package-json-fast@^3.0.0, read-package-json-fast@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz#394908a9725dc7a5f14e70c8e7556dff1d2b1049" @@ -10100,16 +8853,6 @@ read-package-json-fast@^3.0.0, read-package-json-fast@^3.0.2: json-parse-even-better-errors "^3.0.0" npm-normalize-package-bin "^3.0.0" -read-package-json@^6.0.0: - version "6.0.4" - resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-6.0.4.tgz#90318824ec456c287437ea79595f4c2854708836" - integrity sha512-AEtWXYfopBj2z5N5PbkAOeNHRPUg5q+Nen7QLxV8M2zJq1ym6/lCz3fYNTCXe19puu2d06jfHhrP7v/S2PtMMw== - dependencies: - glob "^10.2.2" - json-parse-even-better-errors "^3.0.0" - normalize-package-data "^5.0.0" - npm-normalize-package-bin "^3.0.0" - read-pkg-up@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07" @@ -10153,7 +8896,7 @@ read@^3.0.1: dependencies: mute-stream "^1.0.0" -readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.3.5, readable-stream@~2.3.6: +readable-stream@^2.0.1, readable-stream@~2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== @@ -10166,7 +8909,7 @@ readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.3.5, readable string_decoder "~1.1.1" util-deprecate "~1.0.1" -readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.0.6, readable-stream@^3.1.1, readable-stream@^3.4.0, readable-stream@^3.6.0: +readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.0.6, readable-stream@^3.1.1, readable-stream@^3.4.0: version "3.6.2" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== @@ -10175,7 +8918,7 @@ readable-stream@^3.0.0, readable-stream@^3.0.2, readable-stream@^3.0.6, readable string_decoder "^1.1.1" util-deprecate "^1.0.1" -readable-stream@^4.3.0, readable-stream@^4.5.2: +readable-stream@^4.5.2: version "4.5.2" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-4.5.2.tgz#9e7fc4c45099baeed934bff6eb97ba6cf2729e09" integrity sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g== @@ -10186,16 +8929,6 @@ readable-stream@^4.3.0, readable-stream@^4.5.2: process "^0.11.10" string_decoder "^1.3.0" -readdir-scoped-modules@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/readdir-scoped-modules/-/readdir-scoped-modules-1.1.0.tgz#8d45407b4f870a0dcaebc0e28670d18e74514309" - integrity sha512-asaikDeqAQg7JifRsZn1NJZXo9E+VwlyCfbkZhwyISinqk5zNS6266HS5kah6P0SaQKGF6SkNnZVHUzHFYxYDw== - dependencies: - debuglog "^1.0.1" - dezalgo "^1.0.0" - graceful-fs "^4.1.2" - once "^1.3.0" - readdirp@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-4.0.2.tgz#388fccb8b75665da3abffe2d8f8ed59fe74c230a" @@ -10208,13 +8941,6 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" -rechoir@^0.6.2: - version "0.6.2" - resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" - integrity sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw== - dependencies: - resolve "^1.1.6" - rechoir@^0.8.0: version "0.8.0" resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.8.0.tgz#49f866e0d32146142da3ad8f0eff352b3215ff22" @@ -10304,21 +9030,11 @@ release-zalgo@^1.0.0: dependencies: es6-error "^4.0.1" -remove-trailing-separator@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef" - integrity sha512-/hS+Y0u3aOfIETiaiirUFwDBDzmXPvO+jAfKTitUngIPzdKc6Z0LoFjM/CK5PL4C+eKwHohlHAb6H0VFfmmUsw== - repeat-string@^1.6.1: version "1.6.1" resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== -replace-ext@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.1.tgz#2d6d996d04a15855d967443631dd5f77825b016a" - integrity sha512-yD5BHCe7quCgBph4rMQ+0KkIRKwWCrHDOX1p1Gp6HwjPM5kVoCdKGNhN7ydqqsX6lJEnQDKZ/tFMiEdQ1dvPEw== - require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" @@ -10366,7 +9082,7 @@ resolve.exports@^2.0.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== -resolve@^1.1.6, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0, resolve@^1.22.4: +resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0, resolve@^1.22.4: version "1.22.8" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== @@ -10430,7 +9146,7 @@ run-applescript@^7.0.0: resolved "https://registry.yarnpkg.com/run-applescript/-/run-applescript-7.0.0.tgz#e5a553c2bffd620e169d276c1cd8f1b64778fbeb" integrity sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A== -run-async@^2.0.0, run-async@^2.4.0: +run-async@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.4.1.tgz#8440eccf99ea3e70bd409d49aab88e10c189a455" integrity sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ== @@ -10447,13 +9163,6 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -rxjs@^6.4.0: - version "6.6.7" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" - integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== - dependencies: - tslib "^1.9.0" - rxjs@^7.2.0, rxjs@^7.5.5, rxjs@^7.8.1: version "7.8.1" resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" @@ -10513,11 +9222,6 @@ schema-utils@^4.0.0, schema-utils@^4.2.0: ajv-formats "^2.1.1" ajv-keywords "^5.1.0" -scoped-regex@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/scoped-regex/-/scoped-regex-2.1.0.tgz#7b9be845d81fd9d21d1ec97c61a0b7cf86d2015f" - integrity sha512-g3WxHrqSWCZHGHlSrF51VXFdjImhwvH8ZO/pryFH56Qi0cDsZfylQa/t0jCzVQFNbNvM00HfHjkDPEuarKDSWQ== - select-hose@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" @@ -10541,7 +9245,7 @@ semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.0.0, semver@^7.1.1, semver@^7.1.3, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.6.3: +semver@^7.0.0, semver@^7.1.1, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.6.3: version "7.6.3" resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== @@ -10655,15 +9359,6 @@ shell-quote@^1.8.1: resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.1.tgz#6dbf4db75515ad5bac63b4f1894c3a154c766680" integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA== -shelljs@^0.8.5: - version "0.8.5" - resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.5.tgz#de055408d8361bed66c669d2f000538ced8ee20c" - integrity sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow== - dependencies: - glob "^7.0.0" - interpret "^1.0.0" - rechoir "^0.6.2" - side-channel@^1.0.6: version "1.0.6" resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" @@ -10674,7 +9369,7 @@ side-channel@^1.0.6: get-intrinsic "^1.2.4" object-inspect "^1.13.1" -signal-exit@3.0.7, signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: +signal-exit@3.0.7, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== @@ -10684,17 +9379,6 @@ signal-exit@^4.0.1, signal-exit@^4.1.0: resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== -sigstore@^1.3.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/sigstore/-/sigstore-1.9.0.tgz#1e7ad8933aa99b75c6898ddd0eeebc3eb0d59875" - integrity sha512-0Zjz0oe37d08VeOtBIuB6cRriqXse2e8w+7yIy2XSXjshRKxbc2KkhXjL229jXSxEm7UbcjS76wcJDGQddVI9A== - dependencies: - "@sigstore/bundle" "^1.1.0" - "@sigstore/protobuf-specs" "^0.2.0" - "@sigstore/sign" "^1.0.0" - "@sigstore/tuf" "^1.0.3" - make-fetch-happen "^11.0.1" - sigstore@^2.2.0: version "2.3.1" resolved "https://registry.yarnpkg.com/sigstore/-/sigstore-2.3.1.tgz#0755dd2cc4820f2e922506da54d3d628e13bfa39" @@ -10774,24 +9458,6 @@ sockjs@^0.3.24: uuid "^8.3.2" websocket-driver "^0.7.4" -socks-proxy-agent@^6.0.0: - version "6.2.1" - resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz#2687a31f9d7185e38d530bef1944fe1f1496d6ce" - integrity sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ== - dependencies: - agent-base "^6.0.2" - debug "^4.3.3" - socks "^2.6.2" - -socks-proxy-agent@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-7.0.0.tgz#dc069ecf34436621acb41e3efa66ca1b5fed15b6" - integrity sha512-Fgl0YPZ902wEsAyiQ+idGd1A7rSFx/ayC1CQVMw5P+EQx2V0SgpGtf6OKFhVjPflPUl9YMmEOnmfjCdMUsygww== - dependencies: - agent-base "^6.0.2" - debug "^4.3.3" - socks "^2.6.2" - socks-proxy-agent@^8.0.3: version "8.0.4" resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-8.0.4.tgz#9071dca17af95f483300316f4b063578fa0db08c" @@ -10801,7 +9467,7 @@ socks-proxy-agent@^8.0.3: debug "^4.3.4" socks "^2.8.3" -socks@^2.6.2, socks@^2.8.3: +socks@^2.8.3: version "2.8.3" resolved "https://registry.yarnpkg.com/socks/-/socks-2.8.3.tgz#1ebd0f09c52ba95a09750afe3f3f9f724a800cb5" integrity sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw== @@ -10816,13 +9482,6 @@ sort-keys@^2.0.0: dependencies: is-plain-obj "^1.0.0" -sort-keys@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-4.2.0.tgz#6b7638cee42c506fff8c1cecde7376d21315be18" - integrity sha512-aUYIEU/UviqPgc8mHR6IW1EGxkAXpeRETYcrzg8cLAvUPZcpAlleSXHV2mY7G12GphSH6Gzv+4MMVSSkbdteHg== - dependencies: - is-plain-obj "^2.0.0" - "source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46" @@ -10951,20 +9610,6 @@ ssri@^10.0.0, ssri@^10.0.6: dependencies: minipass "^7.0.3" -ssri@^8.0.0, ssri@^8.0.1: - version "8.0.1" - resolved "https://registry.yarnpkg.com/ssri/-/ssri-8.0.1.tgz#638e4e439e2ffbd2cd289776d5ca457c4f51a2af" - integrity sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ== - dependencies: - minipass "^3.1.1" - -ssri@^9.0.0: - version "9.0.1" - resolved "https://registry.yarnpkg.com/ssri/-/ssri-9.0.1.tgz#544d4c357a8d7b71a19700074b6883fcb4eae057" - integrity sha512-o57Wcn66jMQvfHG1FlYbWeZWW/dHZhJXjpIcTfXldXEk5nz5lStPo3mK0OJQfGR3RbZUlbISexbljkJzuEj/8Q== - dependencies: - minipass "^3.1.1" - stack-utils@^2.0.3: version "2.0.6" resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f" @@ -11058,28 +9703,6 @@ strip-ansi@^7.0.1, strip-ansi@^7.1.0: dependencies: ansi-regex "^6.0.1" -strip-bom-buf@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz#1cb45aaf57530f4caf86c7f75179d2c9a51dd572" - integrity sha512-1sUIL1jck0T1mhOLP2c696BIznzT525Lkub+n4jjMHjhjhoAQA6Ye659DxdlZBr0aLDMQoTxKIpnlqxgtwjsuQ== - dependencies: - is-utf8 "^0.2.1" - -strip-bom-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-bom-stream/-/strip-bom-stream-2.0.0.tgz#f87db5ef2613f6968aa545abfe1ec728b6a829ca" - integrity sha512-yH0+mD8oahBZWnY43vxs4pSinn8SMKAdml/EOGBewoe1Y0Eitd0h2Mg3ZRiXruUW6L4P+lvZiEgbh0NgUGia1w== - dependencies: - first-chunk-stream "^2.0.0" - strip-bom "^2.0.0" - -strip-bom@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" - integrity sha512-kwrX1y7czp1E69n2ajbG65mIo9dqvJ+8aBQXOGVxqwvNbsXdFM6Lq37dLAY3mknUwru8CfcCbfOLL/gMo+fi3g== - dependencies: - is-utf8 "^0.2.0" - strip-bom@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" @@ -11161,7 +9784,7 @@ tar-stream@~2.2.0: inherits "^2.0.3" readable-stream "^3.1.1" -tar@6.2.1, tar@^6.0.2, tar@^6.1.0, tar@^6.1.11, tar@^6.1.2, tar@^6.2.1: +tar@6.2.1, tar@^6.1.11, tar@^6.2.1: version "6.2.1" resolved "https://registry.yarnpkg.com/tar/-/tar-6.2.1.tgz#717549c541bc3c2af15751bea94b1dd068d4b03a" integrity sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A== @@ -11223,11 +9846,6 @@ text-table@^0.2.0: resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== -textextensions@^5.12.0, textextensions@^5.13.0: - version "5.16.0" - resolved "https://registry.yarnpkg.com/textextensions/-/textextensions-5.16.0.tgz#57dd60c305019bba321e848b1fdf0f99bfa59ec1" - integrity sha512-7D/r3s6uPZyU//MCYrX6I14nzauDwJ5CxazouuRGNuvSCihW87ufN6VLoROLCrHg6FblLuJrT6N2BVaPVzqElw== - thingies@^1.20.0: version "1.21.0" resolved "https://registry.yarnpkg.com/thingies/-/thingies-1.21.0.tgz#e80fbe58fd6fdaaab8fad9b67bd0a5c943c445c1" @@ -11315,11 +9933,6 @@ tree-dump@^1.0.1: resolved "https://registry.yarnpkg.com/tree-dump/-/tree-dump-1.0.2.tgz#c460d5921caeb197bde71d0e9a7b479848c5b8ac" integrity sha512-dpev9ABuLWdEubk+cIaI9cHwRNNDjkBBLXTwI4UCUFdQ5xXKqNXoK4FEciw/vxf+NQ7Cb7sGUyeUtORvHIdRXQ== -treeverse@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/treeverse/-/treeverse-1.0.4.tgz#a6b0ebf98a1bca6846ddc7ecbc900df08cb9cd5f" - integrity sha512-whw60l7r+8ZU8Tu/Uc2yxtc4ZTZbR/PF3u1IPNKGQ6p8EICLb3Z2lAgoqw9bqYd8IkgnsaOcLzYHFckjqNsf0g== - treeverse@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/treeverse/-/treeverse-3.0.0.tgz#dd82de9eb602115c6ebd77a574aae67003cb48c8" @@ -11389,25 +10002,11 @@ tsconfig-paths@^4.1.2: minimist "^1.2.6" strip-bom "^3.0.0" -tslib@^1.9.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.4.0: version "2.7.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.7.0.tgz#d9b40c5c40ab59e8738f297df3087bf1a2690c01" integrity sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA== -tuf-js@^1.1.7: - version "1.1.7" - resolved "https://registry.yarnpkg.com/tuf-js/-/tuf-js-1.1.7.tgz#21b7ae92a9373015be77dfe0cb282a80ec3bbe43" - integrity sha512-i3P9Kgw3ytjELUfpuKVDNBJvk4u5bXL6gskv572mcevPbSKCV3zt3djhmlEQ65yERjIbOSncy7U4cQJaB1CBCg== - dependencies: - "@tufjs/models" "1.0.4" - debug "^4.3.4" - make-fetch-happen "^11.1.1" - tuf-js@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/tuf-js/-/tuf-js-2.2.1.tgz#fdd8794b644af1a75c7aaa2b197ddffeb2911b56" @@ -11522,20 +10121,6 @@ unicorn-magic@^0.1.0: resolved "https://registry.yarnpkg.com/unicorn-magic/-/unicorn-magic-0.1.0.tgz#1bb9a51c823aaf9d73a8bfcd3d1a23dde94b0ce4" integrity sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ== -unique-filename@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-1.1.1.tgz#1d69769369ada0583103a1e6ae87681b56573230" - integrity sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ== - dependencies: - unique-slug "^2.0.0" - -unique-filename@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-2.0.1.tgz#e785f8675a9a7589e0ac77e0b5c34d2eaeac6da2" - integrity sha512-ODWHtkkdx3IAR+veKxFV+VBkUMcN+FaqzUUd7IZzt+0zhDZFPFxhlqwPF3YQvMHx1TD0tdgYl+kuPnJ8E6ql7A== - dependencies: - unique-slug "^3.0.0" - unique-filename@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-3.0.0.tgz#48ba7a5a16849f5080d26c760c86cf5cf05770ea" @@ -11543,20 +10128,6 @@ unique-filename@^3.0.0: dependencies: unique-slug "^4.0.0" -unique-slug@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-2.0.2.tgz#baabce91083fc64e945b0f3ad613e264f7cd4e6c" - integrity sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w== - dependencies: - imurmurhash "^0.1.4" - -unique-slug@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-3.0.0.tgz#6d347cf57c8a7a7a6044aabd0e2d74e4d76dc7c9" - integrity sha512-8EyMynh679x/0gqE9fT9oilG+qEt+ibFyqjuVTsZn1+CMxH+XLlpvr2UZx4nVcCwTpx81nICr2JQFkM+HPLq4w== - dependencies: - imurmurhash "^0.1.4" - unique-slug@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-4.0.0.tgz#6bae6bb16be91351badd24cdce741f892a6532e3" @@ -11579,11 +10150,6 @@ unpipe@1.0.0, unpipe@~1.0.0: resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== -untildify@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/untildify/-/untildify-4.0.0.tgz#2bc947b953652487e4600949fb091e3ae8cd919b" - integrity sha512-KK8xQ1mkzZeg9inewmFVDNkg3l5LUhoq9kN6iWYB/CC9YMG8HA+c1Q8HwDe6dEX7kErrEVNVBO3fWsVq5iDgtw== - upath@2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/upath/-/upath-2.0.1.tgz#50c73dea68d6f6b990f51d279ce6081665d61a8b" @@ -11665,41 +10231,11 @@ validate-npm-package-name@5.0.1, validate-npm-package-name@^5.0.0: resolved "https://registry.yarnpkg.com/validate-npm-package-name/-/validate-npm-package-name-5.0.1.tgz#a316573e9b49f3ccd90dbb6eb52b3f06c6d604e8" integrity sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ== -validate-npm-package-name@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz#5fa912d81eb7d0c74afc140de7317f0ca7df437e" - integrity sha512-M6w37eVCMMouJ9V/sdPGnC5H4uDr73/+xdq0FBLO3TFFX1+7wiUY6Es328NN+y43tmY+doUdN9g9J21vqB7iLw== - dependencies: - builtins "^1.0.3" - vary@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== -vinyl-file@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/vinyl-file/-/vinyl-file-3.0.0.tgz#b104d9e4409ffa325faadd520642d0a3b488b365" - integrity sha512-BoJDj+ca3D9xOuPEM6RWVtWQtvEPQiQYn82LvdxhLWplfQsBzBqtgK0yhCP0s1BNTi6dH9BO+dzybvyQIacifg== - dependencies: - graceful-fs "^4.1.2" - pify "^2.3.0" - strip-bom-buf "^1.0.0" - strip-bom-stream "^2.0.0" - vinyl "^2.0.1" - -vinyl@^2.0.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.2.1.tgz#23cfb8bbab5ece3803aa2c0a1eb28af7cbba1974" - integrity sha512-LII3bXRFBZLlezoG5FfZVcXflZgWP/4dCwKtxd5ky9+LOtM4CS3bIRQsmR1KMnMW07jpE8fqR2lcxPZ+8sJIcw== - dependencies: - clone "^2.1.1" - clone-buffer "^1.0.0" - clone-stats "^1.0.0" - cloneable-readable "^1.0.0" - remove-trailing-separator "^1.0.1" - replace-ext "^1.0.0" - vscode-languageserver-textdocument@^1.0.12: version "1.0.12" resolved "https://registry.yarnpkg.com/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.12.tgz#457ee04271ab38998a093c68c2342f53f6e4a631" @@ -11710,11 +10246,6 @@ vscode-uri@^3.0.8: resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-3.0.8.tgz#1770938d3e72588659a172d0fd4642780083ff9f" integrity sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw== -walk-up-path@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/walk-up-path/-/walk-up-path-1.0.0.tgz#d4745e893dd5fd0dbb58dd0a4c6a33d9c9fec53e" - integrity sha512-hwj/qMDUEjCU5h0xr90KGCf0tg0/LgJbmOWgrWKYlcJZM7XvquvUJZ0G/HMGr7F7OQMOUuPHWP9JpriinkAlkg== - walk-up-path@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/walk-up-path/-/walk-up-path-3.0.1.tgz#c8d78d5375b4966c717eb17ada73dbd41490e886" @@ -11887,28 +10418,13 @@ which-module@^2.0.0: resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== -which-pm@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/which-pm/-/which-pm-2.2.0.tgz#6b5d8efd7b5089b97cd51a36c60dd8e4ec7eca59" - integrity sha512-MOiaDbA5ZZgUjkeMWM5EkJp4loW5ZRoa5bc3/aeMox/PJelMhE6t7S/mLuiY43DBupyxH+S0U1bTui9kWUlmsw== - dependencies: - load-yaml-file "^0.2.0" - path-exists "^4.0.0" - -which@^2.0.1, which@^2.0.2: +which@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== dependencies: isexe "^2.0.0" -which@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/which/-/which-3.0.1.tgz#89f1cd0c23f629a8105ffe69b8172791c87b4be1" - integrity sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg== - dependencies: - isexe "^2.0.0" - which@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/which/-/which-4.0.0.tgz#cd60b5e74503a3fbcfbf6cd6b4138a8bae644c1a" @@ -11916,7 +10432,7 @@ which@^4.0.0: dependencies: isexe "^3.1.1" -wide-align@1.1.5, wide-align@^1.1.2, wide-align@^1.1.5: +wide-align@1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3" integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg== @@ -12006,7 +10522,7 @@ write-file-atomic@^3.0.0: signal-exit "^3.0.2" typedarray-to-buffer "^3.1.5" -write-file-atomic@^4.0.0, write-file-atomic@^4.0.2: +write-file-atomic@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.2.tgz#a9df01ae5b77858a027fd2e80768ee433555fcfd" integrity sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg== @@ -12141,70 +10657,6 @@ yargs@^16.2.0: y18n "^5.0.5" yargs-parser "^20.2.2" -yeoman-environment@^3.9.1: - version "3.19.3" - resolved "https://registry.yarnpkg.com/yeoman-environment/-/yeoman-environment-3.19.3.tgz#49c2339805fdf695fac42c88334a1daa94ee8b6c" - integrity sha512-/+ODrTUHtlDPRH9qIC0JREH8+7nsRcjDl3Bxn2Xo/rvAaVvixH5275jHwg0C85g4QsF4P6M2ojfScPPAl+pLAg== - dependencies: - "@npmcli/arborist" "^4.0.4" - are-we-there-yet "^2.0.0" - arrify "^2.0.1" - binaryextensions "^4.15.0" - chalk "^4.1.0" - cli-table "^0.3.1" - commander "7.1.0" - dateformat "^4.5.0" - debug "^4.1.1" - diff "^5.0.0" - error "^10.4.0" - escape-string-regexp "^4.0.0" - execa "^5.0.0" - find-up "^5.0.0" - globby "^11.0.1" - grouped-queue "^2.0.0" - inquirer "^8.0.0" - is-scoped "^2.1.0" - isbinaryfile "^4.0.10" - lodash "^4.17.10" - log-symbols "^4.0.0" - mem-fs "^1.2.0 || ^2.0.0" - mem-fs-editor "^8.1.2 || ^9.0.0" - minimatch "^3.0.4" - npmlog "^5.0.1" - p-queue "^6.6.2" - p-transform "^1.3.0" - pacote "^12.0.2" - preferred-pm "^3.0.3" - pretty-bytes "^5.3.0" - readable-stream "^4.3.0" - semver "^7.1.3" - slash "^3.0.0" - strip-ansi "^6.0.0" - text-table "^0.2.0" - textextensions "^5.12.0" - untildify "^4.0.0" - -yeoman-generator@^5.7.0: - version "5.10.0" - resolved "https://registry.yarnpkg.com/yeoman-generator/-/yeoman-generator-5.10.0.tgz#0dde5be9d815b01f77a7e77ee6f9047edcbeca04" - integrity sha512-iDUKykV7L4nDNzeYSedRmSeJ5eMYFucnKDi6KN1WNASXErgPepKqsQw55TgXPHnmpcyOh2Dd/LAZkyc+f0qaAw== - dependencies: - chalk "^4.1.0" - dargs "^7.0.0" - debug "^4.1.1" - execa "^5.1.1" - github-username "^6.0.0" - lodash "^4.17.11" - mem-fs-editor "^9.0.0" - minimist "^1.2.5" - pacote "^15.2.0" - read-pkg-up "^7.0.1" - run-async "^2.0.0" - semver "^7.2.1" - shelljs "^0.8.5" - sort-keys "^4.2.0" - text-table "^0.2.0" - yn@3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"