• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 RELEASEASSETS: string = 'releaseAssets';
42export const MAIN: string = 'main';
43export const AUXILIARY: string = 'auxiliary';
44export const HAP_PACKAGE: string = '0';
45export const PROJECT_PACKAGE: string = '1';
46export const EXTNAME_ETS: string = '.ets';
47export const EXTNAME_D_ETS: string = '.d.ets';
48export const EXTNAME_JS: string = '.js';
49export const EXTNAME_TS: string = '.ts';
50export const EXTNAME_JS_MAP: string = '.js.map';
51export const EXTNAME_TS_MAP: string = '.ts.map';
52export const EXTNAME_MJS: string = '.mjs';
53export const EXTNAME_CJS: string = '.cjs';
54export const EXTNAME_D_TS: string = '.d.ts';
55export const EXTNAME_ABC: string = '.abc';
56export const EXTNAME_JSON: string = '.json';
57export const EXTNAME_PROTO_BIN: string = '.protoBin';
58export const PATCH_SYMBOL_TABLE: string = 'symbol.txt';
59export const TEMP_JS: string = '.temp.js';
60export const HASH_FILE_NAME: string = 'gen_hash.json';
61export const EXTNAME_TXT: string = '.txt';
62export const PROTOS: string = 'protos';
63
64export const TS2ABC: string = 'ts2abc';
65export const ES2ABC: string = 'es2abc';
66
67export const MAX_WORKER_NUMBER: number = 3;
68
69export const GEN_ABC_SCRIPT: string = 'gen_abc.js';
70
71export const NODE_MODULES: string = 'node_modules';
72export const OH_MODULES: string = 'oh_modules';
73export const PACKAGES: string = 'pkg_modules';
74export const OHPM: string = 'ohpm';
75
76export const TS_NOCHECK: string = '// @ts-nocheck';
77
78export const WINDOWS: string = 'Windows_NT';
79export const LINUX: string = 'Linux';
80export const MAC: string = 'Darwin';
81
82export const COMMONJS: string = 'commonjs';
83export const ESM: string = 'esm';
84export const SCRIPT: string = 'script';
85
86export const SRC_MAIN: string = 'src/main';
87export const GEN_ABC_PLUGIN_NAME: string = 'Gen_Abc_Plugin';
88export const OBFUSCATION_TOOL: string = "Obfuscation_Tool";
89
90export const SUCCESS: number = 0;
91export const FAIL: number = 1;
92
93export const red: string = '\u001b[31m';
94export const yellow: string = '\u001b[33m';
95export const blue: string = '\u001b[34m';
96export const reset: string = '\u001b[39m';
97
98export const DEBUG: string = 'debug';
99export const RELEASE: string = 'release';
100
101export const TRUE: string = 'true';
102export const FALSE: string = 'false';
103
104export const IS_CACHE_INVALID: string = 'is_cache_invalid';
105export const ARK_COMPILER_META_INFO: string = 'ark_compiler_meta_info';
106