Skip to content

Commit 4269fd3

Browse files
committed
feat: start script generator
1 parent 483d86b commit 4269fd3

File tree

9 files changed

+568
-445
lines changed

9 files changed

+568
-445
lines changed

.prettierrc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,20 @@
33
"singleQuote": false,
44
"semi": true,
55
"trailingComma": "es5",
6-
"plugins": ["prettier-plugin-astro", "prettier-plugin-organize-imports"],
6+
"plugins": ["prettier-plugin-astro", "prettier-plugin-svelte", "prettier-plugin-organize-imports"],
77
"organizeImportsSkipDestructiveCodeActions": true,
88
"overrides": [
99
{
1010
"files": "*.astro",
1111
"options": {
1212
"parser": "astro"
1313
}
14+
},
15+
{
16+
"files": "*.svelte",
17+
"options": {
18+
"parser": "svelte"
19+
}
1420
}
1521
]
1622
}

astro.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import starlight from "@astrojs/starlight";
2+
import svelte from "@astrojs/svelte";
23
import d2 from "astro-d2";
34
import { defineConfig } from "astro/config";
45
import starlightLinksValidator from "starlight-links-validator";
@@ -366,6 +367,7 @@ export default defineConfig({
366367
),
367368
],
368369
}),
370+
svelte(),
369371
d2({
370372
pad: 50,
371373
skipGeneration: !prod, // comment out if you have D2 locally and want to use it during dev

old/src/components/StartScriptGenerator.tsx

Lines changed: 0 additions & 259 deletions
This file was deleted.

0 commit comments

Comments
 (0)