@hadss/hmrouter-plugin
Version:
HMRouter Compiler Plugin
34 lines (33 loc) • 2.05 kB
TypeScript
export default class FilePathConstants {
static readonly OBFUSCATION_FILE_NAME = "hmrouter-obfuscation-rules.txt";
static readonly CONSUMER_FILE_NAME = "hmrouter-consumer-rules.txt";
static readonly FILE_SEPARATOR: "\\" | "/";
static readonly DELIMITER = "/";
static readonly TEMP_ROUTER_MAP_PATH = "../../intermediates/router_map";
static readonly RAWFILE_DIR = "src/main/resources/rawfile/hm_router_map.json";
static readonly ETS_SUFFIX = ".ets";
static readonly D_ETS_SUFFIX = ".d.ets";
static readonly JSON_SUFFIX = ".json";
static readonly CONFIG_FILE_NAME = "hmrouter_config.json";
static readonly PARENT_DELIMITER = "../";
static readonly CURRENT_DELIMITER = "./";
static readonly OH_MODULE_PATH = "oh_modules";
static readonly OH_PACKAGE_FILE_NAME = "oh-package.json5";
static readonly OH_PACKAGE_LOCK_FILE_NAME = "oh-package-lock.json5";
static readonly LINE_BREAK = "\n";
static readonly BUILD_PROFILE = "build-profile.json5";
static readonly SDK_HOME = "default/openharmony/ets/oh-uni-package.json";
static readonly DEFAULT_VALUE = 10;
static readonly DEFAULT_SCAN_DIR = "src/main/ets";
static readonly DEFAULT_ROUTER_MAP_DIR = "src/main/resources/base/profile";
static readonly DEFAULT_BUILD_DIR = "src/main/ets/generated";
static readonly ISOLATED_OBFUSCATION_FILE_NAME = "build/hmrouter/hmrouter-obfuscation-rules.txt";
static readonly ISOLATED_CONSUMER_FILE_NAME = "build/hmrouter/hmrouter-consumer-rules.txt";
static readonly ISOLATED_BUILD_DIR = "build/hmrouter";
static readonly ISOLATED_ETS_DIR = "build/hmrouter/ets";
static readonly ISOLATED_RESOURCES_DIR = "build/hmrouter/resources";
static readonly ISOLATED_PROFILE_DIR = "build/hmrouter/resources/base/profile";
static readonly ISOLATED_RAWFILE_DIR = "build/hmrouter/resources/rawfile/hm_router_map.json";
static readonly ISOLATED_PAGE_SOURCE_PREFIX = "src/../build/hmrouter/ets";
static readonly DEFAULT_RESOURCES_DIR = "./src/main/resources";
}