Skip to content

Commit

Permalink
feat: adjust the order of templates
Browse files Browse the repository at this point in the history
  • Loading branch information
yrming committed Jan 8, 2024
1 parent cbed3c1 commit 22b7544
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ Kickstart your project with a starter in VSCode
- [Create Solid](https://github.com/solidjs/solid-start/tree/main/packages/create-solid) - The easiest way to get started with Solid.
- [Starter TS](https://github.com/antfu/starter-ts) - Starter template for TypeScript library.
- [Starter VSCode](https://github.com/antfu/starter-vscode) - Starter template for VS Code Extension.
- [Nest CLI](https://github.com/nestjs/nest-cli) - CLI tool for Nest applications.
- [Vitesse WebExt](https://github.com/antfu/vitesse-webext) - WebExtension Vite Starter Template.
- [Nest CLI](https://github.com/nestjs/nest-cli) - CLI tool for Nest applications.
- ...

## License
Expand Down
24 changes: 12 additions & 12 deletions src/commands/starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ export class StarterCommands extends BaseCommands {
case 'starter-vscode':
await degit('antfu/starter-vscode').clone(`${projectPath}`)
break
case 'nest-cli':
await this.handleCreateNest(projectName)
break
case 'vitesse-webext':
await degit('antfu/vitesse-webext').clone(`${projectPath}`)
break
case 'nest-cli':
await this.handleCreateNest(projectName)
break

default:
break
Expand Down Expand Up @@ -455,15 +455,6 @@ export class StarterCommands extends BaseCommands {
kind: QuickPickItemKind.Separator,
label: 'Nest',
},
{
label: 'Nest CLI(Official)',
iconPath: {
dark: Uri.file(this.context.asAbsolutePath('resources/nest.svg')),
light: Uri.file(this.context.asAbsolutePath('resources/nest.svg')),
},
detail: 'CLI tool for Nest applications',
template: { id: 'nest-cli', defaultProjectName: 'nest-project' },
},
{
kind: QuickPickItemKind.Separator,
label: 'Web Extension',
Expand All @@ -477,6 +468,15 @@ export class StarterCommands extends BaseCommands {
detail: 'WebExtension Vite Starter Template',
template: { id: 'vitesse-webext', defaultProjectName: 'webext-vitesse-project' },
},
{
label: 'Nest CLI(Official)',
iconPath: {
dark: Uri.file(this.context.asAbsolutePath('resources/nest.svg')),
light: Uri.file(this.context.asAbsolutePath('resources/nest.svg')),
},
detail: 'CLI tool for Nest applications',
template: { id: 'nest-cli', defaultProjectName: 'nest-project' },
},
]
return templates
}
Expand Down

0 comments on commit 22b7544

Please sign in to comment.