Skip to content

Commit

Permalink
chore: vscode template support git
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgao365 committed Jun 6, 2024
1 parent 616027e commit 884780c
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ function handleFinalPkg(pkg: PackageJson, appType: AppType, variant: FrameworkVa
if (pkg.private === false) {
delete pkg.private;
}

if (!variant.userOptions.gitUserUrl) {
delete pkg.repository;
}
}

function copyTemplateFiles(appType: AppType, variant: FrameworkVariant, dir?: string) {
Expand Down
Binary file modified templates/base/vscode/resources/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions templates/base/vscode/resources/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 6 additions & 3 deletions templates/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,20 @@
"variants": [
{
"name": "vscode",
"display": "Base"
"display": "Base",
"git": 2
},
{
"name": "vscode-vue",
"display": "Vue",
"templates": ["base/style", "base/vue", "base/vscode"]
"templates": ["base/style", "base/vue", "base/vscode"],
"git": 2
},
{
"name": "vscode-react",
"display": "React",
"templates": ["base/style", "base/react", "base/vscode"]
"templates": ["base/style", "base/react", "base/vscode"],
"git": 2
}
]
}
Expand Down
Binary file modified templates/vscode/resources/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions templates/vscode/resources/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 884780c

Please sign in to comment.