test
This commit is contained in:
parent
b768695bfc
commit
ae12b7e1c6
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@matthiesenxyz/create-astro-ghostcms",
|
"name": "@matthiesenxyz/create-astro-ghostcms",
|
||||||
"version": "0.0.1-dev13",
|
"version": "0.0.1-dev14",
|
||||||
"description": "Utility to quickly get started with our Integration and astro",
|
"description": "Utility to quickly get started with our Integration and astro",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./create-astro-ghostcms.mjs",
|
"main": "./create-astro-ghostcms.mjs",
|
||||||
|
|
|
@ -41,19 +41,22 @@ export async function createBasic(ctx) {
|
||||||
}
|
}
|
||||||
s.stop(`${c.green('New Astro-GhostCMS project')} '${project.name}' ${c.green('created')} 🚀`);
|
s.stop(`${c.green('New Astro-GhostCMS project')} '${project.name}' ${c.green('created')} 🚀`);
|
||||||
const fCheck = await p.group({
|
const fCheck = await p.group({
|
||||||
installDeps: () =>
|
installDeps: () => p.confirm({
|
||||||
p.confirm({
|
|
||||||
message: `${c.cyan('Install dependencies? (Recommended)')}`,
|
message: `${c.cyan('Install dependencies? (Recommended)')}`,
|
||||||
initialValue: false,
|
initialValue: false,
|
||||||
}),
|
}),
|
||||||
initGitRepo: () =>
|
initGitRepo: () => p.confirm({
|
||||||
p.confirm({
|
|
||||||
message: `${c.cyan('Initialize a Git repository?')} ${c.italic(c.gray(`( Tip: If this option gets 'stuck' press the enter button a second time! )`))}`,
|
message: `${c.cyan('Initialize a Git repository?')} ${c.italic(c.gray(`( Tip: If this option gets 'stuck' press the enter button a second time! )`))}`,
|
||||||
initialValue: false,
|
initialValue: false,
|
||||||
})},
|
}),
|
||||||
{ onCancel: () => { exitPrompt(); } }
|
readyCheck: () => p.confirm({
|
||||||
);
|
message: `${c.bgYellow(c.black(c.bold(' CONFIRM: Press Enter Twice to continue or `Ctrl+C` to Cancel. ')))}`,
|
||||||
|
initialValue: true,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
{ onCancel: () => { exitPrompt(); } });
|
||||||
|
|
||||||
|
if(fCheck.readyCheck){
|
||||||
initGitRepo = initGitRepo ?? fCheck.initGitRepo;
|
initGitRepo = initGitRepo ?? fCheck.initGitRepo;
|
||||||
// 3. Initialize git repo
|
// 3. Initialize git repo
|
||||||
if (initGitRepo) {
|
if (initGitRepo) {
|
||||||
|
@ -90,6 +93,10 @@ export async function createBasic(ctx) {
|
||||||
p.note(nextSteps);
|
p.note(nextSteps);
|
||||||
p.outro(c.green("Deployment Complete!"));
|
p.outro(c.green("Deployment Complete!"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
exitPrompt();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue