Skip to content

Commit

Permalink
feat: support starter vscode template of antfu
Browse files Browse the repository at this point in the history
  • Loading branch information
yrming committed Jan 2, 2024
1 parent 16bc203 commit 76d5e3a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ Kickstart your project with a Starter Template in VSCode
- As a front-end developer, everytime before I create a new project, I have to open a terminal, enter some commands recommended in the front-end framework documentation; sometimes I even forget these commands. This whole process apparently needs more efficiency.
- During the development of Flutter, I found that I could quickly create a Flutter project through the Dart extension for VSCode, so I developed this extension in order to do the same when creating some front-end projects.

## Features

- Create project from starter template
- Select your preferred package manager
- Enable or disable automatic initialization of Git
- Enable or disable automatic installation of dependencies


## Usage

<p>
<table><tr><td>Run <b><code>Starter Templates: New Project</code></b> command to create your new project</tr></td></table>
</p>
Expand All @@ -32,6 +41,7 @@ Kickstart your project with a Starter Template in VSCode
- [Vitesse Lite](https://github.com/antfu/vitesse-lite) - Lightweight version of Vitesse.
- [Create Next App](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) - The easiest way to get started with Next.js.
- [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.
- [Vitesse WebExt](https://github.com/antfu/vitesse-webext) - WebExtension Vite Starter Template.
- ...

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"publisher": "YRM",
"name": "starter-templates",
"displayName": "Starter Templates",
"version": "0.6.2",
"version": "0.7.0",
"description": "Kickstart your project with a Starter Template in VSCode",
"license": "MIT",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions resources/vscode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/commands/starter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ export class StarterCommands extends BaseCommands {
case 'starter-ts':
await degit('antfu/starter-ts').clone(`${projectPath}`)
break
case 'starter-vscode':
await degit('antfu/starter-vscode').clone(`${projectPath}`)
break
case 'vitesse-webext':
await degit('antfu/vitesse-webext').clone(`${projectPath}`)
break
Expand Down Expand Up @@ -282,6 +285,19 @@ export class StarterCommands extends BaseCommands {
detail: 'Starter template for TypeScript library',
template: { id: 'starter-ts', defaultProjectName: 'ts-library-project' },
},
{
kind: QuickPickItemKind.Separator,
label: 'VSCode Extension',
},
{
label: 'Starter VSCode(Anthony Fu)',
iconPath: {
dark: Uri.file(this.context.asAbsolutePath('resources/vscode.svg')),
light: Uri.file(this.context.asAbsolutePath('resources/vscode.svg')),
},
detail: 'Starter template for VS Code Extension',
template: { id: 'starter-vscode', defaultProjectName: 'vscode-extension-project' },
},
{
kind: QuickPickItemKind.Separator,
label: 'Web Extension',
Expand Down

0 comments on commit 76d5e3a

Please sign in to comment.