Add build scripts

This commit is contained in:
Asher
2019-07-02 19:10:17 -05:00
parent 61c281ec6b
commit 5677ff2edf
11 changed files with 374 additions and 88 deletions

View File

@ -51,13 +51,19 @@ Quickstart guides for [Google Cloud](doc/admin/install/google_cloud.md), [AWS](d
How to [secure your setup](/doc/security/ssl.md).
## Build
- Run `yarn build ${vscodeVersion}`in this directory (for example, `yarn build 1.35.0`).
- If you also plan on developing, set the `OUT` environment variable: `
export OUT=/path/to/some/directory`. Otherwise it will build in this
directory which will cause issues because then `yarn watch` will try to
compile the build directory as well.
- Run `yarn build ${vscodeVersion} ${target} ${arch}`in this directory (for example:
`yarn build 1.35.0 linux x64`).
## Development
- Clone VS Code.
- Clone code-server to `src/vs/server` in the VS Code source.
- Run `yarn` in this directory (only need to do this once).
- Run `yarn` in the VS Code root directory.
- Clone this repository to `src/vs/server` in the VS Code source.
- Run `yarn` in this directory.
- Run `yarn watch` in this directory.
- Wait for the initial compilation to complete.
- Run `yarn start` in this directory.