Lines Matching refs:projectDir
34 const { workspaceDir, projectDir } = getDirectories({ name: appName, outDir }); constant
38 await cleanIfNeeded({ clean, projectDir, workspaceDir });
40 await modifyPackageJson({ packagesToSymlink, projectDir });
41 await modifyAppJson({ projectDir, appName });
42 await yarnInstall({ projectDir });
43 await symlinkPackages({ packagesToSymlink, projectDir });
44 await runExpoPrebuild({ projectDir, useLocalTemplate });
46 await updateRNVersion({ rnVersion, projectDir });
48 await createMetroConfig({ projectRoot: projectDir });
49 await createScripts({ projectDir });
52 await symlinkPackages({ projectDir, packagesToSymlink });
53 await stageAndCommitInitialChanges({ projectDir });
55 console.log(`Project created in ${projectDir}!`);
63 const projectDir = path.resolve(process.cwd(), workspaceDir, appName); constant
67 projectDir,
71 async function cleanIfNeeded({ workspaceDir, projectDir, clean }) {
77 await fs.remove(projectDir);
184 projectDir,
187 projectDir: string;
189 const pkgPath = path.resolve(projectDir, 'package.json');
201 await fs.outputJson(path.resolve(projectDir, 'package.json'), pkg, { spaces: 2 });
204 async function yarnInstall({ projectDir }: { projectDir: string }) {
206 return await spawnAsync('yarn', [], { cwd: projectDir, stdio: 'ignore' });
211 projectDir,
214 projectDir: string;
217 const projectPackagePath = path.resolve(projectDir, 'node_modules', packageName);
229 projectDir,
232 projectDir: string;
237 const pkgPath = path.resolve(projectDir, 'package.json');
241 await fs.outputJson(path.resolve(projectDir, 'package.json'), pkg, { spaces: 2 });
242 await spawnAsync('yarn', [], { cwd: projectDir });
251 projectDir,
254 projectDir: string;
261 await spawnAsync('npm', ['pack', '--pack-destination', projectDir], {
266 projectDir,
270 cwd: projectDir,
274 return await runExpoCliAsync('prebuild', ['--no-install'], { cwd: projectDir });
313 async function createScripts({ projectDir }) {
314 const scriptsDir = path.resolve(projectDir, 'scripts');
320 const pkgJsonPath = path.resolve(projectDir, 'package.json');
322 pkgJson.scripts['package:add'] = `node scripts/addPackages.js ${EXPO_DIR} ${projectDir}`;
323 pkgJson.scripts['package:remove'] = `node scripts/removePackages.js ${EXPO_DIR} ${projectDir}`;
334 async function stageAndCommitInitialChanges({ projectDir }) {
335 const gitDirectory = new GitDirectory(projectDir);
341 async function modifyAppJson({ projectDir, appName }: { projectDir: string; appName: string }) {
342 const pathToAppJson = path.resolve(projectDir, 'app.json');