-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add monoRepoServicesList to projectConfig interface
- Loading branch information
1 parent
704152d
commit 163603b
Showing
2 changed files
with
51 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,14 +87,6 @@ export function createProjectCommand() { | |
} | ||
} else { | ||
switch (newProject.projectType) { | ||
case 'Single' || 'MonoRepo': { | ||
const repo = await input({ | ||
message: 'What is the name of the repository?', | ||
}) | ||
newProject.repositories[repo] = | ||
`[email protected]:${newProject.git.org}/${repo}.git` | ||
break | ||
} | ||
case 'MultiRepo': { | ||
do { | ||
const repo = await input({ | ||
|
@@ -105,16 +97,24 @@ export function createProjectCommand() { | |
} while (await confirm({ message: 'Add another one?' })) | ||
break | ||
} | ||
default: { | ||
const repo = await input({ | ||
message: 'What is the name of the repository?', | ||
}) | ||
newProject.repositories[repo] = | ||
`[email protected]:${newProject.git.org}/${repo}.git` | ||
break | ||
} | ||
} | ||
} | ||
|
||
if (newProject.projectType === 'MonoRepo') { | ||
newProject.monoRepoProjects = [] | ||
newProject.monoRepoServices = [] | ||
do { | ||
const newMonoRepoProject = await input({ | ||
message: 'What is the name of the mono-repo project or service?', | ||
}) | ||
newProject.monoRepoProjects.push(newMonoRepoProject) | ||
newProject.monoRepoServices.push(newMonoRepoProject) | ||
} while (await confirm({ message: 'Add another mono-repo service?' })) | ||
} | ||
|
||
|
@@ -137,7 +137,6 @@ export function createProjectCommand() { | |
}) | ||
) { | ||
createPath({ path: newProject.projectRootPath }) | ||
|
||
projectConfig.save(newProject) | ||
logger.info('New project created successfully.') | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters