1/* 2 * Copyright (c) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16export const ENTRY_TXT: string = 'entry.txt'; 17export const FILESINFO_TXT: string = 'filesInfo.txt'; 18export const FILESINFO: string = 'filesInfo'; 19export const NPMENTRIES_TXT: string = 'npmEntries.txt'; 20export const MODULES_CACHE: string = 'modules.cache'; 21export const MODULES_ABC: string = 'modules.abc'; 22export const WIDGETS_ABC: string = 'widgets.abc'; 23export const MODULELIST_JSON: string = 'moduleList.json'; 24export const PREBUILDMODE_JSON: string = 'preBuildMode.json'; 25export const SOURCEMAPS_JSON: string = 'sourceMaps.json'; 26export const SOURCEMAPS: string = 'sourceMaps.map'; 27export const SYMBOLMAP: string = 'symbolMap.map'; 28export const PROTO_FILESINFO_TXT: string = 'protoFilesInfo.txt'; 29export const AOT_FULL: string = 'full'; 30export const AOT_TYPE: string = 'type'; 31export const AOT_PARTIAL: string = 'partial'; 32export const AOT_PROFILE_SUFFIX: string = '.ap'; 33export const NPM_ENTRIES_PROTO_BIN: string = 'npm_entries.protoBin'; 34export const PACKAGE_JSON: string = 'package.json'; 35export const FAKE_JS: string = 'fake.js'; 36 37export const ESMODULE: string = 'esmodule'; 38export const JSBUNDLE: string = 'jsbundle'; 39export const ARK: string = 'ark'; 40export const TEMPORARY: string = 'temporary'; 41export const MAIN: string = 'main'; 42export const AUXILIARY: string = 'auxiliary'; 43export const HAP_PACKAGE: string = '0'; 44export const PROJECT_PACKAGE: string = '1'; 45export const EXTNAME_ETS: string = '.ets'; 46export const EXTNAME_JS: string = '.js'; 47export const EXTNAME_TS: string = '.ts'; 48export const EXTNAME_JS_MAP: string = '.js.map'; 49export const EXTNAME_TS_MAP: string = '.ts.map'; 50export const EXTNAME_MJS: string = '.mjs'; 51export const EXTNAME_CJS: string = '.cjs'; 52export const EXTNAME_D_TS: string = '.d.ts'; 53export const EXTNAME_ABC: string = '.abc'; 54export const EXTNAME_JSON: string = '.json'; 55export const EXTNAME_PROTO_BIN: string = '.protoBin'; 56export const PATCH_SYMBOL_TABLE: string = 'symbol.txt'; 57export const TEMP_JS: string = '.temp.js'; 58export const HASH_FILE_NAME: string = 'gen_hash.json'; 59export const EXTNAME_TXT: string = '.txt'; 60export const PROTOS: string = 'protos'; 61 62export const TS2ABC: string = 'ts2abc'; 63export const ES2ABC: string = 'es2abc'; 64 65export const MAX_WORKER_NUMBER: number = 3; 66 67export const GEN_ABC_SCRIPT: string = 'gen_abc.js'; 68 69export const NODE_MODULES: string = 'node_modules'; 70export const OH_MODULES: string = 'oh_modules'; 71export const PACKAGES: string = 'pkg_modules'; 72export const OHPM: string = 'ohpm'; 73 74export const TS_NOCHECK: string = '// @ts-nocheck'; 75 76export const WINDOWS: string = 'Windows_NT'; 77export const LINUX: string = 'Linux'; 78export const MAC: string = 'Darwin'; 79 80export const COMMONJS: string = 'commonjs'; 81export const ESM: string = 'esm'; 82export const SCRIPT: string = 'script'; 83 84export const SRC_MAIN: string = 'src/main'; 85export const GEN_ABC_PLUGIN_NAME: string = 'Gen_Abc_Plugin'; 86 87export const SUCCESS: number = 0; 88export const FAIL: number = 1; 89 90export const red: string = '\u001b[31m'; 91export const yellow: string = '\u001b[33m'; 92export const blue: string = '\u001b[34m'; 93export const reset: string = '\u001b[39m'; 94 95export const DEBUG: string = 'debug'; 96export const RELEASE: string = 'release'; 97 98export const TRUE: string = 'true'; 99export const FALSE: string = 'false'; 100 101export const IS_CACHE_INVALID: string = 'is_cache_invalid'; 102export const ARK_COMPILER_META_INFO: string = 'ark_compiler_meta_info'; 103