Skip to content

Commit

Permalink
Add benchmark dir
Browse files Browse the repository at this point in the history
  • Loading branch information
winston0410 committed Aug 25, 2021
1 parent 1429c30 commit d9377ca
Show file tree
Hide file tree
Showing 62 changed files with 3,148 additions and 0 deletions.
6 changes: 6 additions & 0 deletions benchmark/hn.svelte.dev-with-glory/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
node_modules
/.svelte
/.svelte-kit
/build
/.netlify
26 changes: 26 additions & 0 deletions benchmark/hn.svelte.dev-with-glory/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# hn.svelte.dev

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.

## Running locally

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:

```bash
pnpm install
pnpm build
```

You can then build an run this example, which will be accessible at [localhost:3000](http://localhost:3000):

```bash
cd examples/hn.svelte.dev
pnpm dev
```

To build and start in prod mode:

```bash
pnpm build
pnpm preview
```
1 change: 1 addition & 0 deletions benchmark/hn.svelte.dev-with-glory/globals.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="@sveltejs/kit" />
9 changes: 9 additions & 0 deletions benchmark/hn.svelte.dev-with-glory/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[build]
command = "npm run build"
publish = "build"

[build.environment]
NPM_FLAGS="--prefix=/dev/null"

[[plugins]]
package = "/.netlify/netlify-plugin-pnpm"
Loading

0 comments on commit d9377ca

Please sign in to comment.