auth.andert.me/README.md

39 lines
944 B
Markdown
Raw Permalink Normal View History

2023-07-20 10:53:07 +00:00
# create-svelte
2023-07-20 10:53:07 +00:00
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
2023-07-20 10:53:07 +00:00
## Creating a project
2023-07-20 10:53:07 +00:00
If you're seeing this, you've probably already done this step. Congrats!
2023-07-18 13:36:33 +00:00
```bash
2023-07-20 10:53:07 +00:00
# create a new project in the current directory
npm create svelte@latest
2023-04-15 08:47:35 +00:00
2023-07-20 10:53:07 +00:00
# create a new project in my-app
npm create svelte@latest my-app
2023-07-18 13:36:33 +00:00
```
2023-04-15 08:47:35 +00:00
2023-07-20 10:53:07 +00:00
## Developing
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
2023-04-15 17:05:46 +00:00
2023-07-18 13:36:33 +00:00
```bash
npm run dev
2023-07-20 10:53:07 +00:00
# or start the server and open the app in a new browser tab
npm run dev -- --open
2023-07-18 13:36:33 +00:00
```
2023-07-20 10:53:07 +00:00
## Building
To create a production version of your app:
2023-07-18 13:36:33 +00:00
2023-07-20 10:53:07 +00:00
```bash
npm run build
```
2023-07-18 13:36:33 +00:00
2023-07-20 10:53:07 +00:00
You can preview the production build with `npm run preview`.
2023-07-18 13:36:33 +00:00
2023-07-20 10:53:07 +00:00
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.