UNPKG

@hadss/hmrouter-plugin

Version:

HMRouter Compiler Plugin

40 lines (39 loc) 2.17 kB
export default class HMRouterPluginConstant { static readonly ANIMATOR_PREFIX = "__animator__"; static readonly INTERCEPTOR_PREFIX = "__interceptor__"; static readonly LIFECYCLE_PREFIX = "__lifecycle__"; static readonly SERVICE_PREFIX = "__service__"; static readonly SERVICE_PROVIDE_PREFIX = "__service_provider__"; static readonly OBFUSCATION_FILE_NAME = "hmrouter-obfuscation-rules.txt"; static readonly CONSUMER_FILE_NAME = "hmrouter-consumer-rules.txt"; static readonly ROUTER_MAP_KEY = "routerMap"; static readonly FILE_SEPARATOR: "\\" | "/"; static readonly DELIMITER = "/"; static readonly MODULE_ROUTER_MAP_NAME = "$profile:hm_router_map"; static readonly ROUTER_MAP_NAME = "hm_router_map.json"; static readonly TEMP_ROUTER_MAP_PATH = "../../intermediates/router_map"; static readonly RAWFILE_DIR = "src/main/resources/rawfile/hm_router_map.json"; static readonly VIEW_NAME_PREFIX = "HM"; static readonly ETS_SUFFIX = ".ets"; static readonly JSON_SUFFIX = ".json"; static readonly HAP_PLUGIN_ID = "HAP_HMROUTER_PLUGIN"; static readonly HSP_PLUGIN_ID = "HSP_HMROUTER_PLUGIN"; static readonly HAR_PLUGIN_ID = "HAR_HMROUTER_PLUGIN"; static readonly HAR_MODULE_NAME = "har"; static readonly ROUTER_ANNOTATION = "HMRouter"; static readonly ANIMATOR_ANNOTATION = "HMAnimator"; static readonly INTERCEPTOR_ANNOTATION = "HMInterceptor"; static readonly LIFECYCLE_ANNOTATION = "HMLifecycle"; static readonly SERVICE_ANNOTATION = "HMService"; static readonly SERVICE_PROVIDE_ANNOTATION = "HMServiceProvider"; static readonly CONFIG_FILE_NAME = "hmrouter_config.json"; static readonly PARENT_DELIMITER = "../"; static readonly CURRENT_DELIMITER = "./"; static readonly LINE_BREAK = "\n"; static readonly KEEP_FILE_NAME = "-keep-file-name"; static readonly KEEP_PROPERTY_NAME = "-keep-property-name"; static readonly KEEP_GLOBAL_NAME = "-keep-global-name"; static readonly OH_MODULE_PATH = "oh_modules"; static readonly WARP_BUILDER = "WrapBuilder"; static readonly CUSTOM_BUILDER_TEMPLATE = "template/customBuilder.ejs"; }