Home
last modified time | relevance | path

Searched refs:filepath (Results 1 – 25 of 65) sorted by relevance

123

/expo/packages/@expo/cli/src/start/server/metro/
H A DbundleApiRoutes.ts27 filepath: string,
30 if (pendingRouteOperations.has(filepath)) {
31 return pendingRouteOperations.get(filepath);
38 debug('Check API route:', options.appDir, filepath);
40 const middleware = await requireFileContentsWithMetro(projectRoot, devServerUrl, filepath, {
63 pendingRouteOperations.set(filepath, route);
69 filepath: string,
72 pendingRouteOperations.delete(filepath);
73 return bundleApiRoute(projectRoot, filepath, options);
80 getApiRoutesForDirectory(options.appDir).map(async (filepath) => {
[all …]
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/scripts/codegen/__tests__/
H A Dgenerate-artifacts-executor-test.js286 statSync: filepath => { argument
296 rmSync: filepath => { argument
300 rmdirSync: filepath => { argument
320 statSync: filepath => { argument
330 rmSync: filepath => { argument
354 statSync: filepath => { argument
363 rmSync: filepath => { argument
403 statSync: filepath => { argument
413 rmSync: filepath => { argument
453 statSync: filepath => { argument
[all …]
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/scripts/codegen/__tests__/
H A Dgenerate-artifacts-executor-test.js286 statSync: filepath => { argument
296 rmSync: filepath => { argument
300 rmdirSync: filepath => { argument
320 statSync: filepath => { argument
330 rmSync: filepath => { argument
354 statSync: filepath => { argument
363 rmSync: filepath => { argument
403 statSync: filepath => { argument
413 rmSync: filepath => { argument
453 statSync: filepath => { argument
[all …]
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/scripts/codegen/__tests__/
H A Dgenerate-artifacts-executor-test.js286 statSync: filepath => { argument
296 rmSync: filepath => { argument
300 rmdirSync: filepath => { argument
320 statSync: filepath => { argument
330 rmSync: filepath => { argument
354 statSync: filepath => { argument
363 rmSync: filepath => { argument
403 statSync: filepath => { argument
413 rmSync: filepath => { argument
453 statSync: filepath => { argument
[all …]
/expo/packages/@expo/cli/src/start/server/type-generation/__tests__/
H A Droutes.test.ts105 it.each(filepaths)('is within the app root: %s', (filepath, expected) => {
106 expect(isRouteFile(filepath)).toEqual(expected);
119 it.each(filepaths)('normalizes a filepath: %s', (filepath, route) => {
120 expect(filePathToRoute(filepath)).toEqual(route);
137 it.each(filepaths)('normalizes a windows filepath: %s', (filepath, route) => {
138 expect(windowsUtils.filePathToRoute(filepath)).toEqual(route);
213 addFilePath(filepath);
216 const actualRoutes = staticRoutes.get(filePathToRoute(filepath));
222 expect(staticRoutes.get(filePathToRoute(filepath))).toBeUndefined();
226 const actualRoutes = dynamicRoutes.get(filePathToRoute(filepath));
[all …]
/expo/packages/@expo/config-plugins/src/android/
H A DPackage.ts125 filesToUpdate.forEach((filepath: string) => {
127 if (fs.lstatSync(filepath).isFile() && ['.h', '.cpp'].includes(path.extname(filepath))) {
128 let contents = fs.readFileSync(filepath).toString();
133 fs.writeFileSync(filepath, contents);
136 debug(`Error updating "${filepath}" for type "${type}"`);
176 if (fs.lstatSync(filepath).isFile()) {
179 fs.mkdirSync(filepath, { recursive: true });
205 filesToUpdate.forEach((filepath: string) => {
207 if (fs.lstatSync(filepath).isFile()) {
208 let contents = fs.readFileSync(filepath).toString();
[all …]
/expo/packages/@expo/config-plugins/build/ios/utils/
H A DXcodeproj.d.ts17 export declare function addResourceFileToGroup({ filepath, groupName, isBuildFile, project, verbose…
18 filepath: string;
29 export declare function addBuildSourceFileToGroup({ filepath, groupName, project, verbose, targetUu…
30 filepath: string;
36 export declare function addFileToGroupAndLink({ filepath, groupName, project, verbose, addFileToPro…
37 filepath: string;
65 export declare function ensureGroupRecursively(project: XcodeProject, filepath: string): PBXGroup |…
H A DXcodeproj.js125 filepath, field
128 const file = new (_pbxFile().default)(filepath);
143 filepath, field
152 filepath, field
175 filepath, field
182 filepath, field
202 filepath, field
211 filepath, field
218 …).addWarningIOS)('ios-xcode-project', `Skipped adding duplicate file "${filepath}" to PBXGroup nam…
306 function ensureGroupRecursively(project, filepath) { argument
[all …]
/expo/packages/@expo/config-plugins/build/android/
H A DPackage.js166 filesToUpdate.forEach(filepath => {
168 …if (_fs().default.lstatSync(filepath).isFile() && ['.h', '.cpp'].includes(_path().default.extname(
169 let contents = _fs().default.readFileSync(filepath).toString();
171 _fs().default.writeFileSync(filepath, contents);
174 debug(`Error updating "${filepath}" for type "${type}"`);
211 if (_fs().default.lstatSync(filepath).isFile()) {
214 _fs().default.mkdirSync(filepath, {
244 filesToUpdate.forEach(filepath => {
246 if (_fs().default.lstatSync(filepath).isFile()) {
252 _fs().default.writeFileSync(filepath, contents);
[all …]
/expo/packages/@expo/config-plugins/src/ios/utils/
H A DXcodeproj.ts80 function createProjectFileForGroup({ filepath, group }: { filepath: string; group: PBXGroup }) {
81 const file = new pbxFile(filepath);
97 filepath,
105 filepath: string;
113 filepath,
133 filepath,
139 filepath: string;
146 filepath,
163 filepath,
170 filepath: string;
[all …]
/expo/packages/@expo/metro-config/src/serializer/
H A DgetCssDeps.ts83 filepath: originFilename,
115 export function fileNameFromContents({ filepath, src }: { filepath: string; src: string }): string {
117 const decoded = decodeURIComponent(filepath).replace(/\\/g, '/');
/expo/packages/@expo/config-types/scripts/
H A Dgenerate.ts78 const filepath = `src/ExpoConfig.ts`; constant
79 fs.ensureDirSync(path.dirname(filepath));
80 await fs.writeFile(filepath, ts, 'utf8');
/expo/packages/@expo/metro-config/build/serializer/
H A DgetCssDeps.d.ts26 export declare function fileNameFromContents({ filepath, src }: {
27 filepath: string;
H A DgetCssDeps.js72 filepath: originFilename, property
100 filepath, field
104 const decoded = decodeURIComponent(filepath).replace(/\\/g, '/');
/expo/packages/@expo/cli/src/utils/tsconfig/__tests__/
H A DloadTsConfigPaths.test.ts6 evaluateTsConfig: jest.fn((ts, filepath) => {
7 return (require('@expo/json-file') as typeof import('@expo/json-file')).default.read(filepath, {
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/scripts/cocoapods/__tests__/test_utils/
H A DFileMock.rb97 def self.read(filepath) argument
98 return @@files_to_read[filepath]
/expo/packages/@expo/metro-config/src/serializer/__tests__/
H A DgetCssDeps.test.ts5 expect(fileNameFromContents({ filepath: '/', src: 'foo' })).toMatchInlineSnapshot(
11 fileNameFromContents({ filepath: 'node_modules%5Cexpo-router%5Centry.js', src: 'foo' })
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/scripts/cocoapods/__tests__/test_utils/
H A DFileMock.rb113 def self.read(filepath) argument
114 return @@files_to_read[filepath]
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/scripts/cocoapods/__tests__/test_utils/
H A DFileMock.rb113 def self.read(filepath) argument
114 return @@files_to_read[filepath]
/expo/packages/@expo/cli/src/utils/tsconfig/
H A DloadTsConfigPaths.ts27 const [filepath, config] = options; constant
34 debug(`No baseUrl found in ${filepath}`);
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/scripts/codegen/
H A Dgenerate-artifacts-executor.js455 function cleanupEmptyFilesAndFolders(filepath) { argument
456 const stats = fs.statSync(filepath);
459 fs.rmSync(filepath);
465 const dirContent = fs.readdirSync(filepath);
467 cleanupEmptyFilesAndFolders(path.join(filepath, contentPath)),
473 const newContent = fs.readdirSync(filepath);
475 fs.rmdirSync(filepath);
/expo/ios/versioned-react-native/ABI49_0_0/ReactNative/scripts/codegen/
H A Dgenerate-artifacts-executor.js482 function cleanupEmptyFilesAndFolders(filepath) { argument
483 const stats = fs.statSync(filepath);
486 fs.rmSync(filepath);
492 const dirContent = fs.readdirSync(filepath);
494 cleanupEmptyFilesAndFolders(path.join(filepath, contentPath)),
500 const newContent = fs.readdirSync(filepath);
502 fs.rmdirSync(filepath);
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/scripts/codegen/
H A Dgenerate-artifacts-executor.js455 function cleanupEmptyFilesAndFolders(filepath) { argument
456 const stats = fs.statSync(filepath);
459 fs.rmSync(filepath);
465 const dirContent = fs.readdirSync(filepath);
467 cleanupEmptyFilesAndFolders(path.join(filepath, contentPath)),
473 const newContent = fs.readdirSync(filepath);
475 fs.rmdirSync(filepath);
/expo/tools/src/dynamic-macros/
H A DAndroidMacrosGenerator.ts44 async function readExistingSourceAsync(filepath) {
46 return await fs.readFile(filepath, 'utf8');
/expo/packages/@expo/prebuild-config/src/plugins/unversioned/expo-splash-screen/
H A DwithIosSplashXcodeProject.ts38 filepath: storyboardFilePath,

123