-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1429c30
commit d9377ca
Showing
62 changed files
with
3,148 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.DS_Store | ||
node_modules | ||
/.svelte | ||
/.svelte-kit | ||
/build | ||
/.netlify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference types="@sveltejs/kit" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Oops, something went wrong.