miniprogram-ci 2.1.34 → 2.1.36
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 +4 -0
- package/README.md +4 -0
- package/dist/@types/common/code-analyse/index.d.ts +2 -0
- package/dist/@types/config/config.d.ts +1 -1
- package/dist/@types/modules/corecompiler/original/workerThread/config.d.ts +4 -3
- package/dist/@types/modules/corecompiler/summer/plugins/script_task/babel_script_task.d.ts +1 -0
- package/dist/@types/modules/corecompiler/summerCompiler.d.ts +1 -0
- package/dist/@types/modules/nativecompiler/ios/buildCloud.d.ts +2 -0
- package/dist/@types/schema/@types/appjson.d.ts +3 -0
- package/dist/@types/types/miniprogram-json/app.d.ts +8 -0
- package/dist/@types/utils/asar.d.ts +1 -0
- package/dist/@types/utils/customError.d.ts +1 -1
- package/dist/@types/utils/packOptionsHelper.d.ts +1 -1
- package/dist/common/code-analyse/index.js +1 -1
- package/dist/config/config.js +1 -1
- package/dist/modules/corecompiler/original/protect/fileFlatter.js +1 -1
- package/dist/modules/corecompiler/original/protect/uglifyfilenames.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/config.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/worker.js +1 -1
- package/dist/modules/corecompiler/original/workerThread/workerManager.js +1 -1
- package/dist/modules/corecompiler/summer/graph/appconf.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/filetask/script.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/script_task/babel_script_task.js +1 -1
- package/dist/modules/corecompiler/summer/plugins/script_task/swc_task.js +1 -1
- package/dist/modules/corecompiler/summer/worker.js +1 -1
- package/dist/modules/corecompiler/summerCompiler.js +1 -1
- package/dist/modules/nativecompiler/ios/buildCloud.js +1 -1
- package/dist/schema/dist/app.js +18 -0
- package/dist/services/common/getservice.js +1 -1
- package/dist/services/multiTaskManager/electron/multiTaskManager.js +1 -1
- package/dist/utils/asar.js +1 -0
- package/dist/utils/codesign.js +1 -1
- package/dist/utils/customError.js +1 -1
- package/dist/utils/packOptionsHelper.js +1 -1
- package/dist/utils/swc_config.js +1 -1
- package/dist/vendor/swc_runtime/_apply_decorated_descriptor.js +1 -1
- package/dist/vendor/swc_runtime/_apply_decs_2203_r.js +1 -1
- package/dist/vendor/swc_runtime/_array_like_to_array.js +1 -1
- package/dist/vendor/swc_runtime/_array_with_holes.js +1 -1
- package/dist/vendor/swc_runtime/_array_without_holes.js +1 -1
- package/dist/vendor/swc_runtime/_assert_this_initialized.js +1 -1
- package/dist/vendor/swc_runtime/_async_generator.js +1 -1
- package/dist/vendor/swc_runtime/_async_generator_delegate.js +1 -1
- package/dist/vendor/swc_runtime/_async_iterator.js +1 -1
- package/dist/vendor/swc_runtime/_async_to_generator.js +1 -1
- package/dist/vendor/swc_runtime/_await_async_generator.js +1 -1
- package/dist/vendor/swc_runtime/_await_value.js +1 -1
- package/dist/vendor/swc_runtime/_call_super.js +1 -0
- package/dist/vendor/swc_runtime/_check_private_redeclaration.js +1 -1
- package/dist/vendor/swc_runtime/_class_apply_descriptor_destructure.js +1 -1
- package/dist/vendor/swc_runtime/_class_apply_descriptor_get.js +1 -1
- package/dist/vendor/swc_runtime/_class_apply_descriptor_set.js +1 -1
- package/dist/vendor/swc_runtime/_class_apply_descriptor_update.js +1 -1
- package/dist/vendor/swc_runtime/_class_call_check.js +1 -1
- package/dist/vendor/swc_runtime/_class_check_private_static_access.js +1 -1
- package/dist/vendor/swc_runtime/_class_check_private_static_field_descriptor.js +1 -1
- package/dist/vendor/swc_runtime/_class_extract_field_descriptor.js +1 -1
- package/dist/vendor/swc_runtime/_class_name_tdz_error.js +1 -1
- package/dist/vendor/swc_runtime/_class_private_field_destructure.js +1 -1
- package/dist/vendor/swc_runtime/_class_private_field_get.js +1 -1
- package/dist/vendor/swc_runtime/_class_private_field_init.js +1 -1
- package/dist/vendor/swc_runtime/_class_private_field_loose_base.js +1 -1
- package/dist/vendor/swc_runtime/_class_private_field_loose_key.js +1 -1
- package/dist/vendor/swc_runtime/_class_private_field_set.js +1 -1
- package/dist/vendor/swc_runtime/_class_private_field_update.js +1 -1
- package/dist/vendor/swc_runtime/_class_private_method_get.js +1 -1
- package/dist/vendor/swc_runtime/_class_private_method_init.js +1 -1
- package/dist/vendor/swc_runtime/_class_private_method_set.js +1 -1
- package/dist/vendor/swc_runtime/_class_static_private_field_destructure.js +1 -1
- package/dist/vendor/swc_runtime/_class_static_private_field_spec_get.js +1 -1
- package/dist/vendor/swc_runtime/_class_static_private_field_spec_set.js +1 -1
- package/dist/vendor/swc_runtime/_class_static_private_field_update.js +1 -1
- package/dist/vendor/swc_runtime/_class_static_private_method_get.js +1 -1
- package/dist/vendor/swc_runtime/_construct.js +1 -1
- package/dist/vendor/swc_runtime/_create_class.js +1 -1
- package/dist/vendor/swc_runtime/_create_for_of_iterator_helper_loose.js +1 -1
- package/dist/vendor/swc_runtime/_create_super.js +1 -1
- package/dist/vendor/swc_runtime/_decorate.js +1 -1
- package/dist/vendor/swc_runtime/_defaults.js +1 -1
- package/dist/vendor/swc_runtime/_define_enumerable_properties.js +1 -1
- package/dist/vendor/swc_runtime/_define_property.js +1 -1
- package/dist/vendor/swc_runtime/_dispose.js +1 -1
- package/dist/vendor/swc_runtime/_export_star.js +1 -1
- package/dist/vendor/swc_runtime/_extends.js +1 -1
- package/dist/vendor/swc_runtime/_get.js +1 -1
- package/dist/vendor/swc_runtime/_get_prototype_of.js +1 -1
- package/dist/vendor/swc_runtime/_identity.js +1 -1
- package/dist/vendor/swc_runtime/_inherits.js +1 -1
- package/dist/vendor/swc_runtime/_inherits_loose.js +1 -1
- package/dist/vendor/swc_runtime/_initializer_define_property.js +1 -1
- package/dist/vendor/swc_runtime/_initializer_warning_helper.js +1 -1
- package/dist/vendor/swc_runtime/_instanceof.js +1 -1
- package/dist/vendor/swc_runtime/_interop_require_default.js +1 -1
- package/dist/vendor/swc_runtime/_interop_require_wildcard.js +1 -1
- package/dist/vendor/swc_runtime/_is_native_function.js +1 -1
- package/dist/vendor/swc_runtime/_is_native_reflect_construct.js +1 -1
- package/dist/vendor/swc_runtime/_iterable_to_array.js +1 -1
- package/dist/vendor/swc_runtime/_iterable_to_array_limit.js +1 -1
- package/dist/vendor/swc_runtime/_iterable_to_array_limit_loose.js +1 -1
- package/dist/vendor/swc_runtime/_jsx.js +1 -1
- package/dist/vendor/swc_runtime/_new_arrow_check.js +1 -1
- package/dist/vendor/swc_runtime/_non_iterable_rest.js +1 -1
- package/dist/vendor/swc_runtime/_non_iterable_spread.js +1 -1
- package/dist/vendor/swc_runtime/_object_destructuring_empty.js +1 -1
- package/dist/vendor/swc_runtime/_object_spread.js +1 -1
- package/dist/vendor/swc_runtime/_object_spread_props.js +1 -1
- package/dist/vendor/swc_runtime/_object_without_properties.js +1 -1
- package/dist/vendor/swc_runtime/_object_without_properties_loose.js +1 -1
- package/dist/vendor/swc_runtime/_overload_yield.js +1 -0
- package/dist/vendor/swc_runtime/_possible_constructor_return.js +1 -1
- package/dist/vendor/swc_runtime/_read_only_error.js +1 -1
- package/dist/vendor/swc_runtime/_set.js +1 -1
- package/dist/vendor/swc_runtime/_set_prototype_of.js +1 -1
- package/dist/vendor/swc_runtime/_skip_first_generator_next.js +1 -1
- package/dist/vendor/swc_runtime/_sliced_to_array.js +1 -1
- package/dist/vendor/swc_runtime/_sliced_to_array_loose.js +1 -1
- package/dist/vendor/swc_runtime/_super_prop_base.js +1 -1
- package/dist/vendor/swc_runtime/_tagged_template_literal.js +1 -1
- package/dist/vendor/swc_runtime/_tagged_template_literal_loose.js +1 -1
- package/dist/vendor/swc_runtime/_throw.js +1 -1
- package/dist/vendor/swc_runtime/_to_array.js +1 -1
- package/dist/vendor/swc_runtime/_to_consumable_array.js +1 -1
- package/dist/vendor/swc_runtime/_to_primitive.js +1 -1
- package/dist/vendor/swc_runtime/_to_property_key.js +1 -1
- package/dist/vendor/swc_runtime/_ts_add_disposable_resource.js +1 -0
- package/dist/vendor/swc_runtime/_ts_decorate.js +1 -1
- package/dist/vendor/swc_runtime/_ts_dispose_resources.js +1 -0
- package/dist/vendor/swc_runtime/_ts_generator.js +1 -1
- package/dist/vendor/swc_runtime/_ts_metadata.js +1 -1
- package/dist/vendor/swc_runtime/_ts_param.js +1 -1
- package/dist/vendor/swc_runtime/_ts_values.js +1 -1
- package/dist/vendor/swc_runtime/_type_of.js +1 -1
- package/dist/vendor/swc_runtime/_unsupported_iterable_to_array.js +1 -1
- package/dist/vendor/swc_runtime/_update.js +1 -1
- package/dist/vendor/swc_runtime/_using.js +1 -1
- package/dist/vendor/swc_runtime/_using_ctx.js +1 -0
- package/dist/vendor/swc_runtime/_wrap_async_generator.js +1 -1
- package/dist/vendor/swc_runtime/_wrap_native_super.js +1 -1
- package/dist/vendor/swc_runtime/_write_only_error.js +1 -1
- package/dist/vendor/swc_runtime/index.js +1 -1
- package/package.json +3 -3
- package/dist/@types/build-server/constant.d.ts +0 -42
- package/dist/@types/build-server/ctxManager.d.ts +0 -2
- package/dist/@types/build-server/fileCacheManager.d.ts +0 -43
- package/dist/@types/build-server/fileTaskDriver.d.ts +0 -36
- package/dist/@types/build-server/subProcess.d.ts +0 -1
- package/dist/@types/build-server/subTaskManager.d.ts +0 -8
- package/dist/@types/build-server/taskDriver.d.ts +0 -68
- package/dist/@types/build-server/taskFactory.d.ts +0 -22
- package/dist/@types/build-server/tasks/appserviceCompile/index.d.ts +0 -1
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.d.ts +0 -5
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.d.ts +0 -19
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.d.ts +0 -10
- package/dist/@types/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.d.ts +0 -23
- package/dist/@types/build-server/tasks/baseFileCompiler/OTService.d.ts +0 -7
- package/dist/@types/build-server/tasks/baseFileCompiler/enhance.d.ts +0 -29
- package/dist/@types/build-server/tasks/baseFileCompiler/es6module.d.ts +0 -44
- package/dist/@types/build-server/tasks/baseFileCompiler/index.d.ts +0 -3
- package/dist/@types/build-server/tasks/baseFileCompiler/javascript.d.ts +0 -36
- package/dist/@types/build-server/tasks/baseFileCompiler/less.d.ts +0 -43
- package/dist/@types/build-server/tasks/baseFileCompiler/minifywxml.d.ts +0 -10
- package/dist/@types/build-server/tasks/baseFileCompiler/readFile.d.ts +0 -2
- package/dist/@types/build-server/tasks/baseFileCompiler/sass.d.ts +0 -50
- package/dist/@types/build-server/tasks/baseFileCompiler/terser.d.ts +0 -20
- package/dist/@types/build-server/tasks/baseFileCompiler/typescript.d.ts +0 -25
- package/dist/@types/build-server/tasks/baseFileCompiler/worklet.d.ts +0 -13
- package/dist/@types/build-server/tasks/baseFileCompiler/wxss.d.ts +0 -33
- package/dist/@types/build-server/tasks/common/apperrcode.config.d.ts +0 -92
- package/dist/@types/build-server/tasks/common/compiletype.config.d.ts +0 -17
- package/dist/@types/build-server/tasks/common/constants.config.d.ts +0 -549
- package/dist/@types/build-server/tasks/common/simulatortype.config.d.ts +0 -15
- package/dist/@types/build-server/tasks/common/utils/appdevserver/getwxappcode.d.ts +0 -3
- package/dist/@types/build-server/tasks/common/utils/babel/babelhelpers.d.ts +0 -11
- package/dist/@types/build-server/tasks/common/utils/builder/builder.d.ts +0 -35
- package/dist/@types/build-server/tasks/common/utils/builder/filter.d.ts +0 -1
- package/dist/@types/build-server/tasks/common/utils/builder/index.d.ts +0 -10
- package/dist/@types/build-server/tasks/common/utils/cache/compile.d.ts +0 -72
- package/dist/@types/build-server/tasks/common/utils/cache/config.d.ts +0 -16
- package/dist/@types/build-server/tasks/common/utils/cache/filecompile.d.ts +0 -16
- package/dist/@types/build-server/tasks/common/utils/cache/jspersistcache.d.ts +0 -11
- package/dist/@types/build-server/tasks/common/utils/cache/manager.d.ts +0 -18
- package/dist/@types/build-server/tasks/common/utils/cache/persistcache.d.ts +0 -17
- package/dist/@types/build-server/tasks/common/utils/cache/reporter.d.ts +0 -9
- package/dist/@types/build-server/tasks/common/utils/colorutils.d.ts +0 -4
- package/dist/@types/build-server/tasks/common/utils/common/bindActionTools.d.ts +0 -8
- package/dist/@types/build-server/tasks/common/utils/common/schema.helper.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/common/tools.d.ts +0 -17
- package/dist/@types/build-server/tasks/common/utils/common/waitable.d.ts +0 -14
- package/dist/@types/build-server/tasks/common/utils/filerules.d.ts +0 -13
- package/dist/@types/build-server/tasks/common/utils/fsutils.d.ts +0 -7
- package/dist/@types/build-server/tasks/common/utils/handleError.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/helper/vendorValidate.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/interfacebuilder/registry/index.d.ts +0 -22
- package/dist/@types/build-server/tasks/common/utils/partialcompile.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/project/appconfig.d.ts +0 -5
- package/dist/@types/build-server/tasks/common/utils/project/appjson.d.ts +0 -2
- package/dist/@types/build-server/tasks/common/utils/project/customcomponent.d.ts +0 -20
- package/dist/@types/build-server/tasks/common/utils/project/generatecode.utils.d.ts +0 -5
- package/dist/@types/build-server/tasks/common/utils/project/getcompiledjs.d.ts +0 -30
- package/dist/@types/build-server/tasks/common/utils/project/helper/index.d.ts +0 -21
- package/dist/@types/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.d.ts +0 -142
- package/dist/@types/build-server/tasks/common/utils/project/helper/reserveddirectories.d.ts +0 -3
- package/dist/@types/build-server/tasks/common/utils/project/helper/theme.d.ts +0 -39
- package/dist/@types/build-server/tasks/common/utils/project/online/appconfig.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/project/pagejson.d.ts +0 -2
- package/dist/@types/build-server/tasks/common/utils/project/projectconfigjson.d.ts +0 -8
- package/dist/@types/build-server/tasks/common/utils/project/wxappcodejson.d.ts +0 -2
- package/dist/@types/build-server/tasks/common/utils/subpackageUtils.d.ts +0 -0
- package/dist/@types/build-server/tasks/common/utils/tracing/Trace.d.ts +0 -50
- package/dist/@types/build-server/tasks/common/utils/tracing/aegis.d.ts +0 -3
- package/dist/@types/build-server/tasks/common/utils/tracing/index.d.ts +0 -34
- package/dist/@types/build-server/tasks/common/utils/tracing/readiness.d.ts +0 -11
- package/dist/@types/build-server/tasks/common/utils/tracing/report.d.ts +0 -14
- package/dist/@types/build-server/tasks/common/utils/trans/transwxmltojs.d.ts +0 -28
- package/dist/@types/build-server/tasks/common/utils/transformsourcemap.d.ts +0 -1
- package/dist/@types/build-server/tasks/common/utils/web/glasseaselUtils.d.ts +0 -1
- package/dist/@types/build-server/tasks/common/utils/web/md5.d.ts +0 -2
- package/dist/@types/build-server/tasks/common/utils/web/processPath.d.ts +0 -9
- package/dist/@types/build-server/tasks/common/weapp.config.d.ts +0 -108
- package/dist/@types/build-server/tasks/pageInitSourceCompile/index.d.ts +0 -2
- package/dist/@types/build-server/tasks/pageframeCompile/index.d.ts +0 -1
- package/dist/@types/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.d.ts +0 -8
- package/dist/@types/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.d.ts +0 -26
- package/dist/@types/build-server/testAppConfig.d.ts +0 -1
- package/dist/@types/build-server/testAppservice.d.ts +0 -1
- package/dist/@types/build-server/testInitSourceCompile.d.ts +0 -1
- package/dist/@types/build-server/testPageframe.d.ts +0 -1
- package/dist/@types/build-server/testSubProcess.d.ts +0 -1
- package/dist/@types/build-server/utils/fileTask.d.ts +0 -5
- package/dist/@types/build-server/utils/getFileOrCache.d.ts +0 -24
- package/dist/@types/build-server/utils/process.d.ts +0 -0
- package/dist/@types/build-server/utils/request.d.ts +0 -47
- package/dist/@types/bussinessMonitor/monitor.d.ts +0 -1
- package/dist/@types/modules/corecompiler/summer/pipeManager/index.d.ts +0 -6
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipeCPProject.d.ts +0 -17
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipeContext.d.ts +0 -10
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipeManager.d.ts +0 -12
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipeWorker.d.ts +0 -2
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.d.ts +0 -3
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.d.ts +0 -3
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.d.ts +0 -3
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/index.d.ts +0 -2
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.d.ts +0 -4
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.d.ts +0 -3
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.d.ts +0 -6
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.d.ts +0 -9
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.d.ts +0 -12
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.d.ts +0 -11
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.d.ts +0 -8
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.d.ts +0 -92
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.d.ts +0 -1
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.d.ts +0 -6
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.d.ts +0 -3
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.d.ts +0 -21
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.d.ts +0 -40
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.d.ts +0 -3
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.d.ts +0 -3
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.d.ts +0 -19
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.d.ts +0 -15
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.d.ts +0 -9
- package/dist/@types/modules/corecompiler/summer/pipeManager/pipes/wccPipe.d.ts +0 -3
- package/dist/@types/modules/corecompiler/summer/pipeManager/types.d.ts +0 -100
- package/dist/@types/modules/fullcompiler/appservice/appservice.config.d.ts +0 -4
- package/dist/@types/modules/fullcompiler/appservice/generatecode.utils.d.ts +0 -12
- package/dist/@types/modules/fullcompiler/appservice/getappservice.d.ts +0 -9
- package/dist/@types/modules/fullcompiler/appservice/getcompiledjs.d.ts +0 -32
- package/dist/@types/modules/fullcompiler/appservice/getjsfile.d.ts +0 -18
- package/dist/@types/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.d.ts +0 -12
- package/dist/@types/modules/fullcompiler/appservice/getsubpackage.d.ts +0 -7
- package/dist/@types/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.d.ts +0 -10
- package/dist/@types/modules/fullcompiler/appservice/getwxappcode.d.ts +0 -13
- package/dist/@types/modules/fullcompiler/config/apperrcode.config.d.ts +0 -48
- package/dist/@types/modules/fullcompiler/filerules.d.ts +0 -5
- package/dist/@types/modules/fullcompiler/getallrawfiles.d.ts +0 -11
- package/dist/@types/modules/fullcompiler/getallwmltohtmlmap.d.ts +0 -11
- package/dist/@types/modules/fullcompiler/index.d.ts +0 -31
- package/dist/@types/modules/fullcompiler/pageframe/getsubpackage.d.ts +0 -10
- package/dist/@types/modules/fullcompiler/pageframe/getwxappcode.d.ts +0 -13
- package/dist/@types/modules/fullcompiler/pageframe/index.d.ts +0 -10
- package/dist/@types/modules/fullcompiler/trans/transwxmltojs.d.ts +0 -11
- package/dist/@types/modules/fullcompiler/trans/transwxsstojs.d.ts +0 -21
- package/dist/@types/modules/fullcompiler/trans/wxml/compilewxml.d.ts +0 -18
- package/dist/@types/modules/fullcompiler/trans/wxss/compilewxss.d.ts +0 -11
- package/dist/@types/modules/fullcompiler/utils/appconfig/appconfig.d.ts +0 -12
- package/dist/@types/modules/fullcompiler/utils/appconfig/appjson.d.ts +0 -3
- package/dist/@types/modules/fullcompiler/utils/appconfig/checkcustomcomponent.d.ts +0 -14
- package/dist/@types/modules/fullcompiler/utils/appconfig/pagejson.d.ts +0 -3
- package/dist/@types/modules/fullcompiler/utils/appconfig/wxappcodejson.d.ts +0 -3
- package/dist/@types/modules/fullcompiler/utils/filewriter/index.d.ts +0 -14
- package/dist/@types/modules/fullcompiler/utils/handleerror/errorconfig.d.ts +0 -9
- package/dist/@types/modules/fullcompiler/utils/handleerror/handleerror.d.ts +0 -3
- package/dist/@types/modules/fullcompiler/utils/handleerror/parseerr.d.ts +0 -42
- package/dist/@types/modules/fullcompiler/utils/index.d.ts +0 -4
- package/dist/@types/modules/fullcompiler/utils/taskmanager.d.ts +0 -23
- package/dist/@types/modules/fullcompiler/utils/theme/index.d.ts +0 -40
- package/dist/@types/modules/fullcompiler/utils/tools.d.ts +0 -15
- package/dist/@types/modules/fullcompiler/utils/transformsourcemap.d.ts +0 -1
- package/dist/@types/project/serverProject.d.ts +0 -38
- package/dist/@types/services/app/server/appDirService.d.ts +0 -6
- package/dist/@types/services/builder/server/builder.d.ts +0 -4
- package/dist/@types/services/compileCacheManager/common/compileCacheManager.d.ts +0 -23
- package/dist/@types/services/compileCacheManager/nw/compileCacheManager.d.ts +0 -16
- package/dist/@types/services/compileCacheManager/server/compileCacheManager.d.ts +0 -26
- package/dist/@types/services/compilewxml/server/compilewxmlService.d.ts +0 -5
- package/dist/@types/services/compilewxml/server/wccWorker.d.ts +0 -1
- package/dist/@types/services/compilewxss/server/compilewxssService.d.ts +0 -4
- package/dist/@types/services/compilewxss/server/wcscWorker.d.ts +0 -1
- package/dist/@types/services/consoledisplay/server/consoledisplay.d.ts +0 -4
- package/dist/@types/services/fileUtilsManager/server/fileUtilsManager.d.ts +0 -4
- package/dist/@types/services/fs/server/fileService.d.ts +0 -27
- package/dist/@types/services/genTempFile/server/genTempFileService.d.ts +0 -3
- package/dist/@types/services/global/server/global.d.ts +0 -6
- package/dist/@types/services/initializeCheck/server/initializeCheck.d.ts +0 -4
- package/dist/@types/services/locales/server/const.d.ts +0 -5
- package/dist/@types/services/locales/server/locales.d.ts +0 -5
- package/dist/@types/services/log/server/logService.d.ts +0 -9
- package/dist/@types/services/miniappjson/server/miniappjson.d.ts +0 -4
- package/dist/@types/services/multiTaskManager/server/multiTaskManager.d.ts +0 -5
- package/dist/@types/services/multiTaskManager/server/pm2TaskWorker.d.ts +0 -1
- package/dist/@types/services/multiTaskManager/server/pm2WorkerManager.d.ts +0 -18
- package/dist/@types/services/nativeModule/server/nativeModule.d.ts +0 -3
- package/dist/@types/services/performance/server/performance.d.ts +0 -7
- package/dist/@types/services/pluginFileReader/server/pluginFileReader.d.ts +0 -18
- package/dist/@types/services/projectManager/server/buildServerProjectManager.d.ts +0 -11
- package/dist/@types/services/projectManager/server/projectManager.d.ts +0 -7
- package/dist/@types/services/root/server/root.d.ts +0 -11
- package/dist/@types/services/root/server/rootService.d.ts +0 -2
- package/dist/@types/services/staticConfig/server/staticConfigService.d.ts +0 -4
- package/dist/@types/services/store/server/storeService.d.ts +0 -11
- package/dist/@types/services/uniapp/server/uniapp.d.ts +0 -4
- package/dist/build-server/constant.js +0 -1
- package/dist/build-server/ctxManager.js +0 -1
- package/dist/build-server/fileCacheManager.js +0 -1
- package/dist/build-server/fileTaskDriver.js +0 -1
- package/dist/build-server/subProcess.js +0 -1
- package/dist/build-server/subTaskManager.js +0 -1
- package/dist/build-server/taskDriver.js +0 -1
- package/dist/build-server/taskFactory.js +0 -1
- package/dist/build-server/tasks/appserviceCompile/index.js +0 -1
- package/dist/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.js +0 -1
- package/dist/build-server/tasks/appserviceCompile/utils/appservice/getjsfile.js +0 -1
- package/dist/build-server/tasks/appserviceCompile/utils/appservice/getmainpkgsortedjsfiles.js +0 -1
- package/dist/build-server/tasks/appserviceCompile/utils/appservice/getwxappcode.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/OTService.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/enhance.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/es6module.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/index.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/javascript.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/less.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/minifywxml.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/readFile.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/sass.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/terser.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/typescript.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/worklet.js +0 -1
- package/dist/build-server/tasks/baseFileCompiler/wxss.js +0 -1
- package/dist/build-server/tasks/common/apperrcode.config.js +0 -1
- package/dist/build-server/tasks/common/compiletype.config.js +0 -1
- package/dist/build-server/tasks/common/constants.config.js +0 -1
- package/dist/build-server/tasks/common/simulatortype.config.js +0 -1
- package/dist/build-server/tasks/common/utils/appdevserver/getwxappcode.js +0 -1
- package/dist/build-server/tasks/common/utils/babel/babelhelpers.js +0 -1
- package/dist/build-server/tasks/common/utils/builder/builder.js +0 -1
- package/dist/build-server/tasks/common/utils/builder/filter.js +0 -1
- package/dist/build-server/tasks/common/utils/builder/index.js +0 -1
- package/dist/build-server/tasks/common/utils/cache/compile.js +0 -1
- package/dist/build-server/tasks/common/utils/cache/config.js +0 -1
- package/dist/build-server/tasks/common/utils/cache/filecompile.js +0 -1
- package/dist/build-server/tasks/common/utils/cache/jspersistcache.js +0 -1
- package/dist/build-server/tasks/common/utils/cache/manager.js +0 -1
- package/dist/build-server/tasks/common/utils/cache/persistcache.js +0 -1
- package/dist/build-server/tasks/common/utils/cache/reporter.js +0 -1
- package/dist/build-server/tasks/common/utils/colorutils.js +0 -1
- package/dist/build-server/tasks/common/utils/common/bindActionTools.js +0 -1
- package/dist/build-server/tasks/common/utils/common/schema.helper.js +0 -1
- package/dist/build-server/tasks/common/utils/common/tools.js +0 -1
- package/dist/build-server/tasks/common/utils/common/waitable.js +0 -1
- package/dist/build-server/tasks/common/utils/filerules.js +0 -1
- package/dist/build-server/tasks/common/utils/fsutils.js +0 -1
- package/dist/build-server/tasks/common/utils/handleError.js +0 -1
- package/dist/build-server/tasks/common/utils/helper/vendorValidate.js +0 -1
- package/dist/build-server/tasks/common/utils/interfacebuilder/registry/index.js +0 -1
- package/dist/build-server/tasks/common/utils/partialcompile.js +0 -1
- package/dist/build-server/tasks/common/utils/project/appconfig.js +0 -1
- package/dist/build-server/tasks/common/utils/project/appjson.js +0 -1
- package/dist/build-server/tasks/common/utils/project/customcomponent.js +0 -1
- package/dist/build-server/tasks/common/utils/project/generatecode.utils.js +0 -1
- package/dist/build-server/tasks/common/utils/project/getcompiledjs.js +0 -1
- package/dist/build-server/tasks/common/utils/project/helper/index.js +0 -1
- package/dist/build-server/tasks/common/utils/project/helper/projectconfigjsonutils.js +0 -1
- package/dist/build-server/tasks/common/utils/project/helper/reserveddirectories.js +0 -1
- package/dist/build-server/tasks/common/utils/project/helper/theme.js +0 -1
- package/dist/build-server/tasks/common/utils/project/online/appconfig.js +0 -1
- package/dist/build-server/tasks/common/utils/project/pagejson.js +0 -1
- package/dist/build-server/tasks/common/utils/project/projectconfigjson.js +0 -1
- package/dist/build-server/tasks/common/utils/project/wxappcodejson.js +0 -1
- package/dist/build-server/tasks/common/utils/subpackageUtils.js +0 -1
- package/dist/build-server/tasks/common/utils/tracing/Trace.js +0 -1
- package/dist/build-server/tasks/common/utils/tracing/aegis.js +0 -1
- package/dist/build-server/tasks/common/utils/tracing/index.js +0 -1
- package/dist/build-server/tasks/common/utils/tracing/readiness.js +0 -1
- package/dist/build-server/tasks/common/utils/tracing/report.js +0 -1
- package/dist/build-server/tasks/common/utils/trans/transwxmltojs.js +0 -1
- package/dist/build-server/tasks/common/utils/transformsourcemap.js +0 -1
- package/dist/build-server/tasks/common/utils/web/glasseaselUtils.js +0 -1
- package/dist/build-server/tasks/common/utils/web/md5.js +0 -1
- package/dist/build-server/tasks/common/utils/web/processPath.js +0 -1
- package/dist/build-server/tasks/common/weapp.config.js +0 -1
- package/dist/build-server/tasks/pageInitSourceCompile/index.js +0 -1
- package/dist/build-server/tasks/pageframeCompile/index.js +0 -1
- package/dist/build-server/tasks/pageframeCompile/utils/appdevserver/getwxappcode.js +0 -1
- package/dist/build-server/tasks/pageframeCompile/utils/trans/transwxsstojs.js +0 -1
- package/dist/build-server/testAppConfig.js +0 -1
- package/dist/build-server/testAppservice.js +0 -1
- package/dist/build-server/testInitSourceCompile.js +0 -1
- package/dist/build-server/testPageframe.js +0 -1
- package/dist/build-server/testSubProcess.js +0 -1
- package/dist/build-server/utils/fileTask.js +0 -1
- package/dist/build-server/utils/getFileOrCache.js +0 -1
- package/dist/build-server/utils/process.js +0 -1
- package/dist/build-server/utils/request.js +0 -1
- package/dist/bussinessMonitor/monitor.js +0 -1
- package/dist/manifest.json +0 -4
- package/dist/modules/corecompiler/summer/pipeManager/index.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeCPProject.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeContext.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeManager.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipeWorker.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/appservicePipe/index.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxmlToGlassEaselPipe.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/compileWxssPipe.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/index.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/pageInitSourcePipe/index.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/pageframePipe/index.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getAppService.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appdevserver/getwxappcode.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getjsfile.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getmainpkgsortedjsfiles.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/appservice/getwxappcode.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/apperrcode.config.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/common/tools.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appconfig.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/appjson.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/customcomponent.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/helper/theme.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/pagejson.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/project/wxappcodejson.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxmltojs.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/trans/transwxsstojs.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/utils/web/processPath.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/pipes/wccPipe.js +0 -1
- package/dist/modules/corecompiler/summer/pipeManager/types.js +0 -1
- package/dist/modules/fullcompiler/appservice/appservice.config.js +0 -1
- package/dist/modules/fullcompiler/appservice/generatecode.utils.js +0 -1
- package/dist/modules/fullcompiler/appservice/getappservice.js +0 -1
- package/dist/modules/fullcompiler/appservice/getcompiledjs.js +0 -1
- package/dist/modules/fullcompiler/appservice/getjsfile.js +0 -1
- package/dist/modules/fullcompiler/appservice/getmainpkgsortedjsfiles.js +0 -1
- package/dist/modules/fullcompiler/appservice/getsubpackage.js +0 -1
- package/dist/modules/fullcompiler/appservice/getsubpkgsortedjsfiles.js +0 -1
- package/dist/modules/fullcompiler/appservice/getwxappcode.js +0 -1
- package/dist/modules/fullcompiler/config/apperrcode.config.js +0 -1
- package/dist/modules/fullcompiler/filerules.js +0 -1
- package/dist/modules/fullcompiler/getallrawfiles.js +0 -1
- package/dist/modules/fullcompiler/getallwmltohtmlmap.js +0 -1
- package/dist/modules/fullcompiler/index.js +0 -1
- package/dist/modules/fullcompiler/pageframe/getsubpackage.js +0 -1
- package/dist/modules/fullcompiler/pageframe/getwxappcode.js +0 -1
- package/dist/modules/fullcompiler/pageframe/index.js +0 -1
- package/dist/modules/fullcompiler/trans/transwxmltojs.js +0 -1
- package/dist/modules/fullcompiler/trans/transwxsstojs.js +0 -1
- package/dist/modules/fullcompiler/trans/wxml/compilewxml.js +0 -1
- package/dist/modules/fullcompiler/trans/wxss/compilewxss.js +0 -1
- package/dist/modules/fullcompiler/utils/appconfig/appconfig.js +0 -1
- package/dist/modules/fullcompiler/utils/appconfig/appjson.js +0 -1
- package/dist/modules/fullcompiler/utils/appconfig/checkcustomcomponent.js +0 -1
- package/dist/modules/fullcompiler/utils/appconfig/pagejson.js +0 -1
- package/dist/modules/fullcompiler/utils/appconfig/wxappcodejson.js +0 -1
- package/dist/modules/fullcompiler/utils/filewriter/index.js +0 -1
- package/dist/modules/fullcompiler/utils/handleerror/errorconfig.js +0 -1
- package/dist/modules/fullcompiler/utils/handleerror/handleerror.js +0 -1
- package/dist/modules/fullcompiler/utils/handleerror/parseerr.js +0 -1
- package/dist/modules/fullcompiler/utils/index.js +0 -1
- package/dist/modules/fullcompiler/utils/taskmanager.js +0 -1
- package/dist/modules/fullcompiler/utils/theme/index.js +0 -1
- package/dist/modules/fullcompiler/utils/tools.js +0 -1
- package/dist/modules/fullcompiler/utils/transformsourcemap.js +0 -1
- package/dist/project/serverProject.js +0 -1
- package/dist/services/app/server/appDirService.js +0 -1
- package/dist/services/builder/server/builder.js +0 -1
- package/dist/services/compileCacheManager/common/compileCacheManager.js +0 -1
- package/dist/services/compileCacheManager/nw/compileCacheManager.js +0 -1
- package/dist/services/compileCacheManager/server/compileCacheManager.js +0 -1
- package/dist/services/compilewxml/server/compilewxmlService.js +0 -1
- package/dist/services/compilewxml/server/wccWorker.js +0 -1
- package/dist/services/compilewxss/server/compilewxssService.js +0 -1
- package/dist/services/compilewxss/server/wcscWorker.js +0 -1
- package/dist/services/consoledisplay/server/consoledisplay.js +0 -1
- package/dist/services/fileUtilsManager/server/fileUtilsManager.js +0 -1
- package/dist/services/fs/server/fileService.js +0 -1
- package/dist/services/genTempFile/server/genTempFileService.js +0 -1
- package/dist/services/global/server/global.js +0 -1
- package/dist/services/initializeCheck/server/initializeCheck.js +0 -1
- package/dist/services/locales/server/const.js +0 -1
- package/dist/services/locales/server/locales.js +0 -1
- package/dist/services/log/server/logService.js +0 -1
- package/dist/services/miniappjson/server/miniappjson.js +0 -1
- package/dist/services/multiTaskManager/server/multiTaskManager.js +0 -1
- package/dist/services/multiTaskManager/server/pm2TaskWorker.js +0 -1
- package/dist/services/multiTaskManager/server/pm2WorkerManager.js +0 -1
- package/dist/services/nativeModule/server/nativeModule.js +0 -1
- package/dist/services/performance/server/performance.js +0 -1
- package/dist/services/pluginFileReader/server/pluginFileReader.js +0 -1
- package/dist/services/projectManager/server/buildServerProjectManager.js +0 -1
- package/dist/services/projectManager/server/projectManager.js +0 -1
- package/dist/services/root/server/root.js +0 -1
- package/dist/services/root/server/rootService.js +0 -1
- package/dist/services/staticConfig/server/staticConfigService.js +0 -1
- package/dist/services/store/server/storeService.js +0 -1
- package/dist/services/uniapp/server/uniapp.js +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { RedisClientType } from 'redis';
|
|
2
|
-
import type { EventEmitter } from 'events';
|
|
3
|
-
type IFileCache = {
|
|
4
|
-
compileResult: string;
|
|
5
|
-
[importFilePath: string]: string;
|
|
6
|
-
};
|
|
7
|
-
declare class FileCacheManager {
|
|
8
|
-
redisClient: RedisClientType & EventEmitter;
|
|
9
|
-
cacheProjectInfo: Record<string, {
|
|
10
|
-
success: boolean;
|
|
11
|
-
fileList: {
|
|
12
|
-
name: string;
|
|
13
|
-
key: string;
|
|
14
|
-
lastModifiedTime: number;
|
|
15
|
-
size: number;
|
|
16
|
-
createTime: number;
|
|
17
|
-
}[];
|
|
18
|
-
message: string;
|
|
19
|
-
}>;
|
|
20
|
-
private autoDisConnectInterval;
|
|
21
|
-
transformFilePathToCacheKey: (projectId: string, versionId: string, filePath: string, taskLinks: string[], lastModifiedTime: number) => string;
|
|
22
|
-
getFileCache: (data: {
|
|
23
|
-
ticket: string;
|
|
24
|
-
projectId: string;
|
|
25
|
-
versionId: string;
|
|
26
|
-
snapshotId: string;
|
|
27
|
-
fileTask: {
|
|
28
|
-
filePath: string;
|
|
29
|
-
taskLinks: string[];
|
|
30
|
-
};
|
|
31
|
-
}) => Promise<{
|
|
32
|
-
success: boolean;
|
|
33
|
-
data: any;
|
|
34
|
-
}>;
|
|
35
|
-
constructor();
|
|
36
|
-
autoDisConnectRedis: () => void;
|
|
37
|
-
checkRedisConnected: () => Promise<void>;
|
|
38
|
-
get(fileKey: string): Promise<IFileCache | null>;
|
|
39
|
-
setCache(fileKey: string, fileCache: IFileCache, expireSeconds?: number): Promise<'OK' | null>;
|
|
40
|
-
justTestRedis(fileKey: string): Promise<any>;
|
|
41
|
-
}
|
|
42
|
-
declare const _default: FileCacheManager;
|
|
43
|
-
export default _default;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { ITaskResult, IBuildFileTaskList, IBuildFileTask, IReqOptions } from './type';
|
|
2
|
-
import { TaskFactory } from './taskFactory';
|
|
3
|
-
type IRespTask = {
|
|
4
|
-
result: string;
|
|
5
|
-
tasks: IBuildFileTask[];
|
|
6
|
-
};
|
|
7
|
-
type IRespTasks = IRespTask[];
|
|
8
|
-
declare class TaskDriver {
|
|
9
|
-
taskResult: Record<string, IRespTasks>;
|
|
10
|
-
waitTaskList: Record<string, Function>;
|
|
11
|
-
formatErrorMsg(error: {
|
|
12
|
-
code: number;
|
|
13
|
-
errmsg: string;
|
|
14
|
-
}, msg: string): {
|
|
15
|
-
errmsg: string;
|
|
16
|
-
code: number;
|
|
17
|
-
};
|
|
18
|
-
registerWaitTask(taskId: string, task: Function): void;
|
|
19
|
-
finishWaitTask(taskId: string, taskResult: ITaskResult): void;
|
|
20
|
-
execTask(task: IBuildFileTask, resultFilePath: string, mainTaskId: string, taskId: string): Promise<{
|
|
21
|
-
taskId: string;
|
|
22
|
-
success: boolean;
|
|
23
|
-
result: string;
|
|
24
|
-
errmsg: string;
|
|
25
|
-
}>;
|
|
26
|
-
generateTaskFunc(task: IBuildFileTask, mainTaskId: string, resultFilePath: string, TaskClass: TaskFactory, fileTask: IRespTask): (resolve: Function, reject: Function) => Promise<void>;
|
|
27
|
-
doSubTask(tasks: IBuildFileTask[], mainTaskId: string, resultFilePath: string, TaskClass: TaskFactory, fileTask: IRespTask): Promise<void>;
|
|
28
|
-
formatTaskConfigToTaskList(options: IReqOptions, taskConfig: IBuildFileTaskList): IRespTasks;
|
|
29
|
-
checkTaskCompileType(task: IBuildFileTaskList): {
|
|
30
|
-
success: boolean;
|
|
31
|
-
errmsg?: string;
|
|
32
|
-
};
|
|
33
|
-
doTask(options: IReqOptions, taskConfig: IBuildFileTaskList, TaskClass: TaskFactory): void;
|
|
34
|
-
}
|
|
35
|
-
declare const _default: TaskDriver;
|
|
36
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '~/services/root/server/rootService';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { IFinishSubTask, IBuildServerAllowedTaskName } from './type';
|
|
2
|
-
declare class SubTaskManager {
|
|
3
|
-
subTaskList: Record<string, Record<string, Function>>;
|
|
4
|
-
addSubTask(option: string, data: Record<string, any>, taskName: IBuildServerAllowedTaskName): Promise<unknown>;
|
|
5
|
-
onSubTaskFinish(payload: IFinishSubTask): Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: SubTaskManager;
|
|
8
|
-
export default _default;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import pm2 from 'pm2';
|
|
2
|
-
import type { IBuildServerAllowedTaskName, ProcessDataType, IPacketData, IBuildTask, IBuildTaskList, ITaskResult, IReqOptions } from './type';
|
|
3
|
-
import { TaskFactory } from './taskFactory';
|
|
4
|
-
type Proc = pm2.ProcessDescription & {
|
|
5
|
-
taskNum: number;
|
|
6
|
-
pendingTask: Function[];
|
|
7
|
-
pm_id: number;
|
|
8
|
-
};
|
|
9
|
-
type IFinishFunc = (taskResult: ITaskResult) => void;
|
|
10
|
-
declare class TaskDriver {
|
|
11
|
-
isTaskServerStart: boolean;
|
|
12
|
-
processList: Array<Proc>;
|
|
13
|
-
taskResult: Record<string, IBuildTaskList>;
|
|
14
|
-
waitTaskList: Record<string, Function>;
|
|
15
|
-
private taskCleanupTimers;
|
|
16
|
-
private memoryMonitorInterval;
|
|
17
|
-
constructor();
|
|
18
|
-
private startMemoryMonitor;
|
|
19
|
-
private stopMemoryMonitor;
|
|
20
|
-
initialize(): void;
|
|
21
|
-
addSubTask(data: {
|
|
22
|
-
pmId: number;
|
|
23
|
-
mainTaskId: string;
|
|
24
|
-
subTaskId: string;
|
|
25
|
-
data: Record<string, any>;
|
|
26
|
-
options?: IReqOptions;
|
|
27
|
-
taskName?: IBuildServerAllowedTaskName;
|
|
28
|
-
}): void;
|
|
29
|
-
listenSubProcessMsg(): void;
|
|
30
|
-
startAllProcess(): void;
|
|
31
|
-
killAllProcess(): void;
|
|
32
|
-
startProcess(instances: number, name: string): void;
|
|
33
|
-
formatErrorMsg(error: {
|
|
34
|
-
code: number;
|
|
35
|
-
errmsg: string;
|
|
36
|
-
}, msg: string): {
|
|
37
|
-
errmsg: string;
|
|
38
|
-
code: number;
|
|
39
|
-
};
|
|
40
|
-
private getMinimumTaskProcess;
|
|
41
|
-
sendTask(data: ProcessDataType, pmId?: number): Promise<{
|
|
42
|
-
success: boolean;
|
|
43
|
-
data: any;
|
|
44
|
-
}>;
|
|
45
|
-
registerWaitTask(taskId: string, task: Function): void;
|
|
46
|
-
finishWaitTask(taskId: string, taskResult: IPacketData): void;
|
|
47
|
-
doSendTask(task: IBuildTask, resultFilePath: string, mainTaskId: string, taskId: string, tryTime?: number): Promise<{
|
|
48
|
-
success: boolean;
|
|
49
|
-
data: any;
|
|
50
|
-
}>;
|
|
51
|
-
generateTaskFunc(task: IBuildTask, mainTaskId: string, taskInstance: TaskFactory, resultFilePath: string): (resolve: Function, reject: Function) => Promise<void>;
|
|
52
|
-
checkTaskCompileType(taskList: IBuildTaskList): {
|
|
53
|
-
success: true;
|
|
54
|
-
} | {
|
|
55
|
-
success: false;
|
|
56
|
-
errmsg: {
|
|
57
|
-
code: number;
|
|
58
|
-
errmsg: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
doTask(data: {
|
|
62
|
-
options: IReqOptions;
|
|
63
|
-
taskList: IBuildTaskList;
|
|
64
|
-
finishFunc: IFinishFunc;
|
|
65
|
-
}): void;
|
|
66
|
-
}
|
|
67
|
-
declare const _default: TaskDriver;
|
|
68
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare class TaskFactory {
|
|
2
|
-
allTaskResult: any[];
|
|
3
|
-
tasks: {
|
|
4
|
-
result: any[];
|
|
5
|
-
taskStatus: 'doing' | 'success';
|
|
6
|
-
pendingTask: Function[];
|
|
7
|
-
}[];
|
|
8
|
-
allDone: number;
|
|
9
|
-
allDoneTask: undefined | Function;
|
|
10
|
-
finishFunc: Function;
|
|
11
|
-
constructor(finishFunc: Function);
|
|
12
|
-
doTask(taskId: number): void;
|
|
13
|
-
finishTask(taskId: number): void;
|
|
14
|
-
checkAllDone(): void;
|
|
15
|
-
remoteTask(func: Function, taskId?: number): this;
|
|
16
|
-
localTask(func: Function, taskId?: number): this;
|
|
17
|
-
newRemoteTask(func: Function): this;
|
|
18
|
-
newLocalTask(func: Function): this;
|
|
19
|
-
getTaskResult(callback: Function, taskId?: number): void;
|
|
20
|
-
waitAllTaskDone(callback: Function): void;
|
|
21
|
-
stopAllTask(): void;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getAppserviceCore(project: IBackendProject): Promise<string>;
|
package/dist/@types/build-server/tasks/appserviceCompile/utils/appdevserver/getAppService.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function getInitJS(mainContentScript: string[]): void;
|
|
2
|
-
export declare function getJSCodeBuild(project: any, mainContentScript: string[], hasAppJS: boolean, pageFiles: string[], componentFiles: string[], functionalPageFiles: string[], otherFiles: string[], allFiles: string[]): Promise<void>;
|
|
3
|
-
export declare function getBabelCodeByName(project: any, modName: string): Promise<string>;
|
|
4
|
-
export declare function getBabelHelperAndDepsCode(project: any, babelHelpers: any): Promise<Map<any, any>>;
|
|
5
|
-
export declare function getAppCode(project: any, mainContentScript: string[], wxmlXCJS: any, componentFiles: string[], pageFiles: string[]): Promise<void>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
interface IGetJSFileOptions {
|
|
2
|
-
force?: boolean;
|
|
3
|
-
noWarnings?: boolean;
|
|
4
|
-
injectHelpers?: boolean;
|
|
5
|
-
injectHelpersSync?: boolean;
|
|
6
|
-
isGame?: boolean;
|
|
7
|
-
isWorkerFile?: boolean;
|
|
8
|
-
sourceURL?: string;
|
|
9
|
-
noCache?: boolean;
|
|
10
|
-
forceSync?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare function getJsFile(project: IProject, fileName: string, options?: IGetJSFileOptions): Promise<{
|
|
13
|
-
code: string;
|
|
14
|
-
helpers: string[];
|
|
15
|
-
map: import("source-map").RawSourceMap | undefined;
|
|
16
|
-
mtime: number | undefined;
|
|
17
|
-
hasPersistJSCacheHit: boolean | undefined;
|
|
18
|
-
}>;
|
|
19
|
-
export = getJsFile;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
declare const getMainPkgSortedJSFiles: (project: IProject) => Promise<{
|
|
2
|
-
hasAppJS: boolean;
|
|
3
|
-
allFiles: string[];
|
|
4
|
-
pageFiles: string[];
|
|
5
|
-
functionalPageFiles: string[];
|
|
6
|
-
workerFiles: string[];
|
|
7
|
-
componentFiles: string[];
|
|
8
|
-
otherFiles: string[];
|
|
9
|
-
}>;
|
|
10
|
-
export = getMainPkgSortedJSFiles;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare function getWxAppCode(project: IProject, requireDirectly?: boolean): Promise<any>;
|
|
2
|
-
declare function getWxAppCodeOfPage(project: IProject, pathName: string, genFnName: string, requireDirectly?: boolean): Promise<string>;
|
|
3
|
-
declare function getWxAppCodeJsonOfPage(project: IProject, pathName: string): Promise<string>;
|
|
4
|
-
declare function getWxAppCodeWxmlOfPage(project: IProject, pathName: string, wxmlGenFnName: string): string;
|
|
5
|
-
declare function getWxAppCodeRequireScriptOfPage(project: IProject, pathName: string): string;
|
|
6
|
-
declare function getWxAppCodeForAddComponentStaticConfig(project: IProject, pathName: string): Promise<string>;
|
|
7
|
-
declare function getWxAppCodeForBatchAddCompiledTemplate(glassEaselTemplateResult: Record<string, string>): string;
|
|
8
|
-
declare function getWxAppCodeForBatchAddCompiledScripts(glassEaselScriptResult: string): string;
|
|
9
|
-
declare function getWxAppCodeAddTemplateDependencies(wxmlDependencies: Record<string, string[]>): string;
|
|
10
|
-
declare function getWxAppCodeForSetRuntimeGlobal(runtimeGlobal: string, gdcContent: string): string;
|
|
11
|
-
declare const _default: {
|
|
12
|
-
getWxAppCode: typeof getWxAppCode;
|
|
13
|
-
getWxAppCodeOfPage: typeof getWxAppCodeOfPage;
|
|
14
|
-
getWxAppCodeJsonOfPage: typeof getWxAppCodeJsonOfPage;
|
|
15
|
-
getWxAppCodeWxmlOfPage: typeof getWxAppCodeWxmlOfPage;
|
|
16
|
-
getWxAppCodeRequireScriptOfPage: typeof getWxAppCodeRequireScriptOfPage;
|
|
17
|
-
getWxAppCodeForAddComponentStaticConfig: typeof getWxAppCodeForAddComponentStaticConfig;
|
|
18
|
-
getWxAppCodeForBatchAddCompiledTemplate: typeof getWxAppCodeForBatchAddCompiledTemplate;
|
|
19
|
-
getWxAppCodeForBatchAddCompiledScripts: typeof getWxAppCodeForBatchAddCompiledScripts;
|
|
20
|
-
getWxAppCodeAddTemplateDependencies: typeof getWxAppCodeAddTemplateDependencies;
|
|
21
|
-
getWxAppCodeForSetRuntimeGlobal: typeof getWxAppCodeForSetRuntimeGlobal;
|
|
22
|
-
};
|
|
23
|
-
export = _default;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AstType } from '~/config/config';
|
|
2
|
-
import { ICompileResult } from './javascript';
|
|
3
|
-
import { MiniProgramSummer } from '~/types';
|
|
4
|
-
export declare function getEnhancePluginsList(opt: {
|
|
5
|
-
supportWorklet?: boolean;
|
|
6
|
-
}): any[][];
|
|
7
|
-
export declare const enhance: (source: MiniProgramSummer.SourceDescription, id: string) => Promise<{
|
|
8
|
-
sourceCode: string;
|
|
9
|
-
inputMap: MiniProgramSummer.SourceMap | undefined;
|
|
10
|
-
astInfo: {
|
|
11
|
-
readonly ast: import("@babel/types").File;
|
|
12
|
-
readonly type: AstType.Babel;
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
15
|
-
export declare function doTransform(source: MiniProgramSummer.SourceDescription, sourceId: string, babelRoot: string, disableUseStrict: boolean): Promise<MiniProgramSummer.SourceDescription>;
|
|
16
|
-
export declare function shouldEnhance(targetPath: string, source: MiniProgramSummer.SourceDescription, isBabelIgnore: boolean): boolean;
|
|
17
|
-
export declare function performEnhanceTransform(source: MiniProgramSummer.SourceDescription, sourcePath: string, targetPath: string, options: {
|
|
18
|
-
independentRoot?: string;
|
|
19
|
-
isBabelIgnore?: boolean;
|
|
20
|
-
disableUseStrict?: boolean;
|
|
21
|
-
}, pluginName?: string): Promise<{
|
|
22
|
-
source: MiniProgramSummer.SourceDescription;
|
|
23
|
-
process: Array<{
|
|
24
|
-
cost: number;
|
|
25
|
-
pluginName: string;
|
|
26
|
-
action: string;
|
|
27
|
-
}>;
|
|
28
|
-
}>;
|
|
29
|
-
export declare const enhanceTask: (options: any, result: ICompileResult) => Promise<ICompileResult>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { MiniProgramCore, MiniProgramSummer } from '~/types';
|
|
2
|
-
import { ICompileResult } from './javascript';
|
|
3
|
-
export declare function getES6ModulePluginsList(allowTopLevelThis: boolean): any[][];
|
|
4
|
-
export declare function getBabelRoot(independentRoot: string): string;
|
|
5
|
-
export declare function transformES6ModuleAndGenCode(id: string, source: MiniProgramSummer.SourceDescription, options: {
|
|
6
|
-
babelRoot: string;
|
|
7
|
-
disableUseStrict: boolean;
|
|
8
|
-
}): Promise<{
|
|
9
|
-
code: string;
|
|
10
|
-
map: {
|
|
11
|
-
version: number;
|
|
12
|
-
sources: string[];
|
|
13
|
-
names: string[];
|
|
14
|
-
sourceRoot?: string | undefined;
|
|
15
|
-
sourcesContent?: string[] | undefined;
|
|
16
|
-
mappings: string;
|
|
17
|
-
file: string;
|
|
18
|
-
};
|
|
19
|
-
helpers: string[];
|
|
20
|
-
}>;
|
|
21
|
-
export declare function doGenerate(sourcePath: string, source: MiniProgramSummer.SourceDescription, options: {
|
|
22
|
-
babelRoot: string;
|
|
23
|
-
disableUseStrict: boolean;
|
|
24
|
-
resultType: MiniProgramCore.IResultType;
|
|
25
|
-
}): Promise<MiniProgramSummer.GenerateDescription>;
|
|
26
|
-
export declare function performES6ModuleGenerate(source: MiniProgramSummer.SourceDescription, sourcePath: string, targetPath: string, options: {
|
|
27
|
-
independentRoot?: string;
|
|
28
|
-
isBabelIgnore?: boolean;
|
|
29
|
-
disableUseStrict?: boolean;
|
|
30
|
-
resultType?: MiniProgramCore.IResultType;
|
|
31
|
-
}, pluginName?: string, doGenerateFn?: (id: string, source: MiniProgramSummer.SourceDescription, options: {
|
|
32
|
-
babelRoot: string;
|
|
33
|
-
disableUseStrict: boolean;
|
|
34
|
-
resultType: MiniProgramCore.IResultType;
|
|
35
|
-
}) => Promise<MiniProgramSummer.GenerateDescription>): Promise<{
|
|
36
|
-
target?: MiniProgramSummer.GenerateDescription;
|
|
37
|
-
process: Array<{
|
|
38
|
-
cost: number;
|
|
39
|
-
pluginName: string;
|
|
40
|
-
action: string;
|
|
41
|
-
options?: any;
|
|
42
|
-
}>;
|
|
43
|
-
}>;
|
|
44
|
-
export declare const es6moduleTask: (options: any, result: ICompileResult) => Promise<ICompileResult>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { MiniProgramCore, MiniProgramSummer } from '~/types';
|
|
2
|
-
export { MAX_CODE_LENGTH, } from '~/config/config';
|
|
3
|
-
export interface ICompileResult {
|
|
4
|
-
targetPath: string;
|
|
5
|
-
source: {
|
|
6
|
-
sourceCode: string;
|
|
7
|
-
sourcePath: string;
|
|
8
|
-
inputMap: MiniProgramSummer.SourceMap | undefined;
|
|
9
|
-
astInfo: MiniProgramSummer.AstInfo | undefined;
|
|
10
|
-
largeFile: boolean;
|
|
11
|
-
mtime: number;
|
|
12
|
-
};
|
|
13
|
-
target: {
|
|
14
|
-
code: string;
|
|
15
|
-
map: MiniProgramSummer.SourceMap | undefined;
|
|
16
|
-
helpers: string[];
|
|
17
|
-
resultType: MiniProgramCore.IResultType;
|
|
18
|
-
};
|
|
19
|
-
process: MiniProgramSummer.IPluginProcessInfo[];
|
|
20
|
-
}
|
|
21
|
-
export declare function shouldLoadJavaScript(sourcePath: string): boolean;
|
|
22
|
-
export declare function createJavaScriptLoadResult(code: string, sourcePath: string, targetPath: string, mtime?: number, pluginName?: string): Promise<{
|
|
23
|
-
targetPath: string;
|
|
24
|
-
source: MiniProgramSummer.SourceDescription;
|
|
25
|
-
process: MiniProgramSummer.IPluginProcessInfo[];
|
|
26
|
-
}>;
|
|
27
|
-
export declare function performJavaScriptLoad(sourcePath: string, targetPath: string, getFileContent: (relativePath: string) => string | Promise<string>, getFileStat?: (relativePath: string) => ({
|
|
28
|
-
mtimeMs?: number;
|
|
29
|
-
} | undefined) | Promise<{
|
|
30
|
-
mtimeMs?: number;
|
|
31
|
-
} | undefined>, pluginName?: string): Promise<{
|
|
32
|
-
targetPath: string;
|
|
33
|
-
source: MiniProgramSummer.SourceDescription;
|
|
34
|
-
process: MiniProgramSummer.IPluginProcessInfo[];
|
|
35
|
-
} | undefined>;
|
|
36
|
-
export declare const javascriptTask: (sourcePath: string, targetPath: string, options: any, result: ICompileResult) => Promise<ICompileResult | undefined>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ICompileResult } from './javascript';
|
|
2
|
-
import { MiniProgramSummer } from '~/types';
|
|
3
|
-
export declare const importWxssReg: RegExp;
|
|
4
|
-
export declare const importWxssCssReg: RegExp;
|
|
5
|
-
export declare function genServerFileManagerPlugin(options: {
|
|
6
|
-
projectId: string;
|
|
7
|
-
versionId: string;
|
|
8
|
-
snapshotId: string;
|
|
9
|
-
ticket: string;
|
|
10
|
-
}): {
|
|
11
|
-
install(less: LessStatic, pluginManager: Less.PluginManager): void;
|
|
12
|
-
};
|
|
13
|
-
export declare function processWxssImports(code: string): {
|
|
14
|
-
processedCode: string;
|
|
15
|
-
wxssImports: string[];
|
|
16
|
-
};
|
|
17
|
-
export declare function processLessOutput(output: Less.RenderOutput, wxssImports: string[], projectPath?: string): {
|
|
18
|
-
wxss: string;
|
|
19
|
-
map: any;
|
|
20
|
-
};
|
|
21
|
-
export declare function renderLessCode(code: string, sourcePath: string, options?: {
|
|
22
|
-
globalVars?: any;
|
|
23
|
-
plugins?: Less.Plugin[];
|
|
24
|
-
paths?: string[];
|
|
25
|
-
sourceMap?: boolean;
|
|
26
|
-
}): Promise<Less.RenderOutput>;
|
|
27
|
-
export declare function performLessLoad(targetPath: string, sourcePath: string, options: {
|
|
28
|
-
getFileContent: (relativePath: string) => string | Promise<string>;
|
|
29
|
-
getAppImport?: (relativePath: string) => string | Promise<string>;
|
|
30
|
-
globalVars?: any;
|
|
31
|
-
plugins?: Less.Plugin[];
|
|
32
|
-
paths?: string[];
|
|
33
|
-
projectPath?: string;
|
|
34
|
-
addWatchFile?: (file: string) => void;
|
|
35
|
-
}, pluginName?: string): Promise<{
|
|
36
|
-
targetPath: string;
|
|
37
|
-
source: {
|
|
38
|
-
sourceCode: string;
|
|
39
|
-
inputMap: any;
|
|
40
|
-
};
|
|
41
|
-
process: MiniProgramSummer.IPluginProcessInfo[];
|
|
42
|
-
} | undefined>;
|
|
43
|
-
export declare const lessTask: (sourcePath: string, targetPath: string, options: any, result: ICompileResult) => Promise<any>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MiniProgramCore } from '~/types';
|
|
2
|
-
import { ICompileResult } from './javascript';
|
|
3
|
-
import { IMinifySetting } from '~/modules/corecompiler/original/workerThread/task/minifywxml';
|
|
4
|
-
export interface IWxmlOptions {
|
|
5
|
-
minify: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare function doCompress(content: string, filePath: string, setting: IMinifySetting): Promise<string>;
|
|
8
|
-
export declare function shouldCompressWxml(targetPath: string, minify: boolean, resultType: string): boolean;
|
|
9
|
-
export declare function createMinifySettings(project?: MiniProgramCore.IPreCompileProject, targetPath?: string): IMinifySetting;
|
|
10
|
-
export declare const minifywxmlTask: (options: any, result: ICompileResult) => Promise<ICompileResult | undefined>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { MiniProgramSummer } from '~/types';
|
|
2
|
-
import { ICompileResult } from './javascript';
|
|
3
|
-
export declare const sass: () => Promise<typeof import("sass")>;
|
|
4
|
-
export declare function random(): string;
|
|
5
|
-
export declare const importWxssReg: RegExp;
|
|
6
|
-
export declare const importCssReg: RegExp;
|
|
7
|
-
export declare function sassRender(options: any, cb: (err: any, result?: any) => void): Promise<void>;
|
|
8
|
-
export declare function shouldLoadSass(sourcePath: string): boolean;
|
|
9
|
-
export declare function processWxssImports(code: string): {
|
|
10
|
-
processedCode: string;
|
|
11
|
-
wxssImports: string[];
|
|
12
|
-
};
|
|
13
|
-
export declare function processSassOutput(result: any, wxssImports: string[], sourcePath: string, sourceRoot?: string): {
|
|
14
|
-
wxss: string;
|
|
15
|
-
map: any;
|
|
16
|
-
};
|
|
17
|
-
export declare function performSassLoad(targetPath: string, sourcePath: string, options: {
|
|
18
|
-
getFileContent: (relativePath: string) => string | Promise<string>;
|
|
19
|
-
getGlobalImport?: (relativePath: string) => string | Promise<string>;
|
|
20
|
-
includePaths?: string[];
|
|
21
|
-
addWatchFile?: (file: string) => void;
|
|
22
|
-
sourceRoot?: string;
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
}, pluginName?: string): Promise<{
|
|
25
|
-
targetPath: string;
|
|
26
|
-
source: {
|
|
27
|
-
sourceCode: string;
|
|
28
|
-
inputMap: any;
|
|
29
|
-
};
|
|
30
|
-
process: Array<{
|
|
31
|
-
cost: number;
|
|
32
|
-
pluginName: string;
|
|
33
|
-
action: MiniProgramSummer.AsyncPluginHooks;
|
|
34
|
-
}>;
|
|
35
|
-
} | undefined>;
|
|
36
|
-
export declare const sassTask: (sourcePath: string, targetPath: string, options: any, result: ICompileResult) => Promise<{
|
|
37
|
-
targetPath: string;
|
|
38
|
-
source: {
|
|
39
|
-
sourceCode: string;
|
|
40
|
-
inputMap: any;
|
|
41
|
-
};
|
|
42
|
-
target: {
|
|
43
|
-
code: string;
|
|
44
|
-
};
|
|
45
|
-
process: {
|
|
46
|
-
cost: number;
|
|
47
|
-
pluginName: string;
|
|
48
|
-
action: MiniProgramSummer.AsyncPluginHooks;
|
|
49
|
-
}[];
|
|
50
|
-
} | undefined>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MiniProgramCore } from '~/types';
|
|
2
|
-
import { ICompileResult } from './javascript';
|
|
3
|
-
export declare const terser: () => typeof import("terser");
|
|
4
|
-
export declare const babelCodeFrame: () => typeof import("babel-code-frame");
|
|
5
|
-
export declare function shouldRunTerser(options: MiniProgramCore.ICompileOptions, targetPath: string, minify?: boolean): boolean;
|
|
6
|
-
export declare function buildSourceMapOptions(map: any, filename: string): {
|
|
7
|
-
includeSources: boolean;
|
|
8
|
-
content: any;
|
|
9
|
-
filename: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function makeTerserProcessRecord(startTime: number, pluginName: string): {
|
|
12
|
-
cost: number;
|
|
13
|
-
pluginName: string;
|
|
14
|
-
action: "compress";
|
|
15
|
-
};
|
|
16
|
-
export declare function doCompress(content: string, sourceMapOptions: any): Promise<import("terser").MinifyOutput | {
|
|
17
|
-
error: any;
|
|
18
|
-
}>;
|
|
19
|
-
export declare function handleTerserError(error: any, content: string, id: string): void;
|
|
20
|
-
export declare const terserTask: (options: any, result: ICompileResult) => Promise<ICompileResult>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { MiniProgramSummer } from '~/types';
|
|
2
|
-
import { ICompileResult } from './javascript';
|
|
3
|
-
export declare const babel7: () => typeof import("@babel/core");
|
|
4
|
-
export declare const pluginTransformTypescript: () => any;
|
|
5
|
-
export declare function shouldRunTypescript(sourcePath: string): boolean;
|
|
6
|
-
export declare function makeTypescriptProcessRecord(startTime: number, pluginName: string): {
|
|
7
|
-
cost: number;
|
|
8
|
-
pluginName: string;
|
|
9
|
-
action: "load";
|
|
10
|
-
};
|
|
11
|
-
export declare function doLoad(code: string, file: string, inputMap?: any): Promise<MiniProgramSummer.SourceDescription>;
|
|
12
|
-
export declare function doLoadSync(code: string, file: string, inputMap?: any): MiniProgramSummer.SourceDescription;
|
|
13
|
-
export declare const pluginReplaceTsExportAssignment: (api: any) => {
|
|
14
|
-
name: string;
|
|
15
|
-
visitor: {
|
|
16
|
-
TSExportAssignment(path: any): void;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export declare const pluginReplaceTsImportEqualsDeclaration: (api: any) => {
|
|
20
|
-
name: string;
|
|
21
|
-
visitor: {
|
|
22
|
-
TSImportEqualsDeclaration(path: any): void;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export declare const typescriptTask: (sourcePath: string, targetPath: string, options: any, result: ICompileResult) => Promise<ICompileResult>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MiniProgramSummer } from '~/types';
|
|
2
|
-
import { ICompileResult } from './javascript';
|
|
3
|
-
export declare const _pluginTransformWorklet: () => any;
|
|
4
|
-
export declare const babel7: () => typeof import("@babel/core");
|
|
5
|
-
export declare function shouldRunWorklet(targetPath: string, isBabelIgnore: boolean): boolean;
|
|
6
|
-
export declare function hasWorkletCode(sourceCode: string): boolean;
|
|
7
|
-
export declare function makeWorkletProcessRecord(startTime: number, pluginName: string): {
|
|
8
|
-
cost: number;
|
|
9
|
-
pluginName: string;
|
|
10
|
-
action: "transform";
|
|
11
|
-
};
|
|
12
|
-
export declare const worklet: (source: MiniProgramSummer.SourceDescription, id: string) => Promise<MiniProgramSummer.SourceDescription>;
|
|
13
|
-
export declare const workletTask: (options: any, result: ICompileResult) => Promise<ICompileResult>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { MiniProgramCore } from '~/types';
|
|
2
|
-
import { ICompileResult } from './javascript';
|
|
3
|
-
export interface IWxssOptions {
|
|
4
|
-
autoPrefix: boolean;
|
|
5
|
-
minify: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const MAX_LINE_SHOW_LENGTH = 45;
|
|
8
|
-
export declare function shortString(line: string, max: number, mid?: number): {
|
|
9
|
-
result: string;
|
|
10
|
-
marker: number;
|
|
11
|
-
};
|
|
12
|
-
export declare function formatPostcssError(content: string, error: any): any;
|
|
13
|
-
export declare function shouldOptimizeWxss(targetPath: string, resultType: MiniProgramCore.IResultType, autoPrefix: boolean, minify: boolean): boolean;
|
|
14
|
-
export declare function doOptimize(sourcePath: string, sourceContent: string, options?: {
|
|
15
|
-
autoPrefix?: boolean;
|
|
16
|
-
minify?: boolean;
|
|
17
|
-
}): Promise<{
|
|
18
|
-
error: any;
|
|
19
|
-
content?: string;
|
|
20
|
-
}>;
|
|
21
|
-
export declare function performWxssOptimize(targetPath: string, code: string, options: {
|
|
22
|
-
resultType: MiniProgramCore.IResultType;
|
|
23
|
-
autoPrefix?: boolean;
|
|
24
|
-
minify?: boolean;
|
|
25
|
-
}, pluginName?: string): Promise<{
|
|
26
|
-
code: string;
|
|
27
|
-
process: Array<{
|
|
28
|
-
cost: number;
|
|
29
|
-
pluginName: string;
|
|
30
|
-
action: string;
|
|
31
|
-
}>;
|
|
32
|
-
} | undefined>;
|
|
33
|
-
export declare const wxssTask: (options: any, result: ICompileResult) => Promise<ICompileResult>;
|