Skip to content

simplifies code contributions by fully automating the dev setup #4277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM gitpod/workspace-full

USER gitpod

RUN sudo apt-get update && \
sudo apt-get install -yq chromium-browser && \
sudo rm -rf /var/lib/apt/lists/*
20 changes: 20 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
image:
file: .gitpod.Dockerfile
tasks:
- init: >
cd site &&
npm install &&
sed -ri "s/http:\/\/\\\$\\{window\.location\.hostname\\}:\\\$\\{port\\}\/__sapper__/$(gp url 10000 | sed "s_/_\\\\/_g")\/__sapper__/" ./node_modules/sapper/sapper-dev-client.js &&
npm run update
command: npm run dev
- init: npm install
command: npm run dev
ports:
- port: 3000
onOpen: open-preview
- port: 10000
onOpen: ignore

vscode:
extensions:
- [email protected]:aicIqbjKmEBw3n8OhIUmwA==
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Svelte changelog

## 3.20.1

* Fix compiler regression with slots ([#4562](https://github.com/sveltejs/svelte/issues/4562))

## 3.20.0

* Allow destructuring in `{#await}` blocks ([#1851](https://github.com/sveltejs/svelte/issues/1851))
Expand Down
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ When [opening a new issue](https://github.com/sveltejs/svelte/issues/new/choose)
1. After cloning the repository, run `npm install` in the root of the repository.
1. To start a development server, run `npm run dev`.

## Online one-click setup for contributing

You can use Gitpod (a free online VS Code like-IDE) for contributing. With a single click it will launch a workspace and automatically:

- clone the svelte repo.
- install the dependencies.
- run `npm run dev` in `/` and `/site`.

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/sveltejs/svelte)


## Pull requests

Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<img alt="Cybernetically enhanced web apps: Svelte" src="https://sveltejs.github.io/assets/banner.png">
</a>

<a href="https://gitpod.io/#https://github.com/sveltejs/svelte">
<img alt="Gitpod Ready-to-Code" src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod">
</a>

<a href="https://www.npmjs.com/package/svelte">
<img src="https://img.shields.io/npm/v/svelte.svg" alt="npm version">
</a>
Expand Down Expand Up @@ -51,6 +55,16 @@ To watch for changes and continually rebuild the package (this is useful if you'
npm run dev
```

### Online setup with one-click

You can use Gitpod (a free online VS Code like-IDE) for the online setup. With a single click it will launch a workspace and automatically:

- clone the svelte repo.
- install the dependencies.
- run `npm run dev` in `/` and `/site`.

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/sveltejs/svelte)

The compiler is written in [TypeScript](https://www.typescriptlang.org/), but don't let that put you off — it's basically just JavaScript with type annotations. You'll pick it up in no time. If you're using an editor other than [Visual Studio Code](https://code.visualstudio.com/) you may need to install a plugin in order to get syntax highlighting and code hints etc.


Expand Down