Loggest thy stuff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
970 B

3 years ago
  1. # create-svelte
  2. Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).
  3. ## Creating a project
  4. If you're seeing this, you've probably already done this step. Congrats!
  5. ```bash
  6. # create a new project in the current directory
  7. npm init svelte@next
  8. # create a new project in my-app
  9. npm init svelte@next my-app
  10. ```
  11. > Note: the `@next` is temporary
  12. ## Developing
  13. Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
  14. ```bash
  15. npm run dev
  16. # or start the server and open the app in a new browser tab
  17. npm run dev -- --open
  18. ```
  19. ## Building
  20. To create a production version of your app:
  21. ```bash
  22. npm run build
  23. ```
  24. You can preview the production build with `npm run preview`.
  25. > To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.