@tramvai/cli 2.63.0 → 2.65.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -38
- package/lib/api/analyze/providers/shared.js +1 -1
- package/lib/api/analyze/providers/shared.js.map +1 -1
- package/lib/api/benchmark/index.d.ts +1 -1
- package/lib/api/build/child-app.js +3 -2
- package/lib/api/build/child-app.js.map +1 -1
- package/lib/api/build/module.js +1 -2
- package/lib/api/build/module.js.map +1 -1
- package/lib/api/build/providers/shared.js +1 -1
- package/lib/api/build/providers/shared.js.map +1 -1
- package/lib/api/index.d.ts +6 -2
- package/lib/api/index.js +3 -3
- package/lib/api/index.js.map +1 -1
- package/lib/api/shared/types/withConfig.d.ts +3 -2
- package/lib/api/start/providers/application/shared.js +1 -1
- package/lib/api/start/providers/application/shared.js.map +1 -1
- package/lib/api/start/providers/child-app/shared.js +8 -7
- package/lib/api/start/providers/child-app/shared.js.map +1 -1
- package/lib/api/start/providers/module/shared.js +14 -13
- package/lib/api/start/providers/module/shared.js.map +1 -1
- package/lib/api/start/utils/banner.js +3 -2
- package/lib/api/start/utils/banner.js.map +1 -1
- package/lib/api/start/utils/tips/tips.js +10 -8
- package/lib/api/start/utils/tips/tips.js.map +1 -1
- package/lib/api/start-prod/providers/application.js +5 -5
- package/lib/api/start-prod/providers/application.js.map +1 -1
- package/lib/api/start-prod/providers/child-app.js +2 -2
- package/lib/api/start-prod/providers/child-app.js.map +1 -1
- package/lib/api/start-prod/providers/shared.js +3 -3
- package/lib/api/start-prod/providers/shared.js.map +1 -1
- package/lib/builder/webpack/devServer/client.js +18 -15
- package/lib/builder/webpack/devServer/client.js.map +1 -1
- package/lib/builder/webpack/devServer/notifier.d.ts +2 -2
- package/lib/builder/webpack/devServer/notifier.js +3 -3
- package/lib/builder/webpack/devServer/notifier.js.map +1 -1
- package/lib/builder/webpack/devServer/pool/process/pool.js +3 -2
- package/lib/builder/webpack/devServer/pool/process/pool.js.map +1 -1
- package/lib/builder/webpack/devServer/pool/thread/pool.js +7 -0
- package/lib/builder/webpack/devServer/pool/thread/pool.js.map +1 -1
- package/lib/builder/webpack/devServer/server.js +7 -2
- package/lib/builder/webpack/devServer/server.js.map +1 -1
- package/lib/builder/webpack/providers/analyze/shared.js +3 -3
- package/lib/builder/webpack/providers/analyze/shared.js.map +1 -1
- package/lib/builder/webpack/providers/build/application/server.js.map +1 -1
- package/lib/builder/webpack/providers/build/client.js +3 -3
- package/lib/builder/webpack/providers/build/client.js.map +1 -1
- package/lib/builder/webpack/providers/build/server.js +1 -1
- package/lib/builder/webpack/providers/build/server.js.map +1 -1
- package/lib/builder/webpack/tokens.d.ts +313 -3
- package/lib/builder/webpack/tokens.js.map +1 -1
- package/lib/builder/webpack/utils/copyBuildFile.d.ts +2 -1
- package/lib/builder/webpack/utils/copyBuildFile.js +2 -3
- package/lib/builder/webpack/utils/copyBuildFile.js.map +1 -1
- package/lib/builder/webpack/utils/copyStatsJsonFile.d.ts +2 -1
- package/lib/builder/webpack/utils/copyStatsJsonFile.js +1 -1
- package/lib/builder/webpack/utils/copyStatsJsonFile.js.map +1 -1
- package/lib/cli/CLI.d.ts +2 -2
- package/lib/cli/CLI.js +2 -2
- package/lib/cli/CLI.js.map +1 -1
- package/lib/cli/index.js.map +1 -1
- package/lib/commands/analyze/command.d.ts +1 -1
- package/lib/commands/analyze/command.js.map +1 -1
- package/lib/commands/benchmark/command.d.ts +1 -1
- package/lib/commands/benchmark/command.js.map +1 -1
- package/lib/commands/build/command.d.ts +1 -1
- package/lib/commands/build/command.js.map +1 -1
- package/lib/commands/new/new.js +0 -1
- package/lib/commands/new/new.js.map +1 -1
- package/lib/commands/new/questions/packageManager.d.ts +1 -1
- package/lib/commands/new/questions/packageManager.js.map +1 -1
- package/lib/commands/new/questions/template.d.ts +1 -1
- package/lib/commands/new/questions/template.js.map +1 -1
- package/lib/commands/new/questions/testingFramework.d.ts +1 -1
- package/lib/commands/new/questions/testingFramework.js.map +1 -1
- package/lib/commands/new/questions/type.d.ts +1 -1
- package/lib/commands/new/questions/type.js.map +1 -1
- package/lib/commands/new/steps/initializationGit.d.ts +1 -1
- package/lib/commands/new/steps/initializationGit.js.map +1 -1
- package/lib/commands/start/command.d.ts +1 -1
- package/lib/commands/start/command.js.map +1 -1
- package/lib/commands/start-prod/command.d.ts +1 -1
- package/lib/commands/start-prod/command.js.map +1 -1
- package/lib/commands/static/application.js +4 -4
- package/lib/commands/static/application.js.map +1 -1
- package/lib/commands/static/command.d.ts +1 -1
- package/lib/commands/static/command.js.map +1 -1
- package/lib/commands/static/generate.js +2 -2
- package/lib/commands/static/generate.js.map +1 -1
- package/lib/commands/static/server.d.ts +2 -1
- package/lib/commands/static/server.js +1 -1
- package/lib/commands/static/server.js.map +1 -1
- package/lib/commands/static/staticServer.d.ts +2 -1
- package/lib/commands/static/staticServer.js +1 -1
- package/lib/commands/static/staticServer.js.map +1 -1
- package/lib/commands/update/updatePackageJson.js +3 -0
- package/lib/commands/update/updatePackageJson.js.map +1 -1
- package/lib/config/configManager.d.ts +12 -73
- package/lib/config/configManager.js +61 -92
- package/lib/config/configManager.js.map +1 -1
- package/lib/config/showConfig.d.ts +1 -1
- package/lib/config/showConfig.js +1 -1
- package/lib/config/showConfig.js.map +1 -1
- package/lib/config/validate.d.ts +5 -4
- package/lib/config/validate.js +2 -9
- package/lib/config/validate.js.map +1 -1
- package/lib/di/tokens/config.d.ts +106 -1
- package/lib/di/tokens/config.js.map +1 -1
- package/lib/external/config.d.ts +2 -2
- package/lib/library/babel/index.js +1 -0
- package/lib/library/babel/index.js.map +1 -1
- package/lib/library/swc/index.js +1 -1
- package/lib/library/swc/index.js.map +1 -1
- package/lib/library/webpack/application/client/common.js +6 -4
- package/lib/library/webpack/application/client/common.js.map +1 -1
- package/lib/library/webpack/application/client/dev.js +9 -8
- package/lib/library/webpack/application/client/dev.js.map +1 -1
- package/lib/library/webpack/application/client/prod/optimization/splitChunks.js +40 -39
- package/lib/library/webpack/application/client/prod/optimization/splitChunks.js.map +1 -1
- package/lib/library/webpack/application/client/prod.js +3 -4
- package/lib/library/webpack/application/client/prod.js.map +1 -1
- package/lib/library/webpack/application/server/common.js +5 -5
- package/lib/library/webpack/application/server/common.js.map +1 -1
- package/lib/library/webpack/application/server/dev.js +3 -6
- package/lib/library/webpack/application/server/dev.js.map +1 -1
- package/lib/library/webpack/application/server/prod.js +3 -4
- package/lib/library/webpack/application/server/prod.js.map +1 -1
- package/lib/library/webpack/blocks/apiResolve.js +1 -1
- package/lib/library/webpack/blocks/apiResolve.js.map +1 -1
- package/lib/library/webpack/blocks/configResolve.js +2 -2
- package/lib/library/webpack/blocks/configResolve.js.map +1 -1
- package/lib/library/webpack/blocks/configToEnv.js +5 -2
- package/lib/library/webpack/blocks/configToEnv.js.map +1 -1
- package/lib/library/webpack/blocks/css.d.ts +3 -1
- package/lib/library/webpack/blocks/css.js +17 -6
- package/lib/library/webpack/blocks/css.js.map +1 -1
- package/lib/library/webpack/blocks/extractCssPlugin.d.ts +4 -3
- package/lib/library/webpack/blocks/extractCssPlugin.js +4 -6
- package/lib/library/webpack/blocks/extractCssPlugin.js.map +1 -1
- package/lib/library/webpack/blocks/filesClient.d.ts +3 -2
- package/lib/library/webpack/blocks/filesClient.js +7 -7
- package/lib/library/webpack/blocks/filesClient.js.map +1 -1
- package/lib/library/webpack/blocks/filesServer.d.ts +2 -1
- package/lib/library/webpack/blocks/filesServer.js +3 -3
- package/lib/library/webpack/blocks/filesServer.js.map +1 -1
- package/lib/library/webpack/blocks/js.d.ts +2 -1
- package/lib/library/webpack/blocks/js.js +1 -1
- package/lib/library/webpack/blocks/js.js.map +1 -1
- package/lib/library/webpack/blocks/nodeClient.d.ts +2 -1
- package/lib/library/webpack/blocks/nodeClient.js +2 -2
- package/lib/library/webpack/blocks/nodeClient.js.map +1 -1
- package/lib/library/webpack/blocks/optimize.d.ts +2 -1
- package/lib/library/webpack/blocks/optimize.js +3 -3
- package/lib/library/webpack/blocks/optimize.js.map +1 -1
- package/lib/library/webpack/blocks/pagesResolve.js +1 -1
- package/lib/library/webpack/blocks/pagesResolve.js.map +1 -1
- package/lib/library/webpack/blocks/postcssAssets.d.ts +2 -1
- package/lib/library/webpack/blocks/postcssAssets.js +2 -2
- package/lib/library/webpack/blocks/postcssAssets.js.map +1 -1
- package/lib/library/webpack/blocks/serverInline.d.ts +2 -1
- package/lib/library/webpack/blocks/serverInline.js.map +1 -1
- package/lib/library/webpack/blocks/ts.d.ts +2 -1
- package/lib/library/webpack/blocks/ts.js.map +1 -1
- package/lib/library/webpack/child-app/client/common.d.ts +2 -2
- package/lib/library/webpack/child-app/client/common.js +1 -1
- package/lib/library/webpack/child-app/client/common.js.map +1 -1
- package/lib/library/webpack/child-app/client/dev.d.ts +2 -2
- package/lib/library/webpack/child-app/client/dev.js +6 -5
- package/lib/library/webpack/child-app/client/dev.js.map +1 -1
- package/lib/library/webpack/child-app/client/prod.d.ts +2 -2
- package/lib/library/webpack/child-app/client/prod.js.map +1 -1
- package/lib/library/webpack/child-app/common.d.ts +2 -2
- package/lib/library/webpack/child-app/common.js.map +1 -1
- package/lib/library/webpack/child-app/server/common.d.ts +2 -2
- package/lib/library/webpack/child-app/server/common.js +1 -1
- package/lib/library/webpack/child-app/server/common.js.map +1 -1
- package/lib/library/webpack/child-app/server/dev.d.ts +2 -2
- package/lib/library/webpack/child-app/server/dev.js.map +1 -1
- package/lib/library/webpack/child-app/server/prod.d.ts +2 -2
- package/lib/library/webpack/child-app/server/prod.js.map +1 -1
- package/lib/library/webpack/common/client/prod.d.ts +2 -1
- package/lib/library/webpack/common/client/prod.js +4 -5
- package/lib/library/webpack/common/client/prod.js.map +1 -1
- package/lib/library/webpack/common/main.d.ts +2 -1
- package/lib/library/webpack/common/main.js +3 -3
- package/lib/library/webpack/common/main.js.map +1 -1
- package/lib/library/webpack/common/server/prod.d.ts +2 -1
- package/lib/library/webpack/common/server/prod.js +4 -5
- package/lib/library/webpack/common/server/prod.js.map +1 -1
- package/lib/library/webpack/index.js +1 -2
- package/lib/library/webpack/index.js.map +1 -1
- package/lib/library/webpack/loaders/image-loader/index.d.ts +2 -1
- package/lib/library/webpack/loaders/image-loader/index.js.map +1 -1
- package/lib/library/webpack/loaders/pagesResolve.d.ts +10 -1
- package/lib/library/webpack/loaders/pagesResolve.js +4 -3
- package/lib/library/webpack/loaders/pagesResolve.js.map +1 -1
- package/lib/library/webpack/loaders/replaceContent.d.ts +6 -1
- package/lib/library/webpack/loaders/replaceContent.js +4 -3
- package/lib/library/webpack/loaders/replaceContent.js.map +1 -1
- package/lib/library/webpack/module/client/common.js +1 -1
- package/lib/library/webpack/module/client/common.js.map +1 -1
- package/lib/library/webpack/module/externals.d.ts +1 -1
- package/lib/library/webpack/module/externals.js.map +1 -1
- package/lib/library/webpack/module/resolveExternal.d.ts +1 -1
- package/lib/library/webpack/module/resolveExternal.js.map +1 -1
- package/lib/library/webpack/module/server/common.js +1 -1
- package/lib/library/webpack/module/server/common.js.map +1 -1
- package/lib/library/webpack/plugins/LazyModuleInitialization.d.ts +2 -2
- package/lib/library/webpack/plugins/LazyModuleInitialization.js +1 -0
- package/lib/library/webpack/plugins/LazyModuleInitialization.js.map +1 -1
- package/lib/library/webpack/plugins/WebpackBar/utils/index.d.ts +7 -7
- package/lib/library/webpack/plugins/WebpackBar/utils/index.js.map +1 -1
- package/lib/library/webpack/plugins/WebpackBar/utils/webpack.d.ts +2 -2
- package/lib/library/webpack/plugins/WebpackBar/utils/webpack.js.map +1 -1
- package/lib/library/webpack/types/webpack.d.ts +2 -2
- package/lib/library/webpack/utils/files.d.ts +4 -3
- package/lib/library/webpack/utils/files.js +2 -2
- package/lib/library/webpack/utils/files.js.map +1 -1
- package/lib/library/webpack/utils/transpiler.d.ts +3 -2
- package/lib/library/webpack/utils/transpiler.js +2 -2
- package/lib/library/webpack/utils/transpiler.js.map +1 -1
- package/lib/library/webpack/utils/workersPool.d.ts +3 -6
- package/lib/library/webpack/utils/workersPool.js +1 -1
- package/lib/library/webpack/utils/workersPool.js.map +1 -1
- package/lib/models/config.d.ts +2 -3
- package/lib/models/config.js +32 -3
- package/lib/models/config.js.map +1 -1
- package/lib/schema/ConfigSchema.d.ts +13 -4
- package/lib/schema/autogeneratedSchema.json +1808 -2074
- package/lib/typings/configEntry/application.d.ts +81 -86
- package/lib/typings/configEntry/child-app.d.ts +10 -29
- package/lib/typings/configEntry/cli.d.ts +254 -0
- package/lib/typings/configEntry/{CheckAsyncTsConfig.js → cli.js} +1 -1
- package/lib/typings/configEntry/cli.js.map +1 -0
- package/lib/typings/configEntry/common.d.ts +16 -276
- package/lib/typings/configEntry/common.js +15 -0
- package/lib/typings/configEntry/common.js.map +1 -1
- package/lib/typings/configEntry/module.d.ts +10 -29
- package/lib/typings/configEntry/package.d.ts +2 -1
- package/lib/ui/commander.js +1 -1
- package/lib/ui/commander.js.map +1 -1
- package/lib/utils/applyTemplate.js.map +1 -1
- package/lib/utils/safeRequire.js +5 -1
- package/lib/utils/safeRequire.js.map +1 -1
- package/lib/utils/webpackBuild.d.ts +2 -1
- package/lib/utils/webpackBuild.js +3 -3
- package/lib/utils/webpackBuild.js.map +1 -1
- package/package.json +13 -9
- package/schema.json +1802 -2068
- package/src/api/analyze/providers/shared.ts +3 -2
- package/src/api/benchmark/__integration__/__fixtures__/tramvai.json +1 -8
- package/src/api/benchmark/index.ts +1 -1
- package/src/api/build/__integration__/__fixtures__/app/App.tsx +0 -1
- package/src/api/build/__integration__/__fixtures__/app/index.tsx +14 -8
- package/src/api/build/__integration__/__fixtures__/app/server.tsx +0 -1
- package/src/api/build/__integration__/__fixtures__/tramvai.json +1 -10
- package/src/api/build/__integration__/build.test.ts +4 -13
- package/src/api/build/child-app.ts +4 -4
- package/src/api/build/module.ts +2 -4
- package/src/api/build/providers/shared.ts +2 -2
- package/src/api/index.ts +6 -2
- package/src/api/shared/types/withConfig.ts +5 -6
- package/src/api/start/__integration__/__fixtures__/app/index.tsx +11 -7
- package/src/api/start/__integration__/__fixtures__/tramvai.json +6 -17
- package/src/api/start/__integration__/start.test.ts +1 -12
- package/src/api/start/providers/application/shared.ts +2 -2
- package/src/api/start/providers/child-app/shared.ts +9 -14
- package/src/api/start/providers/module/shared.ts +19 -30
- package/src/api/start/utils/banner.ts +3 -2
- package/src/api/start/utils/tips/tips.ts +11 -8
- package/src/api/start-prod/providers/application.ts +10 -14
- package/src/api/start-prod/providers/child-app.ts +4 -5
- package/src/api/start-prod/providers/shared.ts +4 -8
- package/src/builder/webpack/devServer/client.ts +22 -15
- package/src/builder/webpack/devServer/notifier.ts +6 -6
- package/src/builder/webpack/devServer/pool/process/pool.ts +3 -3
- package/src/builder/webpack/devServer/pool/thread/pool.ts +7 -0
- package/src/builder/webpack/devServer/server.ts +13 -6
- package/src/builder/webpack/providers/analyze/shared.ts +3 -2
- package/src/builder/webpack/providers/build/application/server.ts +5 -1
- package/src/builder/webpack/providers/build/client.ts +3 -2
- package/src/builder/webpack/providers/build/server.ts +1 -1
- package/src/builder/webpack/tokens.ts +4 -3
- package/src/builder/webpack/utils/copyBuildFile.ts +4 -5
- package/src/builder/webpack/utils/copyStatsJsonFile.ts +5 -2
- package/src/cli/CLI.ts +6 -6
- package/src/cli/index.ts +1 -1
- package/src/commands/analyze/command.ts +1 -1
- package/src/commands/benchmark/command.ts +1 -1
- package/src/commands/build/command.ts +2 -2
- package/src/commands/new/new.ts +0 -1
- package/src/commands/new/questions/packageManager.ts +1 -1
- package/src/commands/new/questions/template.ts +1 -1
- package/src/commands/new/questions/testingFramework.ts +1 -1
- package/src/commands/new/questions/type.ts +1 -1
- package/src/commands/new/steps/initializationGit.ts +1 -1
- package/src/commands/new/templates/app/monorepo/tramvai.json.hbs +6 -32
- package/src/commands/new/templates/app/multirepo/tramvai.json.hbs +6 -23
- package/src/commands/new/templates/child-app/monorepo/tramvai.json.hbs +3 -18
- package/src/commands/new/templates/child-app/multirepo/tramvai.json.hbs +3 -9
- package/src/commands/start/command.ts +2 -2
- package/src/commands/start-prod/command.ts +2 -2
- package/src/commands/static/application.ts +5 -14
- package/src/commands/static/command.ts +1 -1
- package/src/commands/static/generate.ts +2 -2
- package/src/commands/static/server.ts +5 -2
- package/src/commands/static/staticServer.ts +6 -3
- package/src/commands/update/updatePackageJson.ts +6 -2
- package/src/config/configManager.spec.ts +49 -0
- package/src/config/configManager.ts +123 -197
- package/src/config/showConfig.ts +2 -2
- package/src/config/validate.ts +14 -25
- package/src/di/tokens/config.ts +2 -1
- package/src/library/babel/index.ts +1 -0
- package/src/library/swc/__integration__/swc.build.test.ts +3 -21
- package/src/library/swc/__integration__/swc.start.test.ts +3 -21
- package/src/library/swc/index.ts +1 -1
- package/src/library/webpack/application/client/common.ts +7 -7
- package/src/library/webpack/application/client/dev.ts +9 -9
- package/src/library/webpack/application/client/prod/optimization/splitChunks.ts +43 -44
- package/src/library/webpack/application/client/prod.ts +3 -5
- package/src/library/webpack/application/server/common.ts +5 -8
- package/src/library/webpack/application/server/dev.ts +5 -6
- package/src/library/webpack/application/server/prod.ts +3 -9
- package/src/library/webpack/blocks/apiResolve.ts +1 -1
- package/src/library/webpack/blocks/configResolve.ts +2 -2
- package/src/library/webpack/blocks/configToEnv.ts +5 -2
- package/src/library/webpack/blocks/css.ts +26 -17
- package/src/library/webpack/blocks/extractCssPlugin.ts +11 -10
- package/src/library/webpack/blocks/filesClient.ts +52 -50
- package/src/library/webpack/blocks/filesServer.ts +4 -3
- package/src/library/webpack/blocks/js.ts +3 -2
- package/src/library/webpack/blocks/nodeClient.ts +4 -3
- package/src/library/webpack/blocks/optimize.ts +5 -6
- package/src/library/webpack/blocks/pagesResolve.ts +1 -1
- package/src/library/webpack/blocks/postcssAssets.ts +6 -7
- package/src/library/webpack/blocks/serverInline.ts +2 -1
- package/src/library/webpack/blocks/ts.ts +2 -1
- package/src/library/webpack/child-app/client/common.ts +3 -3
- package/src/library/webpack/child-app/client/dev.ts +8 -8
- package/src/library/webpack/child-app/client/prod.ts +2 -2
- package/src/library/webpack/child-app/common.ts +2 -2
- package/src/library/webpack/child-app/server/common.ts +3 -3
- package/src/library/webpack/child-app/server/dev.ts +2 -2
- package/src/library/webpack/child-app/server/prod.ts +2 -2
- package/src/library/webpack/common/client/prod.ts +10 -6
- package/src/library/webpack/common/main.ts +9 -4
- package/src/library/webpack/common/server/prod.ts +10 -6
- package/src/library/webpack/index.ts +2 -3
- package/src/library/webpack/loaders/image-loader/index.ts +2 -1
- package/src/library/webpack/loaders/pagesResolve.ts +17 -5
- package/src/library/webpack/loaders/replaceContent.ts +11 -2
- package/src/library/webpack/module/client/common.ts +1 -1
- package/src/library/webpack/module/externals.ts +1 -1
- package/src/library/webpack/module/resolveExternal.ts +1 -1
- package/src/library/webpack/module/server/common.ts +1 -1
- package/src/library/webpack/plugins/LazyModuleInitialization.ts +6 -1
- package/src/library/webpack/plugins/WebpackBar/utils/index.ts +8 -8
- package/src/library/webpack/plugins/WebpackBar/utils/webpack.ts +1 -1
- package/src/library/webpack/types/webpack.ts +2 -2
- package/src/library/webpack/utils/files.ts +4 -3
- package/src/library/webpack/utils/transpiler.ts +6 -11
- package/src/library/webpack/utils/workersPool.ts +6 -9
- package/src/models/config.spec.ts +352 -0
- package/src/models/config.ts +41 -9
- package/src/schema/ConfigSchema.ts +15 -4
- package/src/schema/autogeneratedSchema.json +1808 -2074
- package/src/schema/tramvai.spec.ts +89 -184
- package/src/typings/configEntry/application.ts +85 -87
- package/src/typings/configEntry/child-app.ts +10 -30
- package/src/typings/configEntry/cli.ts +271 -0
- package/src/typings/configEntry/common.ts +26 -278
- package/src/typings/configEntry/module.ts +11 -30
- package/src/typings/configEntry/package.ts +3 -1
- package/src/ui/commander.ts +1 -1
- package/src/utils/applyTemplate.ts +2 -2
- package/src/utils/safeRequire.ts +6 -1
- package/src/utils/webpackBuild.ts +4 -3
- package/lib/library/webpack/plugins/DedupePlugin/DedupePlugin.d.ts +0 -37
- package/lib/library/webpack/plugins/DedupePlugin/DedupePlugin.js +0 -241
- package/lib/library/webpack/plugins/DedupePlugin/DedupePlugin.js.map +0 -1
- package/lib/library/webpack/plugins/DedupePlugin/index.d.ts +0 -1
- package/lib/library/webpack/plugins/DedupePlugin/index.js +0 -6
- package/lib/library/webpack/plugins/DedupePlugin/index.js.map +0 -1
- package/lib/typings/configEntry/CheckAsyncTsConfig.d.ts +0 -13
- package/lib/typings/configEntry/CheckAsyncTsConfig.js.map +0 -1
- package/src/library/webpack/plugins/DedupePlugin/DedupePlugin.spec.ts +0 -95
- package/src/library/webpack/plugins/DedupePlugin/DedupePlugin.ts +0 -307
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-1/index.js +0 -3
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-1/node_modules/package-dep/index.js +0 -1
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-1/node_modules/package-dep/package.json +0 -7
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-1/package.json +0 -7
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-2/index.js +0 -3
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-2/node_modules/package-dep/index.js +0 -1
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-2/node_modules/package-dep/package.json +0 -7
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-2/package.json +0 -7
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-3/index.js +0 -3
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-3/node_modules/package-dep/index.js +0 -1
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-3/node_modules/package-dep/package.json +0 -7
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-3/package.json +0 -7
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-dep/index.js +0 -1
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-dep/package.json +0 -7
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-esm-1/index.js +0 -3
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-esm-1/node_modules/package-esm-dep/index.js +0 -1
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-esm-1/node_modules/package-esm-dep/package.json +0 -8
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-esm-1/package.json +0 -8
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-esm-2/index.js +0 -3
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-esm-2/node_modules/package-esm-dep/index.js +0 -1
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-esm-2/node_modules/package-esm-dep/package.json +0 -8
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/node_modules/package-esm-2/package.json +0 -8
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/package-lock.json +0 -0
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/package.json +0 -14
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/src/index.js +0 -9
- package/src/library/webpack/plugins/DedupePlugin/__fixtures__/dedupe/tramvai.json +0 -67
- package/src/library/webpack/plugins/DedupePlugin/__integration__/DedupePlugin.test.ts +0 -90
- package/src/library/webpack/plugins/DedupePlugin/index.ts +0 -1
- package/src/typings/configEntry/CheckAsyncTsConfig.ts +0 -15
|
@@ -1,126 +1,121 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
|
|
1
|
+
import type { ForkTsCheckerWebpackPluginOptions } from 'fork-ts-checker-webpack-plugin/lib/ForkTsCheckerWebpackPluginOptions';
|
|
2
|
+
import type { CliConfigEntry, Experiments } from './cli';
|
|
3
|
+
import type { OverridableOption } from './common';
|
|
4
|
+
export interface CheckAsyncTsConfig {
|
|
4
5
|
/**
|
|
6
|
+
* при включении этого флага в build-сборку добавляется проверка типов
|
|
7
|
+
* при невалидных типах сборка падает
|
|
8
|
+
*/
|
|
9
|
+
failOnBuild?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* дополнительные опции
|
|
12
|
+
* @link https://github.com/TypeStrong/fork-ts-checker-webpack-plugin
|
|
13
|
+
*/
|
|
14
|
+
pluginOptions?: Partial<ForkTsCheckerWebpackPluginOptions>;
|
|
15
|
+
}
|
|
16
|
+
export interface ApplicationExperiments extends Experiments {
|
|
17
|
+
/**
|
|
18
|
+
* @title How to run server build
|
|
19
|
+
* @default "process"
|
|
20
|
+
*/
|
|
21
|
+
serverRunner?: 'process' | 'thread';
|
|
22
|
+
}
|
|
23
|
+
export interface ApplicationConfigEntry extends CliConfigEntry {
|
|
24
|
+
type: 'application';
|
|
25
|
+
/**
|
|
26
|
+
* @title Path to polyfill file. By default, looks for the `src/polyfill`
|
|
27
|
+
*/
|
|
28
|
+
polyfill?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @title Path to folder with papi handlers
|
|
31
|
+
* @default "src/api"
|
|
32
|
+
*/
|
|
33
|
+
serverApiDir: string;
|
|
34
|
+
/**
|
|
35
|
+
* @title Controls the cli output locations
|
|
5
36
|
* @default {}
|
|
6
37
|
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @title `@deprecated` Vendor is not used anymore
|
|
10
|
-
* @deprecated Vendor is not used anymore
|
|
11
|
-
*/
|
|
12
|
-
vendor?: string;
|
|
13
|
-
/**
|
|
14
|
-
* @title Path to polyfill file
|
|
15
|
-
* @default ""
|
|
16
|
-
*/
|
|
17
|
-
polyfill?: string;
|
|
18
|
-
/**
|
|
19
|
-
* @title Path to server entry point
|
|
20
|
-
* @default "src/server"
|
|
21
|
-
*/
|
|
22
|
-
server?: string;
|
|
23
|
-
/**
|
|
24
|
-
* @title Path to folder with papi handlers
|
|
25
|
-
* @default "src/api"
|
|
26
|
-
*/
|
|
27
|
-
serverApiDir?: string;
|
|
38
|
+
output: {
|
|
28
39
|
/**
|
|
29
40
|
* @title Path to build assets for server
|
|
30
41
|
* @default "dist/server"
|
|
31
42
|
*/
|
|
32
|
-
|
|
43
|
+
server: string;
|
|
33
44
|
/**
|
|
34
45
|
* @title Path to build assets for client
|
|
35
46
|
* @default "dist/client"
|
|
36
47
|
*/
|
|
37
|
-
|
|
48
|
+
client: string;
|
|
38
49
|
/**
|
|
39
50
|
* @title Path to build static assets
|
|
40
51
|
* @default "dist/static"
|
|
41
52
|
*/
|
|
42
|
-
|
|
53
|
+
static: string;
|
|
43
54
|
};
|
|
44
55
|
/**
|
|
56
|
+
* @title Enable build for modern browsers
|
|
57
|
+
* @default true
|
|
58
|
+
*/
|
|
59
|
+
modern?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* @title File-System Routing feature
|
|
45
62
|
* @default {}
|
|
46
63
|
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @title Separate one common chunk to many small dynamic chunks
|
|
50
|
-
* @default true
|
|
51
|
-
*/
|
|
52
|
-
granularChunks?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* @title Move module to shared chunk if used at least as many times in other chunks
|
|
55
|
-
* @default 2
|
|
56
|
-
*/
|
|
57
|
-
granularChunksSplitNumber?: number;
|
|
64
|
+
fileSystemPages: {
|
|
58
65
|
/**
|
|
59
|
-
* @title
|
|
60
|
-
* @default 20000
|
|
61
|
-
*/
|
|
62
|
-
granularChunksMinSize?: number;
|
|
63
|
-
/**
|
|
64
|
-
* @title Enable auto chunk splitting (`granularChunks` option alternative)
|
|
65
|
-
* @default false
|
|
66
|
-
*/
|
|
67
|
-
commonChunk?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* @title Move module to common chunk if used at least as many times in other chunks
|
|
70
|
-
* @default 3
|
|
71
|
-
*/
|
|
72
|
-
commonChunkSplitNumber?: number;
|
|
73
|
-
/**
|
|
74
|
-
* @title Configuration for fork-ts-checker-webpack-plugin
|
|
66
|
+
* @title Read pages from file system
|
|
75
67
|
* @default false
|
|
76
68
|
*/
|
|
77
|
-
|
|
69
|
+
enabled: boolean;
|
|
78
70
|
/**
|
|
79
|
-
* @title
|
|
80
|
-
* @default
|
|
71
|
+
* @title Folder with pages from which static routers are generated
|
|
72
|
+
* @default "routes"
|
|
81
73
|
*/
|
|
82
|
-
|
|
74
|
+
routesDir: string | false;
|
|
83
75
|
/**
|
|
84
|
-
* @
|
|
76
|
+
* @title Folder with components which can be manually added to static routers
|
|
77
|
+
* @default "pages"
|
|
85
78
|
*/
|
|
86
|
-
|
|
79
|
+
pagesDir: string | false;
|
|
87
80
|
};
|
|
88
|
-
}
|
|
89
|
-
export type ApplicationServe = ConfigEntry['commands']['serve'] & {
|
|
90
81
|
/**
|
|
82
|
+
* @title Configure the options on webpack splitChunks
|
|
91
83
|
* @default {}
|
|
92
84
|
*/
|
|
93
|
-
|
|
85
|
+
splitChunks: {
|
|
94
86
|
/**
|
|
95
|
-
* @
|
|
96
|
-
* @default ["react$", "react-dom", "prop-types", "express", "core-js"]
|
|
87
|
+
* @default "granularChunks"
|
|
97
88
|
*/
|
|
98
|
-
|
|
89
|
+
mode: 'granularChunks' | 'commonChunk' | false;
|
|
99
90
|
/**
|
|
100
|
-
* @
|
|
91
|
+
* @title Move module to shared chunk if used at least as many times in other chunks
|
|
92
|
+
* @default 2
|
|
101
93
|
*/
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @title How to run server build
|
|
105
|
-
* @default "process"
|
|
106
|
-
*/
|
|
107
|
-
serverRunner?: 'process' | 'thread';
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
export interface ApplicationConfigEntry extends ConfigEntry {
|
|
112
|
-
type: 'application';
|
|
113
|
-
/**
|
|
114
|
-
* @default {}
|
|
115
|
-
*/
|
|
116
|
-
commands?: {
|
|
94
|
+
granularChunksSplitNumber: number;
|
|
117
95
|
/**
|
|
118
|
-
* @
|
|
96
|
+
* @title Minimum shared chunk size in bytes
|
|
97
|
+
* @default 20000
|
|
119
98
|
*/
|
|
120
|
-
|
|
99
|
+
granularChunksMinSize: number;
|
|
121
100
|
/**
|
|
122
|
-
* @
|
|
101
|
+
* @title `@deprecated will be removed in next major release` Move module to common chunk if used at least as many times in other chunks
|
|
102
|
+
* @default 3
|
|
123
103
|
*/
|
|
124
|
-
|
|
104
|
+
commonChunkSplitNumber: number;
|
|
125
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
* @title Configuration for fork-ts-checker-webpack-plugin
|
|
108
|
+
* @default false
|
|
109
|
+
*/
|
|
110
|
+
checkAsyncTs: boolean | CheckAsyncTsConfig;
|
|
111
|
+
/**
|
|
112
|
+
* @title Pass list to Webpack config externals field
|
|
113
|
+
* @default []
|
|
114
|
+
*/
|
|
115
|
+
externals: OverridableOption<string[]>;
|
|
116
|
+
/**
|
|
117
|
+
* @title Experimental settings
|
|
118
|
+
* @default {}
|
|
119
|
+
*/
|
|
120
|
+
experiments: ApplicationExperiments;
|
|
126
121
|
}
|
|
@@ -1,38 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface
|
|
1
|
+
import type { CliConfigEntry } from './cli';
|
|
2
|
+
export interface ChildAppConfigEntry extends CliConfigEntry {
|
|
3
|
+
type: 'child-app';
|
|
3
4
|
/**
|
|
4
|
-
* @
|
|
5
|
+
* @title Path to build module assets
|
|
6
|
+
* @default "dist/child-app"
|
|
5
7
|
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @title Path to build module assets
|
|
9
|
-
* @default "dist/child-app"
|
|
10
|
-
*/
|
|
11
|
-
output?: string;
|
|
12
|
-
};
|
|
8
|
+
output: string;
|
|
13
9
|
/**
|
|
14
10
|
* @default {}
|
|
15
11
|
*/
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @default {"config": "postcss.config", "cssLocalIdentName": "[hash:base64:5]"}
|
|
19
|
-
*/
|
|
20
|
-
postcss?: ConfigEntry['commands']['build']['configurations']['postcss'];
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export interface ChildAppConfigEntry extends ConfigEntry {
|
|
24
|
-
type: 'child-app';
|
|
25
|
-
/**
|
|
26
|
-
* @default {}
|
|
27
|
-
*/
|
|
28
|
-
commands?: {
|
|
29
|
-
/**
|
|
30
|
-
* @default {}
|
|
31
|
-
*/
|
|
32
|
-
build?: ChildAppBuild;
|
|
12
|
+
postcss: CliConfigEntry['postcss'] & {
|
|
33
13
|
/**
|
|
34
|
-
* @
|
|
14
|
+
* @title CSS identifiers build algorithm
|
|
15
|
+
* @default "[hash:base64:5]"
|
|
35
16
|
*/
|
|
36
|
-
|
|
17
|
+
cssLocalIdentName?: CliConfigEntry['postcss']['cssLocalIdentName'];
|
|
37
18
|
};
|
|
38
19
|
}
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import type { Configuration } from 'webpack';
|
|
2
|
+
import type { DeduplicateStrategy } from '@tinkoff/webpack-dedupe-plugin';
|
|
3
|
+
import type { ConfigEntry, OverridableOption } from './common';
|
|
4
|
+
type Notifications = {
|
|
5
|
+
/**
|
|
6
|
+
* @title Defines when success notifications are shown
|
|
7
|
+
*/
|
|
8
|
+
suppressSuccess?: false | true | 'always' | 'initial';
|
|
9
|
+
/**
|
|
10
|
+
* @title True to suppress the warning notifications, otherwise false
|
|
11
|
+
*/
|
|
12
|
+
suppressWarning?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @title True to activate (focus) the terminal window when a compilation error occurs
|
|
15
|
+
*/
|
|
16
|
+
activateTerminalOnError?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type WebpackExperiments = Omit<Configuration['experiments'], 'buildHttp' | 'lazyCompilation' | 'css'> & {
|
|
19
|
+
/**
|
|
20
|
+
* @title Enable additional in-memory caching of modules which are unchanged and reference only unchanged modules.
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
cacheUnaffected: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* @title Enable backward compatibility with webpack previous major versions
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
backCompat: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type MinicssExperiments = {
|
|
31
|
+
/**
|
|
32
|
+
* @title Use a new webpack API to execute modules instead of child compilers. This improves performance and memory usage a lot.
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
useImportModule: OverridableOption<boolean>;
|
|
36
|
+
};
|
|
37
|
+
export type TranspilationExperiments = {
|
|
38
|
+
/**
|
|
39
|
+
* @title specify loader to transpile js-ts code
|
|
40
|
+
* @default "babel"
|
|
41
|
+
*/
|
|
42
|
+
loader: OverridableOption<'babel' | 'swc'>;
|
|
43
|
+
};
|
|
44
|
+
export interface Experiments {
|
|
45
|
+
/**
|
|
46
|
+
* @title experiments configuration for [webpack](https://webpack.js.org/configuration/experiments/)
|
|
47
|
+
* @default {}
|
|
48
|
+
*/
|
|
49
|
+
webpack: WebpackExperiments;
|
|
50
|
+
/**
|
|
51
|
+
* @title experimental settings for [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin)
|
|
52
|
+
* @default {}
|
|
53
|
+
*/
|
|
54
|
+
minicss: MinicssExperiments;
|
|
55
|
+
/**
|
|
56
|
+
* @title experimental settings for code transpilation
|
|
57
|
+
* @default {}
|
|
58
|
+
*/
|
|
59
|
+
transpilation: TranspilationExperiments;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @default {}
|
|
63
|
+
* @additionalProperties true
|
|
64
|
+
*/
|
|
65
|
+
type Define = Record<string, string>;
|
|
66
|
+
/**
|
|
67
|
+
* @tutorial
|
|
68
|
+
* - Common properties that are defined in the tramvai.json config file
|
|
69
|
+
* - These properties are later used to generate the json-schema
|
|
70
|
+
* - Although, some of the marked as required in typings they are anyway converted to optional
|
|
71
|
+
* while generating schema
|
|
72
|
+
* - you can provide default value with "@default" jsdoc in order to replace with default on schema validation
|
|
73
|
+
* - if you provide default value with "@default" mark the property as required to easier its usage in cli code
|
|
74
|
+
* - if the option doesn't have a default value mark it as optional to properly handle this case in cli code
|
|
75
|
+
* - to specify option that might be overridden for dev/prod environments specify its type as `OverridableOption<T>`. You can
|
|
76
|
+
* provide the default value either as single value (will be used in both envs) or in the form of { development: T, production: T } (to be able to
|
|
77
|
+
* provide defaults for all of the envs)
|
|
78
|
+
* - do not use `OverridableOption<T>` with complex types that has internal properties with "@default" as that defaults will not be set by ajv
|
|
79
|
+
*/
|
|
80
|
+
export interface CliConfigEntry extends ConfigEntry {
|
|
81
|
+
/**
|
|
82
|
+
* @title Enable source maps
|
|
83
|
+
* @default false
|
|
84
|
+
*/
|
|
85
|
+
sourceMap: OverridableOption<boolean>;
|
|
86
|
+
/**
|
|
87
|
+
* @title Change different experimental cli settings
|
|
88
|
+
* @default {}
|
|
89
|
+
*/
|
|
90
|
+
experiments: Experiments;
|
|
91
|
+
/**
|
|
92
|
+
* @title List of modules to exclude from `@babel/preset-env`
|
|
93
|
+
* @description Option doesn't affect build with swc loader
|
|
94
|
+
*/
|
|
95
|
+
excludesPresetEnv?: string[];
|
|
96
|
+
/**
|
|
97
|
+
* @title Webpack's thread-loader config
|
|
98
|
+
* @additionalProperties true
|
|
99
|
+
*/
|
|
100
|
+
threadLoader?: Record<string, unknown>;
|
|
101
|
+
/**
|
|
102
|
+
* @title Define static variables that should be replaced by name with provided value
|
|
103
|
+
* @default {}
|
|
104
|
+
*/
|
|
105
|
+
define: {
|
|
106
|
+
shared: Define;
|
|
107
|
+
development: Define;
|
|
108
|
+
production: Define;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* @title `@deprecated` will be removed in next major release.
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
generateDataQaTag: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* @title `@deprecated` will be removed in next major release. Включает использование плагина fill-action-name
|
|
117
|
+
* @default false
|
|
118
|
+
*/
|
|
119
|
+
enableFillActionNamePlugin: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* @default {}
|
|
122
|
+
*/
|
|
123
|
+
postcss: {
|
|
124
|
+
/**
|
|
125
|
+
* @title Path to postcss config file. By default, `postcss.config.js` file is used
|
|
126
|
+
*/
|
|
127
|
+
config?: string;
|
|
128
|
+
/**
|
|
129
|
+
* @title CSS identifiers build algorithm
|
|
130
|
+
*/
|
|
131
|
+
cssLocalIdentName?: OverridableOption<string>;
|
|
132
|
+
/**
|
|
133
|
+
* @title Path to postcss config file for assets
|
|
134
|
+
*/
|
|
135
|
+
assetsConfig?: string;
|
|
136
|
+
/**
|
|
137
|
+
* @title Enable CSS modules for all files matching /RegExp/i.test(filename) regexp.
|
|
138
|
+
*/
|
|
139
|
+
cssModulePattern?: string;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* @title `@deprecated` as cli now supports baseUrl and paths from the app's tsconfig.json file.
|
|
143
|
+
* Just check or add configuration to your tsconfig file and remove alias from tramvai.json
|
|
144
|
+
* @additionalProperties true
|
|
145
|
+
*/
|
|
146
|
+
alias?: Record<string, any>;
|
|
147
|
+
/**
|
|
148
|
+
* @title svgo-loader options
|
|
149
|
+
*/
|
|
150
|
+
svgo?: {
|
|
151
|
+
/**
|
|
152
|
+
* @title svgo plugins
|
|
153
|
+
*/
|
|
154
|
+
plugins?: Array<any>;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* @title Settings for image-webpack-loader
|
|
158
|
+
*/
|
|
159
|
+
imageOptimization?: {
|
|
160
|
+
/**
|
|
161
|
+
* @title Enable image-webpack-loader
|
|
162
|
+
*/
|
|
163
|
+
enabled?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* @title Pass options to image-webpack-loader
|
|
166
|
+
* @additionalProperties true
|
|
167
|
+
*/
|
|
168
|
+
options?: Record<string, any>;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* @title transpile libs based only on %40tinkoff/is-modern-lib
|
|
172
|
+
* @default true
|
|
173
|
+
*/
|
|
174
|
+
transpileOnlyModernLibs: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* @title Webpack specific settings
|
|
177
|
+
* @default {}
|
|
178
|
+
*/
|
|
179
|
+
webpack: {
|
|
180
|
+
/**
|
|
181
|
+
* @title Browser package resolve aliases. E.g. { "stream": "stream-browserify" }
|
|
182
|
+
* @additionalProperties true
|
|
183
|
+
*/
|
|
184
|
+
resolveAlias?: Record<string, string>;
|
|
185
|
+
/**
|
|
186
|
+
* @title Browser packages to provide with ProvidePlugin. E.g. { "Buffer": ["buffer", "Buffer"] }
|
|
187
|
+
* @additionalProperties true
|
|
188
|
+
*/
|
|
189
|
+
provide?: Record<string, any>;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* @title Enable DedupePlugin
|
|
193
|
+
* @default {}
|
|
194
|
+
*/
|
|
195
|
+
dedupe: {
|
|
196
|
+
/**
|
|
197
|
+
* @title Strategy for DedupePlugin
|
|
198
|
+
* @default true
|
|
199
|
+
*/
|
|
200
|
+
enabled: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* @title Strategy for DedupePlugin
|
|
203
|
+
* @default "equality"
|
|
204
|
+
*/
|
|
205
|
+
strategy: DeduplicateStrategy;
|
|
206
|
+
/**
|
|
207
|
+
* @title Sets ignore to DedupePlugin
|
|
208
|
+
*/
|
|
209
|
+
ignore?: string[];
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* @title terser settings
|
|
213
|
+
* @default {}
|
|
214
|
+
*/
|
|
215
|
+
terser: {
|
|
216
|
+
/**
|
|
217
|
+
* @title Configuration for enabling parallel compression for terser plugin
|
|
218
|
+
* @default true
|
|
219
|
+
*/
|
|
220
|
+
parallel: boolean;
|
|
221
|
+
};
|
|
222
|
+
/**
|
|
223
|
+
* @title Set minimizer for css
|
|
224
|
+
* @default "css-minimizer"
|
|
225
|
+
*/
|
|
226
|
+
cssMinimize: 'csso' | 'css-minimizer';
|
|
227
|
+
/**
|
|
228
|
+
* @title React hot-refresh
|
|
229
|
+
* @default {}
|
|
230
|
+
*/
|
|
231
|
+
hotRefresh: {
|
|
232
|
+
/**
|
|
233
|
+
* @title Enable react hot-refresh
|
|
234
|
+
* @default true
|
|
235
|
+
*/
|
|
236
|
+
enabled?: boolean;
|
|
237
|
+
/**
|
|
238
|
+
* @title Configure react hot-refresh https://github.com/pmmmwh/react-refresh-webpack-plugin#options
|
|
239
|
+
*/
|
|
240
|
+
options?: {
|
|
241
|
+
overlay?: boolean | Record<string, any>;
|
|
242
|
+
[key: string]: any;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* @title Controls build notifications settings during development
|
|
247
|
+
* @default {}
|
|
248
|
+
*/
|
|
249
|
+
notifications: Notifications & {
|
|
250
|
+
client?: Notifications;
|
|
251
|
+
server?: Notifications;
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/typings/configEntry/cli.ts"],"names":[],"mappings":""}
|