Skip to content

Commit

Permalink
feat: support create-svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
yrming committed Jan 2, 2024
1 parent 173a943 commit 1c79d9b
Show file tree
Hide file tree
Showing 7 changed files with 263 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Kickstart your project with a Starter Template in VSCode

<p align="center">
<img width="1192" alt="Preview 1" src="./resources/preview1.png">

<img width="1192" alt="Preview 2" src="./resources/preview2.png">
</p>

Expand All @@ -41,6 +42,7 @@ Kickstart your project with a Starter Template in VSCode
- [Vitesse](https://github.com/antfu/vitesse) - Opinionated starter template.
- [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.
- [Create Svelte](https://github.com/sveltejs/kit/tree/main/packages/create-svelte) - Create new SvelteKit projects.
- [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
61 changes: 60 additions & 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.7.0",
"version": "0.8.0",
"description": "Kickstart your project with a Starter Template in VSCode",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -162,6 +162,62 @@
"scope": "window"
}
}
},
{
"title": "Create Svelte(Official)",
"order": 4,
"properties": {
"starterTemplates.createSvelte.whichAppTemplate": {
"enum": [
"default",
"skeleton",
"skeletonlib"
],
"default": "default",
"description": "Which Svelte app template?",
"scope": "window"
},
"starterTemplates.createSvelte.addTypeCheckingWith": {
"enum": [
"checkjs",
"typescript",
"no"
],
"default": "typescript",
"markdownDescription": "Add type checking with TypeScript?",
"scope": "window"
},
"starterTemplates.createSvelte.needsEslint": {
"type": "boolean",
"default": true,
"markdownDescription": "Add ESLint for code linting?",
"scope": "window"
},
"starterTemplates.createSvelte.needsPrettier": {
"type": "boolean",
"default": true,
"markdownDescription": "Add Prettier for code formatting?",
"scope": "window"
},
"starterTemplates.createSvelte.needsPlaywright": {
"type": "boolean",
"default": true,
"markdownDescription": "Add Playwright for browser testing?",
"scope": "window"
},
"starterTemplates.createSvelte.needsVitest": {
"type": "boolean",
"default": true,
"markdownDescription": "Add Vitest for unit testing?",
"scope": "window"
},
"starterTemplates.createSvelte.trySvelte5Preview": {
"type": "boolean",
"default": true,
"markdownDescription": "Try the Svelte 5 preview (unstable!)?",
"scope": "window"
}
}
}
]
},
Expand All @@ -178,16 +234,19 @@
"devDependencies": {
"@antfu/eslint-config": "^2.4.6",
"@types/degit": "^2.8.6",
"@types/fs-extra": "^11.0.4",
"@types/mocha": "^10.0.6",
"@types/node": "18.x",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.13.1",
"@typescript-eslint/parser": "^6.13.1",
"@vscode/test-cli": "^0.0.4",
"@vscode/test-electron": "^2.3.8",
"create-svelte": "^6.0.5",
"degit": "^2.8.4",
"eslint": "^8.54.0",
"execa": "^8.0.1",
"fs-extra": "^11.2.0",
"nypm": "^0.3.3",
"tsup": "^8.0.1",
"typescript": "^5.3.2",
Expand Down
78 changes: 78 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions resources/svelte.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1c79d9b

Please sign in to comment.