@modern-js/module-tools 2.0.0-beta.3 → 2.0.0-beta.6
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/CHANGELOG.md +331 -211
- package/bin/modern.js +1 -0
- package/compiled/@babel/code-frame/index.d.ts +1 -0
- package/compiled/@babel/code-frame/index.js +1 -0
- package/compiled/@babel/code-frame/license +22 -0
- package/compiled/@babel/code-frame/package.json +1 -0
- package/compiled/@babel/generator/index.d.ts +1 -0
- package/compiled/@babel/generator/index.js +1 -0
- package/compiled/@babel/generator/license +22 -0
- package/compiled/@babel/generator/package.json +1 -0
- package/compiled/@babel/helper-validator-identifier/index.d.ts +1 -0
- package/compiled/@babel/helper-validator-identifier/index.js +1 -0
- package/compiled/@babel/helper-validator-identifier/license +22 -0
- package/compiled/@babel/helper-validator-identifier/package.json +1 -0
- package/compiled/@babel/highlight/index.d.ts +1 -0
- package/compiled/@babel/highlight/index.js +1 -0
- package/compiled/@babel/highlight/license +22 -0
- package/compiled/@babel/highlight/package.json +1 -0
- package/compiled/@babel/parser/@babel/types/lib/index-legacy.d.ts +2742 -0
- package/compiled/@babel/parser/index.js +1 -0
- package/compiled/@babel/parser/license +19 -0
- package/compiled/@babel/parser/package.json +1 -0
- package/compiled/@babel/parser/typings/babel-parser.d.ts +214 -0
- package/compiled/@babel/template/index.d.ts +1 -0
- package/compiled/@babel/template/index.js +1 -0
- package/compiled/@babel/template/license +22 -0
- package/compiled/@babel/template/package.json +1 -0
- package/compiled/@babel/traverse/index.d.ts +1199 -0
- package/compiled/@babel/traverse/index.js +1 -0
- package/compiled/@babel/traverse/license +22 -0
- package/compiled/@babel/traverse/package.json +1 -0
- package/compiled/@babel/types/index.js +1 -0
- package/compiled/@babel/types/lib/index-legacy.d.ts +2732 -0
- package/compiled/@babel/types/license +22 -0
- package/compiled/@babel/types/package.json +1 -0
- package/compiled/@rollup/plugin-json/@rollup/pluginutils/types/index.d.ts +86 -0
- package/compiled/@rollup/plugin-json/estree/index.d.ts +548 -0
- package/compiled/@rollup/plugin-json/index.js +1 -0
- package/compiled/@rollup/plugin-json/license +21 -0
- package/compiled/@rollup/plugin-json/package.json +1 -0
- package/compiled/@rollup/plugin-json/rollup/dist/rollup.d.ts +948 -0
- package/compiled/@rollup/plugin-json/types/index.d.ts +41 -0
- package/compiled/find-up/index.d.ts +138 -0
- package/compiled/find-up/index.js +1 -0
- package/compiled/find-up/license +9 -0
- package/compiled/find-up/locate-path/index.d.ts +83 -0
- package/compiled/find-up/package.json +1 -0
- package/compiled/less/index.d.ts +282 -0
- package/compiled/less/index.js +1 -0
- package/compiled/less/package.json +1 -0
- package/compiled/normalize-path/index.d.ts +8 -0
- package/compiled/normalize-path/index.js +8 -0
- package/compiled/normalize-path/license +21 -0
- package/compiled/normalize-path/package.json +1 -0
- package/compiled/p-map/@szmarczak/http-timer/dist/source/index.d.ts +32 -0
- package/compiled/p-map/cacheable-lookup/index.d.ts +139 -0
- package/compiled/p-map/cacheable-request/index.d.ts +137 -0
- package/compiled/p-map/got/dist/source/as-promise/index.d.ts +3 -0
- package/compiled/p-map/got/dist/source/as-promise/types.d.ts +256 -0
- package/compiled/p-map/got/dist/source/core/index.d.ts +1124 -0
- package/compiled/p-map/got/dist/source/core/utils/dns-ip-version.d.ts +5 -0
- package/compiled/p-map/got/dist/source/core/utils/options-to-url.d.ts +14 -0
- package/compiled/p-map/got/dist/source/core/utils/timed-out.d.ts +29 -0
- package/compiled/p-map/got/dist/source/index.d.ts +4 -0
- package/compiled/p-map/got/dist/source/types.d.ts +344 -0
- package/compiled/p-map/http-cache-semantics/index.d.ts +170 -0
- package/compiled/p-map/index.d.ts +67 -0
- package/compiled/p-map/index.js +1 -0
- package/compiled/p-map/keyv/src/index.d.ts +104 -0
- package/compiled/p-map/license +9 -0
- package/compiled/p-map/p-cancelable/index.d.ts +176 -0
- package/compiled/p-map/package.json +1 -0
- package/compiled/p-map/responselike/index.d.ts +34 -0
- package/compiled/postcss-custom-properties/index.d.ts +1 -0
- package/compiled/postcss-custom-properties/index.js +1 -0
- package/compiled/postcss-custom-properties/package.json +1 -0
- package/compiled/postcss-flexbugs-fixes/index.d.ts +1 -0
- package/compiled/postcss-flexbugs-fixes/index.js +1 -0
- package/compiled/postcss-flexbugs-fixes/license +20 -0
- package/compiled/postcss-flexbugs-fixes/package.json +1 -0
- package/compiled/postcss-font-variant/index.d.ts +1 -0
- package/compiled/postcss-font-variant/index.js +1 -0
- package/compiled/postcss-font-variant/license +20 -0
- package/compiled/postcss-font-variant/package.json +1 -0
- package/compiled/postcss-initial/index.d.ts +1 -0
- package/compiled/postcss-initial/index.js +1 -0
- package/compiled/postcss-initial/license +20 -0
- package/compiled/postcss-initial/package.json +1 -0
- package/compiled/postcss-media-minmax/index.d.ts +1 -0
- package/compiled/postcss-media-minmax/index.js +1 -0
- package/compiled/postcss-media-minmax/license +22 -0
- package/compiled/postcss-media-minmax/package.json +1 -0
- package/compiled/postcss-nesting/index.d.ts +1 -0
- package/compiled/postcss-nesting/index.js +2 -0
- package/compiled/postcss-nesting/package.json +1 -0
- package/compiled/postcss-page-break/index.d.ts +1 -0
- package/compiled/postcss-page-break/index.js +1 -0
- package/compiled/postcss-page-break/license +20 -0
- package/compiled/postcss-page-break/package.json +1 -0
- package/compiled/postcss-value-parser/index.d.ts +1 -0
- package/compiled/postcss-value-parser/index.js +1 -0
- package/compiled/postcss-value-parser/license +22 -0
- package/compiled/postcss-value-parser/package.json +1 -0
- package/compiled/rollup/fsevents.node +0 -0
- package/compiled/rollup/index.js +82 -0
- package/compiled/rollup/package.json +1 -0
- package/compiled/rollup/types/rollup.d.ts +948 -0
- package/compiled/rollup-plugin-dts/dist/rollup-plugin-dts.d.ts +21 -0
- package/compiled/rollup-plugin-dts/index.js +1 -0
- package/compiled/rollup-plugin-dts/package.json +1 -0
- package/compiled/rollup-plugin-dts/rollup/dist/rollup.d.ts +948 -0
- package/compiled/sass/index.js +1 -0
- package/compiled/sass/license +1619 -0
- package/compiled/sass/package.json +1 -0
- package/compiled/sass/types/compile.d.ts +152 -0
- package/compiled/sass/types/exception.d.ts +41 -0
- package/compiled/sass/types/importer.d.ts +294 -0
- package/compiled/sass/types/index.d.ts +80 -0
- package/compiled/sass/types/legacy/exception.d.ts +54 -0
- package/compiled/sass/types/legacy/function.d.ts +756 -0
- package/compiled/sass/types/legacy/importer.d.ts +168 -0
- package/compiled/sass/types/legacy/options.d.ts +642 -0
- package/compiled/sass/types/legacy/plugin_this.d.ts +73 -0
- package/compiled/sass/types/legacy/render.d.ts +139 -0
- package/compiled/sass/types/logger/index.d.ts +94 -0
- package/compiled/sass/types/logger/source_location.d.ts +21 -0
- package/compiled/sass/types/logger/source_span.d.ts +34 -0
- package/compiled/sass/types/options.d.ts +435 -0
- package/compiled/sass/types/util/promise_or.d.ts +17 -0
- package/compiled/sass/types/value/argument_list.d.ts +47 -0
- package/compiled/sass/types/value/boolean.d.ts +29 -0
- package/compiled/sass/types/value/color.d.ts +107 -0
- package/compiled/sass/types/value/function.d.ts +22 -0
- package/compiled/sass/types/value/index.d.ts +173 -0
- package/compiled/sass/types/value/list.d.ts +54 -0
- package/compiled/sass/types/value/map.d.ts +41 -0
- package/compiled/sass/types/value/number.d.ts +305 -0
- package/compiled/sass/types/value/string.d.ts +84 -0
- package/compiled/signal-exit/index.d.ts +24 -0
- package/compiled/signal-exit/index.js +1 -0
- package/compiled/signal-exit/package.json +1 -0
- package/dist/builder/build.d.ts +23 -0
- package/dist/builder/build.js +269 -0
- package/dist/builder/build.js.map +1 -0
- package/dist/builder/clear.d.ts +3 -0
- package/dist/builder/clear.js +67 -0
- package/dist/builder/clear.js.map +1 -0
- package/dist/builder/copy.d.ts +11 -0
- package/dist/builder/copy.js +196 -0
- package/dist/builder/copy.js.map +1 -0
- package/dist/builder/dts/index.d.ts +2 -0
- package/dist/builder/dts/index.js +32 -0
- package/dist/builder/dts/index.js.map +1 -0
- package/dist/builder/dts/rollup.d.ts +17 -0
- package/dist/builder/dts/rollup.js +167 -0
- package/dist/builder/dts/rollup.js.map +1 -0
- package/dist/builder/dts/tsc.d.ts +3 -0
- package/dist/builder/dts/tsc.js +153 -0
- package/dist/builder/dts/tsc.js.map +1 -0
- package/dist/builder/index.d.ts +8 -0
- package/dist/builder/index.js +116 -0
- package/dist/builder/index.js.map +1 -0
- package/dist/builder/platform.d.ts +4 -0
- package/dist/builder/platform.js +132 -0
- package/dist/builder/platform.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +95 -0
- package/dist/cli.js.map +1 -0
- package/dist/command.d.ts +7 -0
- package/dist/command.js +164 -0
- package/dist/command.js.map +1 -0
- package/dist/config/defineConfig.d.ts +2 -0
- package/dist/config/defineConfig.js +29 -0
- package/dist/config/defineConfig.js.map +1 -0
- package/dist/config/normalize.d.ts +17 -0
- package/dist/config/normalize.js +168 -0
- package/dist/config/normalize.js.map +1 -0
- package/dist/config/schema.d.ts +641 -0
- package/dist/config/schema.js +215 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/constants/build-presets.d.ts +81 -0
- package/dist/constants/build-presets.js +236 -0
- package/dist/constants/build-presets.js.map +1 -0
- package/dist/constants/build.d.ts +5 -0
- package/dist/constants/build.js +78 -0
- package/dist/constants/build.js.map +1 -0
- package/dist/constants/colors.d.ts +4 -0
- package/dist/constants/colors.js +35 -0
- package/dist/constants/colors.js.map +1 -0
- package/dist/constants/dts.d.ts +4 -0
- package/dist/constants/dts.js +52 -0
- package/dist/constants/dts.js.map +1 -0
- package/dist/constants/file.d.ts +3 -0
- package/dist/constants/file.js +35 -0
- package/dist/constants/file.js.map +1 -0
- package/dist/constants/legacy-build-presets.d.ts +13 -0
- package/dist/constants/legacy-build-presets.js +198 -0
- package/dist/constants/legacy-build-presets.js.map +1 -0
- package/dist/constants/log.d.ts +8 -0
- package/dist/constants/log.js +43 -0
- package/dist/constants/log.js.map +1 -0
- package/dist/dev.d.ts +10 -0
- package/dist/dev.js +129 -0
- package/dist/dev.js.map +1 -0
- package/dist/{types/features/build/error.d.ts → error.d.ts} +1 -1
- package/dist/error.js +148 -0
- package/dist/error.js.map +1 -0
- package/dist/hooks/build.d.ts +22 -0
- package/dist/hooks/build.js +39 -0
- package/dist/hooks/build.js.map +1 -0
- package/dist/hooks/dev.d.ts +12 -0
- package/dist/hooks/dev.js +37 -0
- package/dist/hooks/dev.js.map +1 -0
- package/dist/hooks/index.d.ts +29 -0
- package/dist/hooks/index.js +46 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/misc.d.ts +5 -0
- package/dist/hooks/misc.js +33 -0
- package/dist/hooks/misc.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +37 -0
- package/dist/index.js.map +1 -0
- package/dist/{types/locale → locale}/en.d.ts +0 -0
- package/dist/locale/en.js +51 -0
- package/dist/locale/en.js.map +1 -0
- package/dist/{types/locale → locale}/index.d.ts +0 -0
- package/dist/locale/index.js +39 -0
- package/dist/locale/index.js.map +1 -0
- package/dist/{types/locale → locale}/zh.d.ts +0 -0
- package/dist/locale/zh.js +51 -0
- package/dist/locale/zh.js.map +1 -0
- package/dist/plugins.d.ts +2 -0
- package/dist/plugins.js +55 -0
- package/dist/plugins.js.map +1 -0
- package/dist/types/color.d.ts +1 -0
- package/dist/types/color.js +17 -0
- package/dist/types/color.js.map +1 -0
- package/dist/types/command.d.ts +11 -0
- package/dist/types/command.js +17 -0
- package/dist/types/command.js.map +1 -0
- package/dist/types/config/index.d.ts +92 -0
- package/dist/types/config/index.js +19 -0
- package/dist/types/config/index.js.map +1 -0
- package/dist/types/config/style.d.ts +12 -0
- package/dist/types/config/style.js +17 -0
- package/dist/types/config/style.js.map +1 -0
- package/dist/types/context.d.ts +5 -0
- package/dist/types/context.js +17 -0
- package/dist/types/context.js.map +1 -0
- package/dist/types/copy.d.ts +15 -0
- package/dist/types/copy.js +17 -0
- package/dist/types/copy.js.map +1 -0
- package/dist/types/{utils/tsconfig.d.ts → dts.d.ts} +11 -3
- package/dist/types/dts.js +17 -0
- package/dist/types/dts.js.map +1 -0
- package/dist/types/hooks.d.ts +25 -0
- package/dist/types/hooks.js +17 -0
- package/dist/types/hooks.js.map +1 -0
- package/dist/types/index.d.ts +17 -6
- package/dist/types/index.js +23 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/utils.d.ts +7 -0
- package/dist/types/utils.js +17 -0
- package/dist/types/utils.js.map +1 -0
- package/dist/utils/builder.d.ts +8 -0
- package/dist/utils/builder.js +104 -0
- package/dist/utils/builder.js.map +1 -0
- package/dist/utils/config.d.ts +6 -0
- package/dist/utils/config.js +167 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/context.d.ts +7 -0
- package/dist/utils/context.js +60 -0
- package/dist/utils/context.js.map +1 -0
- package/dist/utils/dts.d.ts +14 -0
- package/dist/utils/dts.js +186 -0
- package/dist/utils/dts.js.map +1 -0
- package/dist/utils/input.d.ts +16 -0
- package/dist/utils/input.js +113 -0
- package/dist/utils/input.js.map +1 -0
- package/dist/utils/language.d.ts +2 -0
- package/dist/utils/language.js +68 -0
- package/dist/utils/language.js.map +1 -0
- package/dist/utils/libuild-plugins.d.ts +6 -0
- package/dist/utils/libuild-plugins.js +83 -0
- package/dist/utils/libuild-plugins.js.map +1 -0
- package/dist/utils/log.d.ts +2 -0
- package/dist/utils/log.js +68 -0
- package/dist/utils/log.js.map +1 -0
- package/dist/utils/onExit.d.ts +1 -0
- package/dist/utils/onExit.js +63 -0
- package/dist/utils/onExit.js.map +1 -0
- package/dist/utils/path.d.ts +1 -0
- package/dist/utils/path.js +59 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/style.d.ts +31 -0
- package/dist/utils/style.js +129 -0
- package/dist/utils/style.js.map +1 -0
- package/dist/{types/utils/tspaths-transform/index.d.ts → utils/tspaths-transform.d.ts} +0 -0
- package/dist/utils/tspaths-transform.js +119 -0
- package/dist/utils/tspaths-transform.js.map +1 -0
- package/package.json +43 -72
- package/dist/js/modern/cli/build.js +0 -11
- package/dist/js/modern/cli/dev.js +0 -11
- package/dist/js/modern/cli/index.js +0 -3
- package/dist/js/modern/cli/new.js +0 -13
- package/dist/js/modern/commands/build.js +0 -69
- package/dist/js/modern/commands/dev.js +0 -43
- package/dist/js/modern/commands/index.js +0 -2
- package/dist/js/modern/features/build/build-platform.js +0 -69
- package/dist/js/modern/features/build/bundle/index.js +0 -9
- package/dist/js/modern/features/build/bundle/runRollup.js +0 -136
- package/dist/js/modern/features/build/bundle/runSpeedy.js +0 -176
- package/dist/js/modern/features/build/bundleless/copy-assets.js +0 -75
- package/dist/js/modern/features/build/bundleless/generator-dts/index.js +0 -106
- package/dist/js/modern/features/build/bundleless/generator-dts/utils.js +0 -94
- package/dist/js/modern/features/build/bundleless/index.js +0 -21
- package/dist/js/modern/features/build/bundleless/runBabel.js +0 -242
- package/dist/js/modern/features/build/bundleless/style.js +0 -241
- package/dist/js/modern/features/build/constants.js +0 -98
- package/dist/js/modern/features/build/error.js +0 -127
- package/dist/js/modern/features/build/index.js +0 -117
- package/dist/js/modern/features/build/legacy-constants.js +0 -103
- package/dist/js/modern/features/build/logger/index.js +0 -2
- package/dist/js/modern/features/build/logger/logText.js +0 -56
- package/dist/js/modern/features/build/logger/loggerManager.js +0 -93
- package/dist/js/modern/features/build/normalize.js +0 -277
- package/dist/js/modern/features/build/types.js +0 -0
- package/dist/js/modern/features/build/utils.js +0 -92
- package/dist/js/modern/features/dev/index.js +0 -47
- package/dist/js/modern/hooks/build.js +0 -20
- package/dist/js/modern/hooks/dev.js +0 -14
- package/dist/js/modern/hooks/index.js +0 -15
- package/dist/js/modern/index.js +0 -63
- package/dist/js/modern/locale/en.js +0 -25
- package/dist/js/modern/locale/index.js +0 -10
- package/dist/js/modern/locale/zh.js +0 -25
- package/dist/js/modern/schema/build-config.js +0 -117
- package/dist/js/modern/schema/index.js +0 -4
- package/dist/js/modern/schema/output.js +0 -45
- package/dist/js/modern/schema/source.js +0 -7
- package/dist/js/modern/schema/tools.js +0 -6
- package/dist/js/modern/schema/types.js +0 -0
- package/dist/js/modern/types.js +0 -0
- package/dist/js/modern/utils/babel.js +0 -84
- package/dist/js/modern/utils/color.js +0 -2
- package/dist/js/modern/utils/constants.js +0 -3
- package/dist/js/modern/utils/copy.js +0 -70
- package/dist/js/modern/utils/init-env.js +0 -13
- package/dist/js/modern/utils/json.js +0 -13
- package/dist/js/modern/utils/language.js +0 -6
- package/dist/js/modern/utils/logger.js +0 -96
- package/dist/js/modern/utils/readline.js +0 -17
- package/dist/js/modern/utils/tsconfig.js +0 -13
- package/dist/js/modern/utils/tspaths-transform/constants.js +0 -5
- package/dist/js/modern/utils/tspaths-transform/index.js +0 -113
- package/dist/js/modern/utils/tspaths-transform/utils.js +0 -18
- package/dist/js/modern/utils/valide.js +0 -26
- package/dist/js/node/cli/build.js +0 -18
- package/dist/js/node/cli/dev.js +0 -18
- package/dist/js/node/cli/index.js +0 -38
- package/dist/js/node/cli/new.js +0 -20
- package/dist/js/node/commands/build.js +0 -80
- package/dist/js/node/commands/dev.js +0 -52
- package/dist/js/node/commands/index.js +0 -19
- package/dist/js/node/features/build/build-platform.js +0 -76
- package/dist/js/node/features/build/bundle/index.js +0 -17
- package/dist/js/node/features/build/bundle/runRollup.js +0 -145
- package/dist/js/node/features/build/bundle/runSpeedy.js +0 -186
- package/dist/js/node/features/build/bundleless/copy-assets.js +0 -84
- package/dist/js/node/features/build/bundleless/generator-dts/index.js +0 -114
- package/dist/js/node/features/build/bundleless/generator-dts/utils.js +0 -105
- package/dist/js/node/features/build/bundleless/index.js +0 -29
- package/dist/js/node/features/build/bundleless/runBabel.js +0 -255
- package/dist/js/node/features/build/bundleless/style.js +0 -254
- package/dist/js/node/features/build/constants.js +0 -116
- package/dist/js/node/features/build/error.js +0 -139
- package/dist/js/node/features/build/index.js +0 -128
- package/dist/js/node/features/build/legacy-constants.js +0 -111
- package/dist/js/node/features/build/logger/index.js +0 -27
- package/dist/js/node/features/build/logger/logText.js +0 -66
- package/dist/js/node/features/build/logger/loggerManager.js +0 -95
- package/dist/js/node/features/build/normalize.js +0 -288
- package/dist/js/node/features/build/types.js +0 -0
- package/dist/js/node/features/build/utils.js +0 -107
- package/dist/js/node/features/dev/index.js +0 -56
- package/dist/js/node/hooks/build.js +0 -32
- package/dist/js/node/hooks/dev.js +0 -24
- package/dist/js/node/hooks/index.js +0 -36
- package/dist/js/node/index.js +0 -83
- package/dist/js/node/locale/en.js +0 -32
- package/dist/js/node/locale/index.js +0 -17
- package/dist/js/node/locale/zh.js +0 -32
- package/dist/js/node/schema/build-config.js +0 -126
- package/dist/js/node/schema/index.js +0 -11
- package/dist/js/node/schema/output.js +0 -52
- package/dist/js/node/schema/source.js +0 -14
- package/dist/js/node/schema/tools.js +0 -13
- package/dist/js/node/schema/types.js +0 -0
- package/dist/js/node/types.js +0 -0
- package/dist/js/node/utils/babel.js +0 -93
- package/dist/js/node/utils/color.js +0 -9
- package/dist/js/node/utils/constants.js +0 -11
- package/dist/js/node/utils/copy.js +0 -79
- package/dist/js/node/utils/init-env.js +0 -20
- package/dist/js/node/utils/json.js +0 -20
- package/dist/js/node/utils/language.js +0 -12
- package/dist/js/node/utils/logger.js +0 -107
- package/dist/js/node/utils/readline.js +0 -25
- package/dist/js/node/utils/tsconfig.js +0 -21
- package/dist/js/node/utils/tspaths-transform/constants.js +0 -12
- package/dist/js/node/utils/tspaths-transform/index.js +0 -123
- package/dist/js/node/utils/tspaths-transform/utils.js +0 -25
- package/dist/js/node/utils/valide.js +0 -34
- package/dist/types/cli/build.d.ts +0 -3
- package/dist/types/cli/dev.d.ts +0 -3
- package/dist/types/cli/index.d.ts +0 -3
- package/dist/types/cli/new.d.ts +0 -2
- package/dist/types/commands/build.d.ts +0 -17
- package/dist/types/commands/dev.d.ts +0 -5
- package/dist/types/commands/index.d.ts +0 -2
- package/dist/types/features/build/build-platform.d.ts +0 -7
- package/dist/types/features/build/bundle/index.d.ts +0 -3
- package/dist/types/features/build/bundle/runRollup.d.ts +0 -3
- package/dist/types/features/build/bundle/runSpeedy.d.ts +0 -10
- package/dist/types/features/build/bundleless/copy-assets.d.ts +0 -3
- package/dist/types/features/build/bundleless/generator-dts/index.d.ts +0 -3
- package/dist/types/features/build/bundleless/generator-dts/utils.d.ts +0 -21
- package/dist/types/features/build/bundleless/index.d.ts +0 -4
- package/dist/types/features/build/bundleless/runBabel.d.ts +0 -32
- package/dist/types/features/build/bundleless/style.d.ts +0 -25
- package/dist/types/features/build/constants.d.ts +0 -18
- package/dist/types/features/build/index.d.ts +0 -12
- package/dist/types/features/build/legacy-constants.d.ts +0 -8
- package/dist/types/features/build/logger/index.d.ts +0 -2
- package/dist/types/features/build/logger/logText.d.ts +0 -39
- package/dist/types/features/build/logger/loggerManager.d.ts +0 -40
- package/dist/types/features/build/normalize.d.ts +0 -19
- package/dist/types/features/build/types.d.ts +0 -15
- package/dist/types/features/build/utils.d.ts +0 -36
- package/dist/types/features/dev/index.d.ts +0 -9
- package/dist/types/hooks/build.d.ts +0 -46
- package/dist/types/hooks/dev.d.ts +0 -20
- package/dist/types/hooks/index.d.ts +0 -30
- package/dist/types/schema/build-config.d.ts +0 -205
- package/dist/types/schema/index.d.ts +0 -217
- package/dist/types/schema/output.d.ts +0 -215
- package/dist/types/schema/source.d.ts +0 -6
- package/dist/types/schema/tools.d.ts +0 -6
- package/dist/types/schema/types.d.ts +0 -45
- package/dist/types/types.d.ts +0 -51
- package/dist/types/utils/babel.d.ts +0 -8
- package/dist/types/utils/color.d.ts +0 -2
- package/dist/types/utils/constants.d.ts +0 -2
- package/dist/types/utils/copy.d.ts +0 -5
- package/dist/types/utils/init-env.d.ts +0 -21
- package/dist/types/utils/json.d.ts +0 -4
- package/dist/types/utils/language.d.ts +0 -1
- package/dist/types/utils/logger.d.ts +0 -58
- package/dist/types/utils/readline.d.ts +0 -9
- package/dist/types/utils/tspaths-transform/constants.d.ts +0 -1
- package/dist/types/utils/tspaths-transform/utils.d.ts +0 -4
- package/dist/types/utils/valide.d.ts +0 -12
- package/types.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,244 @@
|
|
|
1
1
|
# @modern-js/module-tools
|
|
2
2
|
|
|
3
|
+
## 2.0.0-beta.6
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- dda38c9c3e: chore: v2
|
|
8
|
+
|
|
9
|
+
### Minor Changes
|
|
10
|
+
|
|
11
|
+
- 92f0eade39: feat:
|
|
12
|
+
|
|
13
|
+
1. add style config and add new hook
|
|
14
|
+
2. add dts alias logic
|
|
15
|
+
3. add copy logic
|
|
16
|
+
4. add log logic
|
|
17
|
+
5. add skipDeps config
|
|
18
|
+
|
|
19
|
+
feat:
|
|
20
|
+
|
|
21
|
+
1. 添加样式配置以及新的 hook
|
|
22
|
+
2. 添加 dts 别名处理
|
|
23
|
+
3. 添加 copy 逻辑
|
|
24
|
+
4. 添加日志逻辑
|
|
25
|
+
5. 添加 skipDeps 配置
|
|
26
|
+
|
|
27
|
+
- 4fd53b48fd: feat: add normalize config logic
|
|
28
|
+
feat: 添加处理配置的逻辑
|
|
29
|
+
- f0ee9120db: feat: change dev menu log
|
|
30
|
+
feat: 修改 dev 菜单展示的内容
|
|
31
|
+
- 148fbf8e25: feat: update afterBuild options
|
|
32
|
+
feat: 更新 afterBuild 函数的参数
|
|
33
|
+
- 0bb776858a: feat: add ModuleContext
|
|
34
|
+
feat: 添加 ModuleContext
|
|
35
|
+
- e6bfca6d31: feat: add type define and schema for config
|
|
36
|
+
feat: 为配置增加类型定义和 schema
|
|
37
|
+
- 54abc88a2a: feat: add new and upgrade command
|
|
38
|
+
feat: 添加 new 和 upgrade 命令
|
|
39
|
+
- e4558a0bc4: feat:
|
|
40
|
+
|
|
41
|
+
1. add `runBin` function
|
|
42
|
+
2. config internal plugins constants in the app/module/doc tools
|
|
43
|
+
3. add app/module/doc tools internal plugins
|
|
44
|
+
|
|
45
|
+
feat:
|
|
46
|
+
|
|
47
|
+
1. 添加 `runBin` 函数
|
|
48
|
+
2. 在 app/module/doc tools 里配置内部插件
|
|
49
|
+
3. 增加 app/module/doc tools 使用的插件常量
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- d6546ad916: add buildConfig style in module-tools and remove tools
|
|
54
|
+
在 module-tools 里新增 buildConfig style 并删除 tools
|
|
55
|
+
- d61ca88a0b: update speedy version
|
|
56
|
+
更新依赖里 speedy 的版本
|
|
57
|
+
- 94339fc: support svgr
|
|
58
|
+
支持将 svg 转化为 react 组件
|
|
59
|
+
- 9f9ef4e6e3: fix: fix alias resolve
|
|
60
|
+
fix: 修复别名处理
|
|
61
|
+
- b8bbe036c7: feat: export Hooks type
|
|
62
|
+
feat: 导出 Hooks 类型
|
|
63
|
+
- 5282947: fix the wrong error message
|
|
64
|
+
修复错误的报错信息
|
|
65
|
+
- cc971eabfc: refactor: move server plugin load logic in `@modern-js/core`
|
|
66
|
+
refactor:移除在 `@modern-js/core` 中的 server 插件加载逻辑
|
|
67
|
+
- f037ac0: upgrade libuild version and remove warning log
|
|
68
|
+
升级 libuild 版本并移除构建的警告信息
|
|
69
|
+
- ebbeed1ece: update speedy-core to fix sass resolve error
|
|
70
|
+
更新 speedy-core 版本以修复 sass resolve 错误
|
|
71
|
+
- d4a456659b: chore: rename plugin-jarvis to plugin-lint
|
|
72
|
+
|
|
73
|
+
chore: 重命名 plugin-jarvis 为 plugin-lint
|
|
74
|
+
|
|
75
|
+
- b1bc873: fix dts bundle compilation options
|
|
76
|
+
修复打包类型描述文件的 compilation options
|
|
77
|
+
- 540de1fd5d: fix: filename typo, color.ts --> colors.ts
|
|
78
|
+
fix: 文件名错误,color.ts 修改为 colors.ts
|
|
79
|
+
- a2c8cc3eb5: fix: change tools define userconfig type
|
|
80
|
+
fix: 修改工程定义的 UserConfig 类型
|
|
81
|
+
- 1be4ba1ccd: feat: add platform build log
|
|
82
|
+
feat: 添加 platform 构建的 log 内容
|
|
83
|
+
- 14b712da84: fix: use consistent alias type and default value across packages
|
|
84
|
+
|
|
85
|
+
fix: 在各个包中使用一致的 alias 类型定义和默认值
|
|
86
|
+
|
|
87
|
+
- Updated dependencies [7879e8f711]
|
|
88
|
+
- Updated dependencies [c9e800d39a]
|
|
89
|
+
- Updated dependencies [6aca875011]
|
|
90
|
+
- Updated dependencies [85edee888c]
|
|
91
|
+
- Updated dependencies [2e6031955e]
|
|
92
|
+
- Updated dependencies [7b7d12cf8f]
|
|
93
|
+
- Updated dependencies [7efeed4]
|
|
94
|
+
- Updated dependencies [92f0eade39]
|
|
95
|
+
- Updated dependencies [edd1cfb1af]
|
|
96
|
+
- Updated dependencies [cc971eabfc]
|
|
97
|
+
- Updated dependencies [5b9049f2e9]
|
|
98
|
+
- Updated dependencies [a3af050486]
|
|
99
|
+
- Updated dependencies [d4a456659b]
|
|
100
|
+
- Updated dependencies [92004d1906]
|
|
101
|
+
- Updated dependencies [b8bbe036c7]
|
|
102
|
+
- Updated dependencies [f680410886]
|
|
103
|
+
- Updated dependencies [d5a31df781]
|
|
104
|
+
- Updated dependencies [dda38c9c3e]
|
|
105
|
+
- Updated dependencies [8b8e1bb571]
|
|
106
|
+
- Updated dependencies [3bbea92b2a]
|
|
107
|
+
- Updated dependencies [b710adb843]
|
|
108
|
+
- Updated dependencies [b7a96c35fc]
|
|
109
|
+
- Updated dependencies [cce8ecee2d]
|
|
110
|
+
- Updated dependencies [f179749375]
|
|
111
|
+
- Updated dependencies [b8494ef33b]
|
|
112
|
+
- Updated dependencies [ea7cf06257]
|
|
113
|
+
- Updated dependencies [bbe4c4ab64]
|
|
114
|
+
- Updated dependencies [e4558a0bc4]
|
|
115
|
+
- Updated dependencies [abf3421a75]
|
|
116
|
+
- Updated dependencies [543be9558e]
|
|
117
|
+
- Updated dependencies [14b712da84]
|
|
118
|
+
- @modern-js/utils@2.0.0-beta.6
|
|
119
|
+
- @modern-js/core@2.0.0-beta.6
|
|
120
|
+
- @modern-js/plugin-lint@2.0.0-beta.6
|
|
121
|
+
- @modern-js/plugin@2.0.0-beta.6
|
|
122
|
+
- @modern-js/plugin-changeset@2.0.0-beta.6
|
|
123
|
+
- @modern-js/plugin-i18n@2.0.0-beta.6
|
|
124
|
+
- @modern-js/new-action@2.0.0-beta.6
|
|
125
|
+
- @modern-js/upgrade@2.0.0-beta.6
|
|
126
|
+
|
|
127
|
+
## 2.0.0-beta.4
|
|
128
|
+
|
|
129
|
+
### Major Changes
|
|
130
|
+
|
|
131
|
+
- dda38c9c3e: chore: v2
|
|
132
|
+
|
|
133
|
+
### Minor Changes
|
|
134
|
+
|
|
135
|
+
- 92f0eade39: feat:
|
|
136
|
+
|
|
137
|
+
1. add style config and add new hook
|
|
138
|
+
2. add dts alias logic
|
|
139
|
+
3. add copy logic
|
|
140
|
+
4. add log logic
|
|
141
|
+
5. add skipDeps config
|
|
142
|
+
|
|
143
|
+
feat:
|
|
144
|
+
|
|
145
|
+
1. 添加样式配置以及新的 hook
|
|
146
|
+
2. 添加 dts 别名处理
|
|
147
|
+
3. 添加 copy 逻辑
|
|
148
|
+
4. 添加日志逻辑
|
|
149
|
+
5. 添加 skipDeps 配置
|
|
150
|
+
|
|
151
|
+
- 4fd53b48fd: feat: add normalize config logic
|
|
152
|
+
feat: 添加处理配置的逻辑
|
|
153
|
+
- f0ee9120db: feat: change dev menu log
|
|
154
|
+
feat: 修改 dev 菜单展示的内容
|
|
155
|
+
- 148fbf8: feat: update afterBuild options
|
|
156
|
+
feat: 更新 afterBuild 函数的参数
|
|
157
|
+
- 0bb776858a: feat: add ModuleContext
|
|
158
|
+
feat: 添加 ModuleContext
|
|
159
|
+
- e6bfca6d31: feat: add type define and schema for config
|
|
160
|
+
feat: 为配置增加类型定义和 schema
|
|
161
|
+
- 54abc88a2a: feat: add new and upgrade command
|
|
162
|
+
feat: 添加 new 和 upgrade 命令
|
|
163
|
+
- e4558a0: feat:
|
|
164
|
+
|
|
165
|
+
1. add `runBin` function
|
|
166
|
+
2. config internal plugins constants in the app/module/doc tools
|
|
167
|
+
3. add app/module/doc tools internal plugins
|
|
168
|
+
|
|
169
|
+
feat:
|
|
170
|
+
|
|
171
|
+
1. 添加 `runBin` 函数
|
|
172
|
+
2. 在 app/module/doc tools 里配置内部插件
|
|
173
|
+
3. 增加 app/module/doc tools 使用的插件常量
|
|
174
|
+
|
|
175
|
+
### Patch Changes
|
|
176
|
+
|
|
177
|
+
- d6546ad916: add buildConfig style in module-tools and remove tools
|
|
178
|
+
在 module-tools 里新增 buildConfig style 并删除 tools
|
|
179
|
+
- d61ca88a0b: update speedy version
|
|
180
|
+
更新依赖里 speedy 的版本
|
|
181
|
+
- 9f9ef4e: fix: fix alias resolve
|
|
182
|
+
fix: 修复别名处理
|
|
183
|
+
- b8bbe036c7: feat: export Hooks type
|
|
184
|
+
feat: 导出 Hooks 类型
|
|
185
|
+
- cc971eabfc: refactor: move server plugin load logic in `@modern-js/core`
|
|
186
|
+
refactor:移除在 `@modern-js/core` 中的 server 插件加载逻辑
|
|
187
|
+
- ebbeed1ece: update speedy-core to fix sass resolve error
|
|
188
|
+
更新 speedy-core 版本以修复 sass resolve 错误
|
|
189
|
+
- d4a456659b: chore: rename plugin-jarvis to plugin-lint
|
|
190
|
+
|
|
191
|
+
chore: 重命名 plugin-jarvis 为 plugin-lint
|
|
192
|
+
|
|
193
|
+
- 540de1fd5d: fix: filename typo, color.ts --> colors.ts
|
|
194
|
+
fix: 文件名错误,color.ts 修改为 colors.ts
|
|
195
|
+
- a2c8cc3eb5: fix: change tools define userconfig type
|
|
196
|
+
fix: 修改工程定义的 UserConfig 类型
|
|
197
|
+
- 1be4ba1ccd: feat: add platform build log
|
|
198
|
+
feat: 添加 platform 构建的 log 内容
|
|
199
|
+
- 14b712da84: fix: use consistent alias type and default value across packages
|
|
200
|
+
|
|
201
|
+
fix: 在各个包中使用一致的 alias 类型定义和默认值
|
|
202
|
+
|
|
203
|
+
- Updated dependencies [7879e8f]
|
|
204
|
+
- Updated dependencies [c9e800d39a]
|
|
205
|
+
- Updated dependencies [6aca875]
|
|
206
|
+
- Updated dependencies [85edee888c]
|
|
207
|
+
- Updated dependencies [2e6031955e]
|
|
208
|
+
- Updated dependencies [7b7d12c]
|
|
209
|
+
- Updated dependencies [92f0eade39]
|
|
210
|
+
- Updated dependencies [edd1cfb1af]
|
|
211
|
+
- Updated dependencies [cc971eabfc]
|
|
212
|
+
- Updated dependencies [5b9049f2e9]
|
|
213
|
+
- Updated dependencies [a3af050486]
|
|
214
|
+
- Updated dependencies [d4a456659b]
|
|
215
|
+
- Updated dependencies [92004d1906]
|
|
216
|
+
- Updated dependencies [b8bbe036c7]
|
|
217
|
+
- Updated dependencies [f680410886]
|
|
218
|
+
- Updated dependencies [d5a31df781]
|
|
219
|
+
- Updated dependencies [dda38c9c3e]
|
|
220
|
+
- Updated dependencies [8b8e1bb571]
|
|
221
|
+
- Updated dependencies [3bbea92b2a]
|
|
222
|
+
- Updated dependencies [b710adb843]
|
|
223
|
+
- Updated dependencies [b7a96c35fc]
|
|
224
|
+
- Updated dependencies [cce8ecee2d]
|
|
225
|
+
- Updated dependencies [f179749375]
|
|
226
|
+
- Updated dependencies [b8494ef]
|
|
227
|
+
- Updated dependencies [ea7cf06]
|
|
228
|
+
- Updated dependencies [bbe4c4a]
|
|
229
|
+
- Updated dependencies [e4558a0]
|
|
230
|
+
- Updated dependencies [abf3421a75]
|
|
231
|
+
- Updated dependencies [543be9558e]
|
|
232
|
+
- Updated dependencies [14b712da84]
|
|
233
|
+
- @modern-js/utils@2.0.0-beta.4
|
|
234
|
+
- @modern-js/core@2.0.0-beta.4
|
|
235
|
+
- @modern-js/plugin-lint@2.0.0-beta.4
|
|
236
|
+
- @modern-js/plugin@2.0.0-beta.4
|
|
237
|
+
- @modern-js/plugin-changeset@2.0.0-beta.4
|
|
238
|
+
- @modern-js/plugin-i18n@2.0.0-beta.4
|
|
239
|
+
- @modern-js/new-action@2.0.0-beta.4
|
|
240
|
+
- @modern-js/upgrade@2.0.0-beta.4
|
|
241
|
+
|
|
3
242
|
## 2.0.0-beta.3
|
|
4
243
|
|
|
5
244
|
### Major Changes
|
|
@@ -81,22 +320,49 @@
|
|
|
81
320
|
|
|
82
321
|
- dda38c9c3e: chore: v2
|
|
83
322
|
|
|
323
|
+
### Minor Changes
|
|
324
|
+
|
|
325
|
+
- 92f0ead: feat:
|
|
326
|
+
|
|
327
|
+
1. add style config and add new hook
|
|
328
|
+
2. add dts alias logic
|
|
329
|
+
3. add copy logic
|
|
330
|
+
4. add log logic
|
|
331
|
+
5. add skipDeps config
|
|
332
|
+
|
|
333
|
+
feat:
|
|
334
|
+
|
|
335
|
+
1. 添加样式配置以及新的 hook
|
|
336
|
+
2. 添加 dts 别名处理
|
|
337
|
+
3. 添加 copy 逻辑
|
|
338
|
+
4. 添加日志逻辑
|
|
339
|
+
5. 添加 skipDeps 配置
|
|
340
|
+
|
|
341
|
+
- 4fd53b48fd: feat: add normalize config logic
|
|
342
|
+
feat: 添加处理配置的逻辑
|
|
343
|
+
- f0ee9120db: feat: change dev menu log
|
|
344
|
+
feat: 修改 dev 菜单展示的内容
|
|
345
|
+
- 0bb776858a: feat: add ModuleContext
|
|
346
|
+
feat: 添加 ModuleContext
|
|
347
|
+
- e6bfca6d31: feat: add type define and schema for config
|
|
348
|
+
feat: 为配置增加类型定义和 schema
|
|
349
|
+
- 54abc88a2a: feat: add new and upgrade command
|
|
350
|
+
feat: 添加 new 和 upgrade 命令
|
|
351
|
+
|
|
84
352
|
### Patch Changes
|
|
85
353
|
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
- b8bbe036c7: feat: export Hooks type
|
|
89
|
-
feat: 导出 Hooks 类型
|
|
90
|
-
- ebbeed1: update speedy-core to fix sass resolve error
|
|
91
|
-
更新 speedy-core 版本以修复 sass resolve 错误
|
|
354
|
+
- cc971eabfc: refactor: move server plugin load logic in `@modern-js/core`
|
|
355
|
+
refactor:移除在 `@modern-js/core` 中的 server 插件加载逻辑
|
|
92
356
|
- d4a4566: chore: rename plugin-jarvis to plugin-lint
|
|
93
357
|
|
|
94
358
|
chore: 重命名 plugin-jarvis 为 plugin-lint
|
|
95
359
|
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
360
|
+
- 540de1fd5d: fix: filename typo, color.ts --> colors.ts
|
|
361
|
+
fix: 文件名错误,color.ts 修改为 colors.ts
|
|
362
|
+
- a2c8cc3: fix: change tools define userconfig type
|
|
363
|
+
fix: 修改工程定义的 UserConfig 类型
|
|
364
|
+
- 1be4ba1ccd: feat: add platform build log
|
|
365
|
+
feat: 添加 platform 构建的 log 内容
|
|
100
366
|
- Updated dependencies [c9e800d39a]
|
|
101
367
|
- Updated dependencies [85edee888c]
|
|
102
368
|
- Updated dependencies [92f0ead]
|
|
@@ -118,12 +384,9 @@
|
|
|
118
384
|
- @modern-js/utils@2.0.0-beta.2
|
|
119
385
|
- @modern-js/plugin-lint@2.0.0-beta.2
|
|
120
386
|
- @modern-js/plugin@2.0.0-beta.2
|
|
121
|
-
- @modern-js/babel-preset-module@2.0.0-beta.2
|
|
122
387
|
- @modern-js/plugin-changeset@2.0.0-beta.2
|
|
123
388
|
- @modern-js/plugin-i18n@2.0.0-beta.2
|
|
124
389
|
- @modern-js/new-action@2.0.0-beta.2
|
|
125
|
-
- @modern-js/babel-compiler@2.0.0-beta.2
|
|
126
|
-
- @modern-js/style-compiler@2.0.0-beta.2
|
|
127
390
|
- @modern-js/upgrade@2.0.0-beta.2
|
|
128
391
|
|
|
129
392
|
## 2.0.0-beta.1
|
|
@@ -132,22 +395,47 @@
|
|
|
132
395
|
|
|
133
396
|
- dda38c9: chore: v2
|
|
134
397
|
|
|
398
|
+
### Minor Changes
|
|
399
|
+
|
|
400
|
+
- 92f0ead: feat:
|
|
401
|
+
|
|
402
|
+
1. add style config and add new hook
|
|
403
|
+
2. add dts alias logic
|
|
404
|
+
3. add copy logic
|
|
405
|
+
4. add log logic
|
|
406
|
+
5. add skipDeps config
|
|
407
|
+
|
|
408
|
+
feat:
|
|
409
|
+
|
|
410
|
+
1. 添加样式配置以及新的 hook
|
|
411
|
+
2. 添加 dts 别名处理
|
|
412
|
+
3. 添加 copy 逻辑
|
|
413
|
+
4. 添加日志逻辑
|
|
414
|
+
5. 添加 skipDeps 配置
|
|
415
|
+
|
|
416
|
+
- 4fd53b48fd: feat: add normalize config logic
|
|
417
|
+
feat: 添加处理配置的逻辑
|
|
418
|
+
- f0ee9120db: feat: change dev menu log
|
|
419
|
+
feat: 修改 dev 菜单展示的内容
|
|
420
|
+
- 0bb776858a: feat: add ModuleContext
|
|
421
|
+
feat: 添加 ModuleContext
|
|
422
|
+
- e6bfca6d31: feat: add type define and schema for config
|
|
423
|
+
feat: 为配置增加类型定义和 schema
|
|
424
|
+
- 54abc88a2a: feat: add new and upgrade command
|
|
425
|
+
feat: 添加 new 和 upgrade 命令
|
|
426
|
+
|
|
135
427
|
### Patch Changes
|
|
136
428
|
|
|
137
|
-
-
|
|
138
|
-
|
|
139
|
-
- b8bbe036c7: feat: export Hooks type
|
|
140
|
-
feat: 导出 Hooks 类型
|
|
141
|
-
- ebbeed1: update speedy-core to fix sass resolve error
|
|
142
|
-
更新 speedy-core 版本以修复 sass resolve 错误
|
|
429
|
+
- cc971eabfc: refactor: move server plugin load logic in `@modern-js/core`
|
|
430
|
+
refactor:移除在 `@modern-js/core` 中的 server 插件加载逻辑
|
|
143
431
|
- d4a4566: chore: rename plugin-jarvis to plugin-lint
|
|
144
432
|
|
|
145
433
|
chore: 重命名 plugin-jarvis 为 plugin-lint
|
|
146
434
|
|
|
147
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
435
|
+
- 540de1fd5d: fix: filename typo, color.ts --> colors.ts
|
|
436
|
+
fix: 文件名错误,color.ts 修改为 colors.ts
|
|
437
|
+
- 1be4ba1ccd: feat: add platform build log
|
|
438
|
+
feat: 添加 platform 构建的 log 内容
|
|
151
439
|
- Updated dependencies [c9e800d39a]
|
|
152
440
|
- Updated dependencies [85edee888c]
|
|
153
441
|
- Updated dependencies [92f0ead]
|
|
@@ -169,12 +457,9 @@
|
|
|
169
457
|
- @modern-js/utils@2.0.0-beta.1
|
|
170
458
|
- @modern-js/plugin-lint@2.0.0-beta.1
|
|
171
459
|
- @modern-js/plugin@2.0.0-beta.1
|
|
172
|
-
- @modern-js/babel-preset-module@2.0.0-beta.1
|
|
173
460
|
- @modern-js/plugin-changeset@2.0.0-beta.1
|
|
174
461
|
- @modern-js/plugin-i18n@2.0.0-beta.1
|
|
175
462
|
- @modern-js/new-action@2.0.0-beta.1
|
|
176
|
-
- @modern-js/babel-compiler@2.0.0-beta.1
|
|
177
|
-
- @modern-js/style-compiler@2.0.0-beta.1
|
|
178
463
|
- @modern-js/upgrade@2.0.0-beta.1
|
|
179
464
|
|
|
180
465
|
## 2.0.0-beta.0
|
|
@@ -183,14 +468,27 @@
|
|
|
183
468
|
|
|
184
469
|
- dda38c9: chore: v2
|
|
185
470
|
|
|
186
|
-
###
|
|
187
|
-
|
|
188
|
-
- b8bbe036c: feat: export Hooks type
|
|
189
|
-
feat: 导出 Hooks 类型
|
|
190
|
-
- 14b712d: fix: use consistent alias type and default value across packages
|
|
191
|
-
|
|
192
|
-
fix: 在各个包中使用一致的 alias 类型定义和默认值
|
|
471
|
+
### Minor Changes
|
|
193
472
|
|
|
473
|
+
- 4fd53b48f: feat: add normalize config logic
|
|
474
|
+
feat: 添加处理配置的逻辑
|
|
475
|
+
- f0ee9120d: feat: change dev menu log
|
|
476
|
+
feat: 修改 dev 菜单展示的内容
|
|
477
|
+
- 0bb776858: feat: add ModuleContext
|
|
478
|
+
feat: 添加 ModuleContext
|
|
479
|
+
- e6bfca6d3: feat: add type define and schema for config
|
|
480
|
+
feat: 为配置增加类型定义和 schema
|
|
481
|
+
- 54abc88a2: feat: add new and upgrade command
|
|
482
|
+
feat: 添加 new 和 upgrade 命令
|
|
483
|
+
|
|
484
|
+
### Patch Changes
|
|
485
|
+
|
|
486
|
+
- cc971eabf: refactor: move server plugin load logic in `@modern-js/core`
|
|
487
|
+
refactor:移除在 `@modern-js/core` 中的 server 插件加载逻辑
|
|
488
|
+
- 540de1fd5: fix: filename typo, color.ts --> colors.ts
|
|
489
|
+
fix: 文件名错误,color.ts 修改为 colors.ts
|
|
490
|
+
- 1be4ba1cc: feat: add platform build log
|
|
491
|
+
feat: 添加 platform 构建的 log 内容
|
|
194
492
|
- Updated dependencies [c9e800d39]
|
|
195
493
|
- Updated dependencies [85edee8]
|
|
196
494
|
- Updated dependencies [edd1cfb1a]
|
|
@@ -207,188 +505,10 @@
|
|
|
207
505
|
- @modern-js/core@2.0.0-beta.0
|
|
208
506
|
- @modern-js/utils@2.0.0-beta.0
|
|
209
507
|
- @modern-js/plugin@2.0.0-beta.0
|
|
210
|
-
- @modern-js/babel-preset-module@2.0.0-beta.0
|
|
211
|
-
- @modern-js/plugin-changeset@2.0.0-beta.0
|
|
212
508
|
- @modern-js/plugin-i18n@2.0.0-beta.0
|
|
213
|
-
- @modern-js/plugin-jarvis@2.0.0-beta.0
|
|
214
509
|
- @modern-js/new-action@2.0.0-beta.0
|
|
215
|
-
- @modern-js/babel-compiler@2.0.0-beta.0
|
|
216
|
-
- @modern-js/style-compiler@2.0.0-beta.0
|
|
217
510
|
- @modern-js/upgrade@2.0.0-beta.0
|
|
218
511
|
|
|
219
|
-
## 1.21.2
|
|
220
|
-
|
|
221
|
-
### Patch Changes
|
|
222
|
-
|
|
223
|
-
- Updated dependencies [c85bcfc]
|
|
224
|
-
- Updated dependencies [9d4c0ba]
|
|
225
|
-
- @modern-js/style-compiler@1.21.2
|
|
226
|
-
- @modern-js/plugin@1.21.2
|
|
227
|
-
- @modern-js/new-action@1.21.2
|
|
228
|
-
- @modern-js/core@1.21.2
|
|
229
|
-
- @modern-js/css-config@1.21.2
|
|
230
|
-
- @modern-js/plugin-changeset@1.21.2
|
|
231
|
-
- @modern-js/plugin-jarvis@1.21.2
|
|
232
|
-
- @modern-js/babel-preset-module@1.21.2
|
|
233
|
-
- @modern-js/plugin-i18n@1.21.2
|
|
234
|
-
- @modern-js/babel-compiler@1.21.2
|
|
235
|
-
- @modern-js/upgrade@1.21.2
|
|
236
|
-
- @modern-js/utils@1.21.2
|
|
237
|
-
|
|
238
|
-
## 1.21.1
|
|
239
|
-
|
|
240
|
-
### Patch Changes
|
|
241
|
-
|
|
242
|
-
- fdea3b7: fix: support node-linker=hoist
|
|
243
|
-
|
|
244
|
-
fix: 支持 node-linker=hoist
|
|
245
|
-
|
|
246
|
-
- @modern-js/babel-preset-module@1.21.1
|
|
247
|
-
- @modern-js/core@1.21.1
|
|
248
|
-
- @modern-js/css-config@1.21.1
|
|
249
|
-
- @modern-js/plugin-changeset@1.21.1
|
|
250
|
-
- @modern-js/plugin-i18n@1.21.1
|
|
251
|
-
- @modern-js/plugin-jarvis@1.21.1
|
|
252
|
-
- @modern-js/new-action@1.21.1
|
|
253
|
-
- @modern-js/babel-compiler@1.21.1
|
|
254
|
-
- @modern-js/style-compiler@1.21.1
|
|
255
|
-
- @modern-js/plugin@1.21.1
|
|
256
|
-
- @modern-js/upgrade@1.21.1
|
|
257
|
-
- @modern-js/utils@1.21.1
|
|
258
|
-
|
|
259
|
-
## 1.21.0
|
|
260
|
-
|
|
261
|
-
### Patch Changes
|
|
262
|
-
|
|
263
|
-
- Updated dependencies [cfd8557]
|
|
264
|
-
- Updated dependencies [dca34c4]
|
|
265
|
-
- Updated dependencies [28f0a4f]
|
|
266
|
-
- Updated dependencies [b0597e3]
|
|
267
|
-
- @modern-js/new-action@1.21.0
|
|
268
|
-
- @modern-js/upgrade@1.21.0
|
|
269
|
-
- @modern-js/core@1.21.0
|
|
270
|
-
- @modern-js/plugin@1.21.0
|
|
271
|
-
- @modern-js/utils@1.21.0
|
|
272
|
-
- @modern-js/css-config@1.21.0
|
|
273
|
-
- @modern-js/plugin-changeset@1.21.0
|
|
274
|
-
- @modern-js/plugin-jarvis@1.21.0
|
|
275
|
-
- @modern-js/babel-preset-module@1.21.0
|
|
276
|
-
- @modern-js/plugin-i18n@1.21.0
|
|
277
|
-
- @modern-js/babel-compiler@1.21.0
|
|
278
|
-
- @modern-js/style-compiler@1.21.0
|
|
279
|
-
|
|
280
|
-
## 1.20.1
|
|
281
|
-
|
|
282
|
-
### Patch Changes
|
|
283
|
-
|
|
284
|
-
- Updated dependencies [49515c5]
|
|
285
|
-
- @modern-js/utils@1.20.1
|
|
286
|
-
- @modern-js/babel-preset-module@1.20.1
|
|
287
|
-
- @modern-js/core@1.20.1
|
|
288
|
-
- @modern-js/css-config@1.20.1
|
|
289
|
-
- @modern-js/plugin-changeset@1.20.1
|
|
290
|
-
- @modern-js/plugin-i18n@1.20.1
|
|
291
|
-
- @modern-js/plugin-jarvis@1.20.1
|
|
292
|
-
- @modern-js/new-action@1.20.1
|
|
293
|
-
- @modern-js/babel-compiler@1.20.1
|
|
294
|
-
- @modern-js/style-compiler@1.20.1
|
|
295
|
-
- @modern-js/upgrade@1.20.1
|
|
296
|
-
- @modern-js/plugin@1.20.1
|
|
297
|
-
|
|
298
|
-
## 1.20.0
|
|
299
|
-
|
|
300
|
-
### Patch Changes
|
|
301
|
-
|
|
302
|
-
- fffceae: fix: extends path error
|
|
303
|
-
fix: 修复 extends 字段路径的问题
|
|
304
|
-
- a4f8761: feat: add afterDev hook
|
|
305
|
-
feat: 添加 afterDev 钩子
|
|
306
|
-
- 3e5ad1e: chore: move copyTask from bundleless task to build task
|
|
307
|
-
chore: 把 copy 任务从 bundleless 任务中移动到 build 任务中
|
|
308
|
-
- Updated dependencies [d5d570b]
|
|
309
|
-
- Updated dependencies [4ddc185]
|
|
310
|
-
- Updated dependencies [df8ee7e]
|
|
311
|
-
- Updated dependencies [8c05089]
|
|
312
|
-
- Updated dependencies [d5d570b]
|
|
313
|
-
- @modern-js/utils@1.20.0
|
|
314
|
-
- @modern-js/core@1.20.0
|
|
315
|
-
- @modern-js/plugin-changeset@1.20.0
|
|
316
|
-
- @modern-js/babel-preset-module@1.20.0
|
|
317
|
-
- @modern-js/css-config@1.20.0
|
|
318
|
-
- @modern-js/plugin-i18n@1.20.0
|
|
319
|
-
- @modern-js/plugin-jarvis@1.20.0
|
|
320
|
-
- @modern-js/new-action@1.20.0
|
|
321
|
-
- @modern-js/babel-compiler@1.20.0
|
|
322
|
-
- @modern-js/style-compiler@1.20.0
|
|
323
|
-
- @modern-js/upgrade@1.20.0
|
|
324
|
-
- @modern-js/plugin@1.20.0
|
|
325
|
-
|
|
326
|
-
## 1.19.0
|
|
327
|
-
|
|
328
|
-
### Patch Changes
|
|
329
|
-
|
|
330
|
-
- bce327b: 支持自定义 umd 模块名通过设置'getModuleId'
|
|
331
|
-
support custom umd module name by 'getModuleId'
|
|
332
|
-
- Updated dependencies [d2cfa69]
|
|
333
|
-
- Updated dependencies [d2fbefc]
|
|
334
|
-
- Updated dependencies [d2fbefc]
|
|
335
|
-
- @modern-js/core@1.19.0
|
|
336
|
-
- @modern-js/plugin-jarvis@1.19.0
|
|
337
|
-
- @modern-js/plugin-changeset@1.19.0
|
|
338
|
-
- @modern-js/css-config@1.19.0
|
|
339
|
-
- @modern-js/new-action@1.19.0
|
|
340
|
-
- @modern-js/upgrade@1.19.0
|
|
341
|
-
- @modern-js/babel-preset-module@1.19.0
|
|
342
|
-
- @modern-js/plugin-i18n@1.19.0
|
|
343
|
-
- @modern-js/babel-compiler@1.19.0
|
|
344
|
-
- @modern-js/style-compiler@1.19.0
|
|
345
|
-
- @modern-js/plugin@1.19.0
|
|
346
|
-
- @modern-js/utils@1.19.0
|
|
347
|
-
|
|
348
|
-
## 1.18.1
|
|
349
|
-
|
|
350
|
-
### Patch Changes
|
|
351
|
-
|
|
352
|
-
- Updated dependencies [318e149]
|
|
353
|
-
- Updated dependencies [c1a4d9b]
|
|
354
|
-
- Updated dependencies [9fcfbd4]
|
|
355
|
-
- Updated dependencies [6c2c745]
|
|
356
|
-
- @modern-js/core@1.18.1
|
|
357
|
-
- @modern-js/plugin@1.18.1
|
|
358
|
-
- @modern-js/utils@1.18.1
|
|
359
|
-
- @modern-js/css-config@1.18.1
|
|
360
|
-
- @modern-js/plugin-changeset@1.18.1
|
|
361
|
-
- @modern-js/plugin-jarvis@1.18.1
|
|
362
|
-
- @modern-js/babel-preset-module@1.18.1
|
|
363
|
-
- @modern-js/plugin-i18n@1.18.1
|
|
364
|
-
- @modern-js/new-action@1.18.1
|
|
365
|
-
- @modern-js/babel-compiler@1.18.1
|
|
366
|
-
- @modern-js/style-compiler@1.18.1
|
|
367
|
-
- @modern-js/upgrade@1.18.1
|
|
368
|
-
|
|
369
|
-
## 1.18.0
|
|
370
|
-
|
|
371
|
-
### Patch Changes
|
|
372
|
-
|
|
373
|
-
- Updated dependencies [8280920]
|
|
374
|
-
- Updated dependencies [9f13d8c]
|
|
375
|
-
- Updated dependencies [60a2e3a]
|
|
376
|
-
- Updated dependencies [5227370]
|
|
377
|
-
- Updated dependencies [66ad36f]
|
|
378
|
-
- Updated dependencies [7928bae]
|
|
379
|
-
- @modern-js/utils@1.18.0
|
|
380
|
-
- @modern-js/upgrade@1.18.0
|
|
381
|
-
- @modern-js/core@1.18.0
|
|
382
|
-
- @modern-js/babel-preset-module@1.18.0
|
|
383
|
-
- @modern-js/css-config@1.18.0
|
|
384
|
-
- @modern-js/plugin-changeset@1.18.0
|
|
385
|
-
- @modern-js/plugin-i18n@1.18.0
|
|
386
|
-
- @modern-js/plugin-jarvis@1.18.0
|
|
387
|
-
- @modern-js/new-action@1.18.0
|
|
388
|
-
- @modern-js/babel-compiler@1.18.0
|
|
389
|
-
- @modern-js/style-compiler@1.18.0
|
|
390
|
-
- @modern-js/plugin@1.18.0
|
|
391
|
-
|
|
392
512
|
## 1.17.0
|
|
393
513
|
|
|
394
514
|
### Patch Changes
|
package/bin/modern.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={367:e=>{e.exports=require("../highlight")}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var s=t[r]={exports:{}};var o=true;try{e[r](s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r={};(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:true});e.codeFrameColumns=codeFrameColumns;e["default"]=_default;var t=__nccwpck_require__(367);let n=false;function getDefs(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const s=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(e,t,r){const n=Object.assign({column:0,line:-1},e.start);const s=Object.assign({},n,e.end);const{linesAbove:o=2,linesBelow:a=3}=r||{};const i=n.line;const l=n.column;const c=s.line;const u=s.column;let f=Math.max(i-(o+1),0);let m=Math.min(t.length,c+a);if(i===-1){f=0}if(c===-1){m=t.length}const g=c-i;const d={};if(g){for(let e=0;e<=g;e++){const r=e+i;if(!l){d[r]=true}else if(e===0){const e=t[r-1].length;d[r]=[l,e-l+1]}else if(e===g){d[r]=[0,u]}else{const n=t[r-e].length;d[r]=[0,n]}}}else{if(l===u){if(l){d[i]=[l,0]}else{d[i]=true}}else{d[i]=[l,u-l]}}return{start:f,end:m,markerLines:d}}function codeFrameColumns(e,r,n={}){const o=(n.highlightCode||n.forceColor)&&(0,t.shouldHighlight)(n);const a=(0,t.getChalk)(n);const i=getDefs(a);const maybeHighlight=(e,t)=>o?e(t):t;const l=e.split(s);const{start:c,end:u,markerLines:f}=getMarkerLines(r,l,n);const m=r.start&&typeof r.start.column==="number";const g=String(u).length;const d=o?(0,t.default)(e,n):e;let _=d.split(s,u).slice(c,u).map(((e,t)=>{const r=c+1+t;const s=` ${r}`.slice(-g);const o=` ${s} |`;const a=f[r];const l=!f[r+1];if(a){let t="";if(Array.isArray(a)){const r=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," ");const s=a[1]||1;t=["\n ",maybeHighlight(i.gutter,o.replace(/\d/g," "))," ",r,maybeHighlight(i.marker,"^").repeat(s)].join("");if(l&&n.message){t+=" "+maybeHighlight(i.message,n.message)}}return[maybeHighlight(i.marker,">"),maybeHighlight(i.gutter,o),e.length>0?` ${e}`:"",t].join("")}else{return` ${maybeHighlight(i.gutter,o)}${e.length>0?` ${e}`:""}`}})).join("\n");if(n.message&&!m){_=`${" ".repeat(g+1)}${n.message}\n${_}`}if(o){return a.reset(_)}else{return _}}function _default(e,t,r,s={}){if(!n){n=true;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(e,"DeprecationWarning")}else{const t=new Error(e);t.name="DeprecationWarning";console.warn(new Error(e))}}r=Math.max(r,0);const o={start:{column:r,line:t}};return codeFrameColumns(e,o,s)}})();module.exports=r})();
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"@babel/code-frame","author":"The Babel Team (https://babel.dev/team)","version":"7.16.7","license":"MIT","types":"index.d.ts"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export = any;
|