Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dahnielson/pwa-svelte-rollup-template
Template for Svelte PWA
https://github.com/dahnielson/pwa-svelte-rollup-template
babel eslint pwa rollup standardjs svelte template
Last synced: 3 months ago
JSON representation
Template for Svelte PWA
- Host: GitHub
- URL: https://github.com/dahnielson/pwa-svelte-rollup-template
- Owner: dahnielson
- Archived: true
- Created: 2019-05-17T07:38:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-17T10:49:42.000Z (over 5 years ago)
- Last Synced: 2024-06-27T13:33:42.497Z (4 months ago)
- Topics: babel, eslint, pwa, rollup, standardjs, svelte, template
- Language: JavaScript
- Homepage:
- Size: 114 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Template for Svelte PWA
To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):
```bash
npx degit dahnielson/pwa-svelte-rollup-template svelte-app
cd svelte-app
```*Note that you will need to have [Node.js](https://nodejs.org) installed.*
## Get started
Install the dependencies...
```bash
cd svelte-app
yarn install
```...then start [Rollup](https://rollupjs.org):
```bash
yarn start
```Navigate to [localhost:5000](http://localhost:5000). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes.
## Deploying to the web
### With [now](https://zeit.co/now)
Install `now` if you haven't already:
```bash
yarn global install now
```Then, from within your project folder:
```bash
now
```As an alternative, use the [Now desktop client](https://zeit.co/download) and simply drag the unzipped project folder to the taskbar icon.
### With [surge](https://surge.sh/)
Install `surge` if you haven't already:
```bash
yarn global install surge
```Then, from within your project folder:
```bash
yarn build
surge public
```