Skip to content

Commit 21b80a1

Browse files
committed
meta: init website
1 parent 11f576f commit 21b80a1

File tree

7 files changed

+53
-3
lines changed

7 files changed

+53
-3
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ Clone this repository, setup and run the build script
2929
git clone https://github.com/sveltejs/svelte-devtools.git
3030
cd svelte-devtools
3131
pnpm install
32-
pnpm build
32+
33+
cd workspace/extension
34+
pnpm dev
3335
```
3436

3537
This will build the codebase and output all the required files in the `build` directory. To load the extension for development, follow these steps:

workspace/website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"scripts": {
55
"dev": "vite dev",
66
"build": "svelte-kit sync && vite build",
7-
"format": "prettier --write .",
7+
"format": "prettier -w .",
88
"check": "pnpm run \"/^check:.*/\"",
9-
"check:style": "prettier --check .",
9+
"check:style": "prettier -c .",
1010
"check:svelte": "svelte-kit sync && svelte-check src --tsconfig ./tsconfig.json"
1111
},
1212
"devDependencies": {

workspace/website/src/app.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
declare global {
2+
namespace App {
3+
// interface Error {}
4+
// interface Locals {}
5+
interface PageData {
6+
meta: {
7+
title: string;
8+
description?: string;
9+
};
10+
}
11+
}
12+
}

workspace/website/src/app.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
7+
8+
<link rel="icon" type="image/png" href="%sveltekit.assets%/favicon.png" />
9+
10+
%sveltekit.head%
11+
</head>
12+
13+
<body data-sveltekit-preload-data="hover" data-sveltekit-preload-code="viewport">
14+
<div style="display: contents">%sveltekit.body%</div>
15+
</body>
16+
</html>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { json } from '@sveltejs/kit';
2+
3+
const base = 'https://github.com/sveltejs/svelte-devtools/releases/download';
4+
const updates = ['2.2.0'];
5+
6+
export async function GET() {
7+
return json({
8+
addons: {
9+
10+
updates: updates.map((v) => {
11+
const link = `${base}/v${v}/svelte-devtools.xpi`;
12+
return { version: v, update_link: link };
13+
}),
14+
},
15+
},
16+
});
17+
}
1.34 KB
Loading
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

0 commit comments

Comments
 (0)