[ci] yarn format
This commit is contained in:
parent
6bca7c83a7
commit
a7594cfcdf
3 changed files with 85 additions and 83 deletions
|
@ -17,7 +17,6 @@ export function mkdirp(dir: string) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
const { version } = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url), 'utf-8'));
|
||||
|
||||
export async function main() {
|
||||
|
@ -34,7 +33,7 @@ export async function main() {
|
|||
type: 'confirm',
|
||||
name: 'forceOverwrite',
|
||||
message: 'Directory not empty. Continue?',
|
||||
initial: false
|
||||
initial: false,
|
||||
});
|
||||
if (!response.forceOverwrite) {
|
||||
process.exit(1);
|
||||
|
@ -44,14 +43,14 @@ export async function main() {
|
|||
mkdirp(cwd);
|
||||
}
|
||||
|
||||
const options = /** @type {import('./types/internal').Options} */ (await prompts([
|
||||
const options = /** @type {import('./types/internal').Options} */ await prompts([
|
||||
{
|
||||
type: 'select',
|
||||
name: 'template',
|
||||
message: 'Which app template would you like to use?',
|
||||
choices: TEMPLATES
|
||||
choices: TEMPLATES,
|
||||
},
|
||||
]));
|
||||
]);
|
||||
|
||||
const emitter = degit(`snowpackjs/astro/examples/${options.template}`, {
|
||||
cache: false,
|
||||
|
|
|
@ -1,16 +1,19 @@
|
|||
export const TEMPLATES = [,
|
||||
export const TEMPLATES = [
|
||||
,
|
||||
{
|
||||
title: 'Starter Kit (Generic)',
|
||||
value: 'starter'
|
||||
}, {
|
||||
value: 'starter',
|
||||
},
|
||||
{
|
||||
title: 'Blog',
|
||||
value: 'blog'
|
||||
value: 'blog',
|
||||
},
|
||||
{
|
||||
title: 'Documentation',
|
||||
value: 'docs'
|
||||
value: 'docs',
|
||||
},
|
||||
{
|
||||
title: 'Portfolio',
|
||||
value: 'portfolio'
|
||||
}];
|
||||
value: 'portfolio',
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue