Home
last modified time | relevance | path

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

/developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/bundle/
Dbundle_mode.ts59 cacheFilePath: string; property
127 const cacheFilePath: string = value.cacheFilePath; constant
128 const cacheAbcFilePath: string = changeFileExtension(cacheFilePath, EXTNAME_ABC);
129 if (!fs.existsSync(cacheFilePath)) {
131 …`ArkTS:INTERNAL ERROR: Failed to get bundle cached abc from ${cacheFilePath} in incremental build.…
135 const hashCacheFileContentData: string = toHashData(cacheFilePath);
137 if (jsonObject[cacheFilePath] === hashCacheFileContentData &&
139 updatedJsonObject[cacheFilePath] = hashCacheFileContentData;
187 const cacheFilePath: string = info.cacheFilePath; constant
195 cacheFilePath).replace(toUnixPath(this.projectConfig.projectRootPath) + '/', '');
[all …]
/developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/module/
Dmodule_mode.ts107 cacheFilePath: string; property in ModuleInfo
113 …constructor(filePath: string, cacheFilePath: string, isCommonJs: boolean, recordName: string, sour…
117 this.cacheFilePath = cacheFilePath;
142 cacheFilePath: string; property in ModuleMode
165 this.cacheFilePath = path.join(this.projectConfig.cachePath, MODULES_CACHE);
453 let cacheFilePath: string =
476 cacheFilePath = changeFileExtension(cacheFilePath, extName);
479 cacheFilePath = toUnixPath(cacheFilePath);
483 sourceFile = cacheFilePath.replace(toUnixPath(this.projectConfig.projectRootPath) + '/', '');
487 …moduleInfos.set(filePath, new ModuleInfo(filePath, cacheFilePath, isCommonJs, recordName, sourceFi…
[all …]
/developtools/ace_ets2bundle/compiler/src/fast_build/ark_compiler/
Dutils.ts96 function removeCacheFile(cacheFilePath: string, ext: string): void {
97 let filePath = toUnixPath(changeFileExtension(cacheFilePath, ext));
104 …let cacheFilePath: string = genTemporaryPath(filePath, projectConfig.projectPath, projectConfig.ca…
108 removeCacheFile(cacheFilePath, EXTNAME_TS);
116 removeCacheFile(cacheFilePath, hasTsNoCheckOrTsIgnore ? EXTNAME_TS : EXTNAME_JS);
120cacheFilePath = updateCacheFilePathIfEnableObuscatedFilePath(filePath, cacheFilePath, projectConfi…
121 cacheFilePath = toUnixPath(changeFileExtension(cacheFilePath, EXTNAME_JS));
122 return fs.existsSync(cacheFilePath);
125 function updateCacheFilePathIfEnableObuscatedFilePath(filePath: string, cacheFilePath: string, proj…
128 return handleObfuscatedFilePath(cacheFilePath, isPackageModules, projectConfig);
[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/
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/mock/class_mock/
Dmodule_mode_mock.ts148 … `${info.cacheFilePath};${info.recordName};${moduleType};${info.sourceFile};${info.packageName};` +
177 const filesInfo = fs.readFileSync(this.cacheFilePath, 'utf-8');
179 const abcCacheFilePath: string = changeFileExtension(info.cacheFilePath, EXTNAME_PROTO_BIN);
180 mockabcCacheFilesInfo += `${info.cacheFilePath};${abcCacheFilePath}\n`;
/developtools/ace_ets2bundle/compiler/src/fast_build/ets_ui/
Drollup-plugin-ets-typescript.ts204 const cacheFilePath: string = genTemporaryPath(filePath, projectConfig.moduleRootPath, constant
209 setIncrementalFileInHar(cacheFilePath, buildFilePath, allFilesInHar);
211 allFilesInHar.set(cacheFilePath, buildFilePath);
216 allFilesInHar.forEach((buildFilePath, cacheFilePath) => {
218 if (fs.existsSync(cacheFilePath)) {
219 const sourceCode: string = fs.readFileSync(cacheFilePath, 'utf-8');
602 function setIncrementalFileInHar(cacheFilePath: string, buildFilePath: string, allFilesInHar: Map<s…
603 if (cacheFilePath.match(/\.d.e?ts$/)) {
604 allFilesInHar.set(cacheFilePath, buildFilePath);
608 allFilesInHar.set(cacheFilePath.replace(/\.ets$/, '.d.ets').replace(/\.ts$/, '.d.ts'),
[all …]
/developtools/ace_ets2bundle/compiler/test/ark_compiler_ut/module/
Dmodule_mode.test.ts446 expect(moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_TS_PATH_DEFAULT) > 0 ||
447 moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_JS_PATH_DEFAULT) > 0 ||
448 moduleInfo.cacheFilePath.indexOf(INDEX_ETS_PATH_DEFAULT) > 0).to.be.true;
468 expect(value.cacheFilePath.endsWith(EXTNAME_TS)).to.be.true;
483 expect(moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_TS_PATH_DEFAULT) > 0 ||
484 moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_JS_PATH_DEFAULT) > 0 ||
485 moduleInfo.cacheFilePath.indexOf(INDEX_ETS_PATH_DEFAULT) > 0).to.be.true;
509 expect(moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_TS_PATH_DEFAULT) > 0 ||
510 moduleInfo.cacheFilePath.indexOf(ENTRYABILITY_JS_PATH_DEFAULT) > 0 ||
511 moduleInfo.cacheFilePath.indexOf(INDEX_ETS_PATH_DEFAULT) > 0).to.be.true;
[all …]
/developtools/ace_ets2bundle/compiler/test/ark_compiler_ut/bundle/
Dbundle_mode.test.ts129 fs.unlinkSync(value.cacheFilePath);
/developtools/ace_ets2bundle/compiler/test/ark_compiler_ut/common/
Dutils.test.ts1279 …const cacheFilePath = genTemporaryPath(filePath, projectConfig.projectPath, projectConfig.cachePat… constant
1282 expect(cacheFilePath === expectCacheFilePath).to.be.true;