more cleanup
This commit is contained in:
parent
e7aa5f69cf
commit
2cff17bf89
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@matthiesenxyz/create-astro-ghostcms",
|
"name": "@matthiesenxyz/create-astro-ghostcms",
|
||||||
"version": "0.0.1-dev11",
|
"version": "0.0.1-dev12",
|
||||||
"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",
|
||||||
|
|
|
@ -38,21 +38,18 @@ 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: () =>
|
}),
|
||||||
p.confirm({
|
initGitRepo: () =>
|
||||||
message: `${c.cyan('Initialize a Git repository?')} ${c.italic(c.gray(`( Tip: If this option gets 'stuck' press the enter button a second time! )`))}`,
|
p.confirm({
|
||||||
initialValue: false,
|
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,
|
||||||
},
|
})},
|
||||||
{ onCancel: () => {
|
{ onCancel: () => { exitPrompt(); } }
|
||||||
exitPrompt();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
|
|
||||||
initGitRepo = initGitRepo ?? fCheck.initGitRepo;
|
initGitRepo = initGitRepo ?? fCheck.initGitRepo;
|
||||||
|
@ -68,7 +65,7 @@ export async function createBasic(ctx) {
|
||||||
p.log.info(`${c.gray("Skipped Git initialization")}`);
|
p.log.info(`${c.gray("Skipped Git initialization")}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
const nextSteps = `If you didnt opt to install Dependencies dont forget to run: \n ${c.yellow('npm install')} / ${c.yellow('pnpm install')} / ${c.yellow('yarn install')} inside your project directory! \n \n ${c.bgYellow(c.black("Dont forget to modify your .env file for YOUR ghost install!"))} `
|
const nextSteps = `If you didnt opt to install Dependencies dont forget to run: \n ${c.yellow('npm install')} / ${c.yellow('pnpm install')} / ${c.yellow('yarn install')} inside your project directory! \n \n ${c.bgYellow(c.black(c.bold(" Dont forget to modify your .env file for YOUR ghost install! ")))} `
|
||||||
|
|
||||||
// 4. Install dependencies
|
// 4. Install dependencies
|
||||||
installDeps = installDeps ?? fCheck.installDeps;
|
installDeps = installDeps ?? fCheck.installDeps;
|
||||||
|
|
Loading…
Reference in New Issue