Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```