/ide/tools/previewer/automock/mock-generate/ |
D | build.js | 18 const path = require('path'); constant 21 const mockJsPath = path.join(__dirname, '..', './runtime/main/extend/systemplugin'); 27 …${path.join(__dirname, '..', nodeDir)} ${path.join(__dirname, '..','./node_modules/typescript/bin/… 28 ${path.join(__dirname, '..', nodeDir)} ${path.join(__dirname, 'dist')}/main.js ${apiInputPath} && 29 …${path.join(__dirname, '..', nodeDir)} ${path.join(__dirname, '..', './node_modules/eslint/bin/esl…
|
/ide/tools/previewer/util/ |
D | FileSystem.cpp | 35 bool FileSystem::IsFileExists(string path) in IsFileExists() argument 37 return S_ISREG(GetFileMode(path)); in IsFileExists() 40 bool FileSystem::IsDirectoryExists(string path) in IsDirectoryExists() argument 42 return S_ISDIR(GetFileMode(path)); in IsDirectoryExists() 52 string path(appPath); in GetApplicationPath() local 53 return path; in GetApplicationPath() 68 for (string path : pathList) { in MakeVirtualFileSystemPath() local 70 dirToMake += path; in MakeVirtualFileSystemPath() 79 int FileSystem::MakeDir(string path) in MakeDir() argument 83 result = mkdir(path.data()); in MakeDir() [all …]
|
D | FileSystem.h | 24 static bool IsFileExists(std::string path); 25 static bool IsDirectoryExists(std::string path); 29 static int MakeDir(std::string path); 37 static unsigned short GetFileMode(std::string path);
|
D | CommandParser.cpp | 309 string path = Value("j"); in IsAppPathValid() local 310 if (!FileSystem::IsDirectoryExists(path)) { in IsAppPathValid() 439 string path = Value("f"); in IsConfigPathValid() local 440 if (!FileSystem::IsFileExists(path)) { in IsConfigPathValid() 445 configPath = path; in IsConfigPathValid() 455 string path = Value("arp"); in IsAppResourcePathValid() local 456 if (!FileSystem::IsDirectoryExists(path)) { in IsAppResourcePathValid() 461 appResourcePath = path; in IsAppResourcePathValid() 734 string path = Value("hsp"); in IsContainerSdkPathValid() local 735 if (!FileSystem::IsDirectoryExists(path)) { in IsContainerSdkPathValid() [all …]
|
D | JsonReader.h | 28 static std::string ReadFile(const std::string path);
|
D | JsonReader.cpp | 24 string JsonReader::ReadFile(const string path) in ReadFile() argument 26 ifstream inFile(path); in ReadFile()
|
/ide/tools/previewer/automock/mock-generate/src/ |
D | main.ts | 17 import path from 'path'; 34 …if (!dir.toString().includes('node_modules') && !dir.toString().includes(path.join('@internal', 'c… 36 const fullPath = path.join(dir, value); 55 const currPath = path.join(outDir, value); 78 if (mkdirsSync(path.dirname(dirname))) { 94 const outMockJsFileDir = path.join(__dirname, '../../runtime/main/extend/systemplugin'); 120 fileName = path.basename(value, '.d.ts'); 122 fileName = path.basename(value, '.d.ets'); 135 tmpOutputMockJsFileDir = path.join(outMockJsFileDir, 'napi'); 139 tmpOutputMockJsFileDir = path.join(tmpOutputMockJsFileDir, '@ohos'); [all …]
|
/ide/tools/previewer/automock/mock-generate/src/common/ |
D | commonUtils.ts | 16 import path from 'path'; 63 const fullFileName = path.basename(filePath); 239 const privateInterface = path.join('vendor', 'huawei', 'interface', 'hmscore_sdk_js', 'api'); 240 const openInterface = path.join('interface', 'sdk-js', 'api'); 242 return apiInputPath.replace(`${path.sep}${openInterface}`, ''); 244 return apiInputPath.replace(`${path.sep}${privateInterface}`, ''); 252 return path.join(getProjectDir(), 'interface', 'sdk-js', 'api'); 272 const sourceFileDir = path.dirname(sourceFile.fileName); 276 dependsFilePath = path.join(sourceFileDir, tmpImportPath.substring(subIndex)); 280 ...sourceFileDir.split(path.sep).slice(0, -backSymbolList.length), [all …]
|
/ide/tools/previewer/automock/ |
D | build_jsmock_system_plugin.js | 18 const path = require('path'); constant 51 tsconfig: path.resolve(__dirname, 'tsconfig.json'), 61 input: path.resolve(__dirname, 'runtime/main/extend/systemplugin/index.js'), 76 file: path.resolve(__dirname, 'dist/jsMockSystemPlugin.js'), 91 const file = path.relative(__dirname, filePath);
|
/ide/tools/previewer/automock/mock-generate/src/generate/ |
D | generateInterfaceDeclaration.ts | 17 import path from 'path'; 140 …const specialFilesList = [...specialFiles.map(specialFile => path.join(getApiInputPath(), ...speci… 157 …let specialFileRelatePath = path.relative(path.dirname(sourceFile.fileName), path.dirname(specialF… 164 specialFileRelatePath = specialFileRelatePath.split(path.sep).join('/'); 168 path.basename(specialFilePath).replace('.d.ts', '').replace('.d.ets', '')}'\n`;
|
D | generateTypeAlias.ts | 18 import path from 'path'; 62 …ealPath = getOhosInterfacesDir() + importRelatePath.replace('../api', '').replace(/\//g, path.sep); 76 const importFilePathSteps = importFilePath.replace(/.d.e?ts/, '').split(path.sep); 90 return `./${path.basename(importFilePath)}`;
|
D | generateMockJsFile.ts | 17 import path from 'path'; 283 const referenceFileName = path.basename(newRelateReferencePath); 284 …realReferenceFilePath = path.join(getApiInputPath(), '@internal', 'component', 'ets', referenceFil… 286 const referenceFileName = path.basename(contentReferenceRelatePath); 287 …lePath = currentFilePath.replace(baseFileNameTemplate, referenceFileName).replace(/\//g, path.sep); 300 … let relatePath = path.relative(path.dirname(currentFilePath), dependsSourceFileList[i].fileName)
|
D | generateModuleDeclaration.ts | 16 import path from 'path'; 54 path.basename(sourceFile.fileName).startsWith('@ohos')
|
/ide/tools/previewer/cli/ |
D | CommandLineInterface.h | 41 void ReadAndApplyConfig(std::string path) const;
|
D | CommandLineInterface.cpp | 250 void CommandLineInterface::ReadAndApplyConfig(string path) const in ReadAndApplyConfig() 252 if (path.empty()) { in ReadAndApplyConfig() 255 string jsonStr = JsonReader::ReadFile(path); in ReadAndApplyConfig()
|
/ide/tools/previewer/jsapp/rich/external/ |
D | StageContext.cpp | 287 bool StageContext::ContainsRelativePath(const std::string& path) const in ContainsRelativePath() 289 return (path.find("../") != std::string::npos || path.find("./") != std::string::npos); in ContainsRelativePath()
|
D | StageContext.h | 116 bool ContainsRelativePath(const std::string& path) const;
|
/ide/tools/previewer/ |
D | README.md | 11 … line and passes to it startup parameters such as the ArkTS build product path and preview specifi…
|
/ide/tools/previewer/jsapp/rich/ |
D | JsAppImpl.cpp | 329 const string path = CommandParser::GetInstance().GetAppResourcePath() + in SetSimulatorParams() local 331 if (!FileSystem::IsFileExists(path)) { in SetSimulatorParams() 335 OHOS::Ide::StageContext::GetInstance().ParseJsonFile(path); in SetSimulatorParams()
|