code-server has several yarn tasks for building the entire binary or specific portions of the app. This guide provides steps to do the aforementioned tasks. Coder recommends having Node 10.15.1+ installed.
NOTE: Windows compatibility is in the works
Yarn installation: https://yarnpkg.com/lang/en/docs/install
- Clone the repository
cd
intocode-server
- Run
yarn
- Run
yarn task build:server:binary
Binary will be placed in
packages/server
named after the platform and architecture (cli-darwin-x64
)
- Clone the repository
cd
intocode-server
- Run
yarn
- Run
yarn start
If you run into issues with websocket disconnects, run with
yarn start --no-auth
- bootstrap-fork: Forks VS Code sub-processes such as the shared process, extension host, searcher, and watcher
yarn task build:bootstrap-fork
- binary package: Packages existing built files with nbin
yarn task build:server:binary:package
- binary copy: Copies all existing built files into a single directory
yarn task build:server:binary:copy
- app browser: Builds the login page for authenticated servers
yarn task build:app:browser
- web: Builds the VS Code editor
yarn task build:web
- vscode install: Downloads and extracts the correct VS Code version. If the version exists, runs
git reset --hard
yarn task vscode:install
- vscode patch: Patches VS Code for the browser
yarn task vscode:patch
VS Code must be downloaded and extracted first with the
vscode:install
- package: Packages code-server for release in
.gz
and.zip
formatyarn task package
- bundle: Runs all yarn task with the exception of
package
yarn task build:server:bundle