Lines Matching refs:projectRoot
44 const projectRoot = path.resolve(process.cwd()); constant
45 const folderName = path.basename(projectRoot);
47 assertFolderEmpty(projectRoot, folderName);
48 return projectRoot;
54 async function setupDependenciesAsync(projectRoot: string, props: Pick<Options, 'install'>) {
59 const needsPodsInstalled = await fs.existsSync(path.join(projectRoot, 'ios'));
61 await installNodeDependenciesAsync(projectRoot, packageManager);
63 podsInstalled = await installCocoaPodsAsync(projectRoot);
66 const cdPath = getChangeDirectoryPath(projectRoot);
95 const projectRoot = await resolveProjectRootArgAsync(inputPath, props); constant
96 await fs.promises.mkdir(projectRoot, { recursive: true });
109 () => Template.extractAndPrepareTemplateAppAsync(projectRoot, { npmPackage: resolvedTemplate }),
118 await setupDependenciesAsync(projectRoot, props);
127 await initGitRepoAsync(projectRoot);
144 const projectRoot = await resolveProjectRootArgAsync(inputPath, props); constant
145 await fs.promises.mkdir(projectRoot, { recursive: true });
157 await withSectionLog(() => downloadAndExtractExampleAsync(projectRoot, resolvedExample), {
164 await setupDependenciesAsync(projectRoot, props);
173 await initGitRepoAsync(projectRoot);
180 function getChangeDirectoryPath(projectRoot: string): string {
181 const cdPath = path.relative(process.cwd(), projectRoot);
182 if (cdPath.length <= projectRoot.length) {
185 return projectRoot;
189 projectRoot: string,
193 await installDependenciesAsync(projectRoot, packageManager, { silent: false });
203 async function installCocoaPodsAsync(projectRoot: string): Promise<boolean> {
206 podsInstalled = await Template.installPodsAsync(projectRoot);