CONTRIBUTING.md 1.0 KB
Newer Older
A
Anmol Sethi 已提交
1 2
# Contributing

3 4 5
- [Detailed CI and build process docs](../ci)
- [Our VS Code Web docs](../src/node/app)

A
Anmol Sethi 已提交
6 7 8 9 10 11 12 13 14 15
## Development Workflow

- [VS Code prerequisites](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#prerequisites)

```shell
yarn
yarn vscode
yarn watch # Visit http://localhost:8080 once completed.
```

16 17 18
To develop inside of an isolated docker container:

```shell
19
./ci/dev/container/exec.sh
20 21 22 23 24 25

root@12345:/code-server# yarn
root@12345:/code-server# yarn vscode
root@12345:/code-server# yarn watch
```

A
Anmol Sethi 已提交
26 27 28 29 30 31 32 33 34 35 36 37 38 39
Any changes made to the source will be live reloaded.

If changes are made to the patch and you've built previously you must manually
reset VS Code then run `yarn vscode:patch`.

Some docs are available at [../src/node/app](../src/node/app) on how code-server
works internally.

## Build

- [VS Code prerequisites](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#prerequisites)

```shell
yarn
40
yarn vscode
A
Anmol Sethi 已提交
41
yarn build
42 43
yarn build:vscode
yarn release
44 45 46
cd release
yarn --production
node . # Run the built JavaScript with Node.
A
Anmol Sethi 已提交
47
```