Plan stuff. Log 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.

64 lines
1.2 KiB

5 years ago
  1. # svelte app
  2. This is a project template for [Svelte](https://svelte.dev) apps. It lives at https://github.com/sveltejs/template-webpack.
  3. To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):
  4. ```bash
  5. npx degit sveltejs/template-webpack svelte-app
  6. cd svelte-app
  7. ```
  8. *Note that you will need to have [Node.js](https://nodejs.org) installed.*
  9. ## Get started
  10. Install the dependencies...
  11. ```bash
  12. cd svelte-app
  13. npm install
  14. ```
  15. ...then start webpack:
  16. ```bash
  17. npm run dev
  18. ```
  19. Navigate to [localhost:8080](http://localhost:8080). You should see your app running. Edit a component file in `src`, save it, and the page should reload with your changes.
  20. ## Deploying to the web
  21. ### With [now](https://zeit.co/now)
  22. Install `now` if you haven't already:
  23. ```bash
  24. npm install -g now
  25. ```
  26. Then, from within your project folder:
  27. ```bash
  28. now
  29. ```
  30. As an alternative, use the [Now desktop client](https://zeit.co/download) and simply drag the unzipped project folder to the taskbar icon.
  31. ### With [surge](https://surge.sh/)
  32. Install `surge` if you haven't already:
  33. ```bash
  34. npm install -g surge
  35. ```
  36. Then, from within your project folder:
  37. ```bash
  38. npm run build
  39. surge public
  40. ```