Skip to content
The Svelte v2 website
HTML JavaScript CSS
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
client start implementing sessions Mar 24, 2018
content update Sapper links to point to sapper-legacy May 24, 2019
src update Sapper links to point to sapper-legacy May 24, 2019
static bake in latest version of svelte-app template for v2 Apr 22, 2019
.eslintignore
.eslintrc.json
.gitignore bake in latest version of svelte-app template for v2 Apr 22, 2019
.travis.yml attempt to deploy from CI Mar 29, 2018
LICENSE svelte.technology -> v2.svelte.dev Apr 21, 2019
README.md svelte.technology -> v2.svelte.dev Apr 21, 2019
now.json svelte.technology -> v2.svelte.dev Apr 21, 2019
package-lock.json update now Jan 12, 2019
package.json bake in latest version of svelte-app template for v2 Apr 22, 2019
webpack.config.js temporary fix to prevent HMR on production (#370) Nov 8, 2018

README.md

v2.svelte.dev

The website for Svelte v2.

Note

This is the repo for the Svelte v2 site. The Svelte v3 site lives in the site directory of the main Svelte repo.

Running locally

This project uses yarn to manage dependencies.

Set up the project:

git clone git@github.com:sveltejs/v2.svelte.dev.git
cd v2.svelte.dev
yarn

Start the server with yarn run dev, and navigate to localhost:3000.

Using a local copy of Svelte

By default, the REPL will fetch the most recent version of Svelte from https://unpkg.com/svelte. If you need to test a local version of Svelte, you can do so by linking it and navigating to localhost:3000/repl?version=local:

cd /path/to/svelte
yarn link
yarn dev # rebuild Svelte on changes

cd /path/to/v2.svelte.dev
yarn link svelte
yarn dev

REPL GitHub integration

In order for the REPL's GitHub integration to work properly when running locally, you will need to create a GitHub OAuth app. Set its authorization callback URL to http://localhost:3000/auth/callback, and in the root of this project, create a file .env containing:

GITHUB_CLIENT_ID=[your app's client id]
GITHUB_CLIENT_SECRET=[your app's client secret]
BASEURL=http://localhost:3000

License

MIT

You can’t perform that action at this time.