Skip to content

Commit d9377ca

Browse files
committed
Add benchmark dir
1 parent 1429c30 commit d9377ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+3148
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
node_modules
3+
/.svelte
4+
/.svelte-kit
5+
/build
6+
/.netlify
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# hn.svelte.dev
2+
3+
Hacker News clone built with [Svelte](https://svelte.dev) and [SvelteKit](https://kit.svelte.dev) using the [hnpwa-api](https://github.com/davideast/hnpwa-api) by David East.
4+
5+
## Running locally
6+
7+
This example uses a locally built version of SvelteKit, so you'll first need to build the SvelteKit library by running the following from the SvelteKit root directory:
8+
9+
```bash
10+
pnpm install
11+
pnpm build
12+
```
13+
14+
You can then build an run this example, which will be accessible at [localhost:3000](http://localhost:3000):
15+
16+
```bash
17+
cd examples/hn.svelte.dev
18+
pnpm dev
19+
```
20+
21+
To build and start in prod mode:
22+
23+
```bash
24+
pnpm build
25+
pnpm preview
26+
```
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="@sveltejs/kit" />
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[build]
2+
command = "npm run build"
3+
publish = "build"
4+
5+
[build.environment]
6+
NPM_FLAGS="--prefix=/dev/null"
7+
8+
[[plugins]]
9+
package = "/.netlify/netlify-plugin-pnpm"

0 commit comments

Comments
 (0)