Skip to content

Commit 114132f

Browse files
authored
copy sveltekit example from vercel/vercel (#1036)
1 parent 83b6133 commit 114132f

31 files changed

+2565
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
.vercel
10+
.output
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DS_Store
2+
node_modules
3+
/build
4+
/.svelte-kit
5+
/package
6+
.env
7+
.env.*
8+
!.env.example
9+
10+
# Ignore files for PNPM, NPM and YARN
11+
pnpm-lock.yaml
12+
package-lock.json
13+
yarn.lock
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"useTabs": false,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100
6+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# SvelteKit
2+
3+
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte), deployed to [Vercel](https://vercel.com).
4+
5+
## Deploy Your Own
6+
7+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fvercel%2Ftree%2Fmain%2Fexamples%2Fsveltekit&project-name=sveltekit-vercel&repository-name=sveltekit-vercel&demo-title=SvelteKit%20%2B%20Vercel&demo-description=A%20SvelteKit%20app%20optimized%20Edge-first.&demo-url=https%3A%2F%2Fsveltekit-template.vercel.app%2F)
8+
9+
_Live Example: https://sveltekit-template.vercel.app_
10+
11+
## Developing
12+
13+
Once you've installed dependencies with `pnpm install`, start a development server:
14+
15+
```bash
16+
pnpm run dev
17+
18+
# or start the server and open the app in a new browser tab
19+
pnpm run dev -- --open
20+
```
21+
22+
## Building
23+
24+
To create a production version of your app:
25+
26+
```bash
27+
pnpm run build
28+
```
29+
30+
You can preview the production build with `npm run preview`.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"extends": "./.svelte-kit/tsconfig.json",
3+
"compilerOptions": {
4+
"allowJs": true,
5+
"checkJs": true,
6+
"esModuleInterop": true,
7+
"forceConsistentCasingInFileNames": true,
8+
"resolveJsonModule": true,
9+
"skipLibCheck": true,
10+
"sourceMap": true,
11+
"strict": true
12+
}
13+
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and https://kit.svelte.dev/docs/configuration#files
14+
//
15+
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
16+
// from the referenced tsconfig.json - TypeScript does not merge them in
17+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"dev": "vite dev",
5+
"build": "vite build",
6+
"package": "svelte-kit package",
7+
"preview": "vite preview",
8+
"check": "svelte-check --tsconfig ./jsconfig.json",
9+
"check:watch": "svelte-check --tsconfig ./jsconfig.json --watch",
10+
"lint": "prettier --check .",
11+
"format": "prettier --write ."
12+
},
13+
"devDependencies": {
14+
"@sveltejs/adapter-auto": "1.0.0-next.65",
15+
"@sveltejs/kit": "1.0.0-next.428",
16+
"@types/cookie": "^0.5.1",
17+
"prettier": "^2.6.2",
18+
"prettier-plugin-svelte": "^2.7.0",
19+
"svelte": "^3.46.0",
20+
"svelte-check": "^2.7.1",
21+
"typescript": "^4.7.4",
22+
"vite": "^3.0.8"
23+
},
24+
"type": "module",
25+
"dependencies": {
26+
"@fontsource/fira-mono": "^4.5.0",
27+
"cookie": "^0.4.1",
28+
"web-vitals": "^2.1.4"
29+
}
30+
}

0 commit comments

Comments
 (0)