Home
last modified time | relevance | path

Searched refs:cacheFilePath (Results 1 – 7 of 7) sorted by relevance

/developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/bundle/
Dbundle_mode.ts61 cacheFilePath: string; property
128 const cacheFilePath: string = value.cacheFilePath; constant
129 const cacheAbcFilePath: string = changeFileExtension(cacheFilePath, EXTNAME_ABC);
130 if (!fs.existsSync(cacheFilePath)) {
131 this.throwArkTsCompilerError(`ArkTS:ERROR ${cacheFilePath} is lost`);
134 const hashCacheFileContentData: string = toHashData(cacheFilePath);
136 if (jsonObject[cacheFilePath] === hashCacheFileContentData &&
138 updatedJsonObject[cacheFilePath] = hashCacheFileContentData;
183 const cacheFilePath: string = info.cacheFilePath; constant
187 this.generateReleaseSourceFileName(cacheFilePath);
[all …]
/developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/module/
Dmodule_mode.ts95 cacheFilePath: string; property in ModuleInfo
101 …constructor(filePath: string, cacheFilePath: string, isCommonJs: boolean, recordName: string, sour…
105 this.cacheFilePath = cacheFilePath;
131 cacheFilePath: string; property in ModuleMode
151 this.cacheFilePath = path.join(this.projectConfig.cachePath, MODULES_CACHE);
306 let cacheFilePath: string =
317 cacheFilePath = changeFileExtension(cacheFilePath, extName);
320 cacheFilePath = toUnixPath(cacheFilePath);
323 cacheFilePath.replace(toUnixPath(this.projectConfig.projectRootPath) + '/', '');
326 …moduleInfos.set(filePath, new ModuleInfo(filePath, cacheFilePath, isCommonJs, recordName, sourceFi…
[all …]
/developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/common/
Dgen_abc.ts36 const cacheFilePath: string = inputPaths[i].cacheFilePath; constant
37 const cacheAbcFilePath: string = changeFileExtension(cacheFilePath, EXTNAME_ABC);
39 …const singleCmd: string = `${cmd} "${cacheFilePath}" -o "${cacheAbcFilePath}" --source-file "${sou…
59 …content += `${info.cacheFilePath};${info.recordName};${moduleType};${info.sourceFile};${info.packa…
/developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/
Dutils.ts80 function removeCacheFile(cacheFilePath: string, ext: string): void {
81 let filePath = toUnixPath(changeFileExtension(cacheFilePath, ext));
89 let cacheFilePath: string = path.join(projectConfig.cachePath, sufStr);
92 removeCacheFile(cacheFilePath, EXTNAME_TS);
99 removeCacheFile(cacheFilePath, hasTsNoCheckOrTsIgnore ? EXTNAME_TS : EXTNAME_JS);
103 cacheFilePath = toUnixPath(changeFileExtension(cacheFilePath, EXTNAME_JS));
104 return fs.existsSync(cacheFilePath);
/developtools/ace_ets2bundle/compiler/test/ark_compiler_ut/mock/class_mock/
Dmodule_mode_mock.ts66 … `${info.cacheFilePath};${info.recordName};${moduleType};${info.sourceFile};${info.packageName}\n`;
88 const filesInfo = fs.readFileSync(this.cacheFilePath, 'utf-8');
90 const abcCacheFilePath: string = changeFileExtension(info.cacheFilePath, EXTNAME_PROTO_BIN);
91 mockabcCacheFilesInfo += `${info.cacheFilePath};${abcCacheFilePath}\n`;
/developtools/ace_ets2bundle/compiler/src/
Dgen_merged_abc.ts85 …FilesInfo(moduleInfos: Array<ModuleInfo>, npmEntriesInfoPath: string, cacheFilePath: string): void…
100 fs.writeFileSync(cacheFilePath, abcCacheFilesInfo, 'utf-8');
109 const cacheFilePath: string = path.join(process.env.cachePath, MODULES_CACHE); constant
110 validateFilePathLength(cacheFilePath, logger);
111 generateAbcCacheFilesInfo(moduleInfos, npmEntriesInfoPath, cacheFilePath);
128 genAbcCmd += ` --cache-file "@${cacheFilePath}"`;
/developtools/ace_ets2bundle/compiler/test/ark_compiler_ut/module/
Dmodule_mode.test.ts234 expect(moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_TS_PATH_DEFAULT) > 0 ||
235 moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_JS_PATH_DEFAULT) > 0 ||
236 moduleInfo.cacheFilePath.indexOf(INDEX_ETS_PATH_DEFAULT) > 0).to.be.true;
253 expect(value.cacheFilePath.endsWith(EXTNAME_TS)).to.be.true;
266 expect(moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_TS_PATH_DEFAULT) > 0 ||
267 moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_JS_PATH_DEFAULT) > 0 ||
268 moduleInfo.cacheFilePath.indexOf(INDEX_ETS_PATH_DEFAULT) > 0).to.be.true;
289 expect(moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_TS_PATH_DEFAULT) > 0 ||
290 moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_JS_PATH_DEFAULT) > 0 ||
291 moduleInfo.cacheFilePath.indexOf(INDEX_ETS_PATH_DEFAULT) > 0).to.be.true;
[all …]