Skip to content

Commit aff737a

Browse files
committed
simplifies code contributions by fully automating the dev setup with gitpod.
1 parent cdc0270 commit aff737a

File tree

5 files changed

+55
-0
lines changed

5 files changed

+55
-0
lines changed

.gitpod.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM gitpod/workspace-full
2+
3+
USER gitpod
4+
5+
RUN sudo apt-get update && \
6+
sudo apt-get install -yq chromium-browser && \
7+
sudo rm -rf /var/lib/apt/lists/*

.gitpod.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
image:
2+
file: .gitpod.Dockerfile
3+
tasks:
4+
- init: >
5+
cd site &&
6+
npm install &&
7+
sed -ri "s/http:\/\/\\\$\\{window\.location\.hostname\\}:\\\$\\{port\\}\/__sapper__/$(gp url 10000 | sed "s_/_\\\\/_g")\/__sapper__/" ./node_modules/sapper/sapper-dev-client.js &&
8+
npm run update
9+
command: npm run dev
10+
- init: npm install
11+
command: npm run dev
12+
ports:
13+
- port: 3000
14+
onOpen: open-preview
15+
- port: 10000
16+
onOpen: ignore
17+
18+
vscode:
19+
extensions:
20+
- [email protected]:aicIqbjKmEBw3n8OhIUmwA==

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Svelte changelog
22

3+
## 3.20.1
4+
5+
* Fix compiler regression with slots ([#4562](https://github.com/sveltejs/svelte/issues/4562))
6+
37
## 3.20.0
48

59
* Allow destructuring in `{#await}` blocks ([#1851](https://github.com/sveltejs/svelte/issues/1851))

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ When [opening a new issue](https://github.com/sveltejs/svelte/issues/new/choose)
4949
1. After cloning the repository, run `npm install` in the root of the repository.
5050
1. To start a development server, run `npm run dev`.
5151

52+
## Online one-click setup for contributing
53+
54+
You can use Gitpod (a free online VS Code like-IDE) for contributing. With a single click it will launch a workspace and automatically:
55+
56+
- clone the svelte repo.
57+
- install the dependencies.
58+
- run `npm run dev` in `/` and `/site`.
59+
60+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/sveltejs/svelte)
61+
5262

5363
## Pull requests
5464

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
<img alt="Cybernetically enhanced web apps: Svelte" src="https://sveltejs.github.io/assets/banner.png">
44
</a>
55

6+
<a href="https://gitpod.io/#https://github.com/sveltejs/svelte">
7+
<img alt="Gitpod Ready-to-Code" src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod">
8+
</a>
9+
610
<a href="https://www.npmjs.com/package/svelte">
711
<img src="https://img.shields.io/npm/v/svelte.svg" alt="npm version">
812
</a>
@@ -51,6 +55,16 @@ To watch for changes and continually rebuild the package (this is useful if you'
5155
npm run dev
5256
```
5357

58+
### Online setup with one-click
59+
60+
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:
61+
62+
- clone the svelte repo.
63+
- install the dependencies.
64+
- run `npm run dev` in `/` and `/site`.
65+
66+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/sveltejs/svelte)
67+
5468
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.
5569

5670

0 commit comments

Comments
 (0)