Skip to content

Commit 18092e0

Browse files
committed
scaffolding SvelteKit app
1 parent 2660cdb commit 18092e0

15 files changed

Lines changed: 1055 additions & 0 deletions

File tree

frontend/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
node_modules
2+
3+
# Output
4+
.output
5+
.vercel
6+
.netlify
7+
.wrangler
8+
/.svelte-kit
9+
/build
10+
11+
# OS
12+
.DS_Store
13+
Thumbs.db
14+
15+
# Env
16+
.env
17+
.env.*
18+
!.env.example
19+
!.env.test
20+
21+
# Vite
22+
vite.config.js.timestamp-*
23+
vite.config.ts.timestamp-*

frontend/.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

frontend/.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["svelte.svelte-vscode"]
3+
}

frontend/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# sv
2+
3+
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
4+
5+
## Creating a project
6+
7+
If you're seeing this, you've probably already done this step. Congrats!
8+
9+
```sh
10+
# create a new project
11+
npx sv create my-app
12+
```
13+
14+
To recreate this project with the same configuration:
15+
16+
```sh
17+
# recreate this project
18+
npx sv@0.15.2 create --template minimal --types ts --install npm frontend
19+
```
20+
21+
## Developing
22+
23+
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
24+
25+
```sh
26+
npm run dev
27+
28+
# or start the server and open the app in a new browser tab
29+
npm run dev -- --open
30+
```
31+
32+
## Building
33+
34+
To create a production version of your app:
35+
36+
```sh
37+
npm run build
38+
```
39+
40+
You can preview the production build with `npm run preview`.
41+
42+
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.

0 commit comments

Comments
 (0)