Skip to content

Commit 57a8186

Browse files
committed
Add development steps
1 parent d808bfa commit 57a8186

4 files changed

Lines changed: 340 additions & 5089 deletions

File tree

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
/lib
21
node_modules
3-
dist
4-
out
5-
.DS_Store
6-
release
7-
.vscode
8-
.cache

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,17 @@ Quickstart guides for [Google Cloud](doc/admin/install/google_cloud.md), [AWS](d
5050
5151
How to [secure your setup](/doc/security/ssl.md).
5252
53+
## Build
54+
- Run `yarn build ${vscodeVersion}`in this directory (for example, `yarn build 1.35.0`).
55+
5356
## Development
5457
55-
- Clone this as `vs/src/server` in the VS Code source.
56-
- Run `yarn watch-client`in the VS Code root.
57-
- Run `node out/vs/server/main.js`.
58+
- Clone VS Code.
59+
- Clone code-server to `src/vs/server` in the VS Code source.
60+
- Run `yarn` in this directory (only need to do this once).
61+
- Run `yarn watch` in this directory.
62+
- Wait for the initial compilation to complete.
63+
- Run `yarn start` in this directory.
5864
- Visit `http://localhost:8443`.
5965
6066
### Known Issues

package.json

Lines changed: 4 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,10 @@
11
{
2-
"name": "@coder/code-server",
3-
"repository": "https://github.com/cdr/code-server",
4-
"author": "Coder",
5-
"license": "MIT",
6-
"description": "Run VS Code remotely.",
72
"scripts": {
8-
"build:rules": "cd ./rules && tsc -p .",
9-
"packages:install": "cd ./packages && yarn",
10-
"postinstall": "npm-run-all --parallel packages:install build:rules",
11-
"start": "cd ./packages/server && yarn start",
12-
"task": "ts-node -r tsconfig-paths/register build/tasks.ts",
13-
"test": "cd ./packages && yarn test"
3+
"start": "nodemon ../../../out/vs/server/main.js --watch ../../../out --verbose",
4+
"watch": "cd ../../../ && yarn watch-client",
5+
"build": "echo TODO && exit 1"
146
},
157
"devDependencies": {
16-
"@types/fs-extra": "^5.0.4",
17-
"@types/node": "^10.12.18",
18-
"@types/tar": "^4.0.0",
19-
"@types/trash": "^4.3.1",
20-
"cache-loader": "^2.0.1",
21-
"cross-env": "^5.2.0",
22-
"crypto-browserify": "^3.12.0",
23-
"css-loader": "^2.1.0",
24-
"file-loader": "^3.0.1",
25-
"fork-ts-checker-webpack-plugin": "^0.5.2",
26-
"fs-extra": "^7.0.1",
27-
"happypack": "^5.0.1",
28-
"html-webpack-plugin": "^3.2.0",
29-
"http-browserify": "^1.7.0",
30-
"ignore-loader": "^0.1.2",
31-
"mini-css-extract-plugin": "^0.5.0",
32-
"node-sass": "^4.11.0",
33-
"npm-run-all": "^4.1.5",
34-
"path-browserify": "^1.0.0",
35-
"preload-webpack-plugin": "^3.0.0-beta.2",
36-
"sass-loader": "^7.1.0",
37-
"string-replace-loader": "^2.1.1",
38-
"style-loader": "^0.23.1",
39-
"tar": "^4.4.8",
40-
"terser-webpack-plugin": "^1.2.3",
41-
"ts-loader": "^5.3.3",
42-
"ts-node": "^7.0.1",
43-
"tsconfig-paths": "^3.8.0",
44-
"tslib": "^1.9.3",
45-
"tslint": "^5.12.1",
46-
"typescript": "^3.2.2",
47-
"typescript-tslint-plugin": "^0.2.1",
48-
"uglifyjs-webpack-plugin": "^2.1.1",
49-
"url-loader": "^1.1.2",
50-
"util": "^0.11.1",
51-
"webpack": "^4.28.4",
52-
"webpack-bundle-analyzer": "^3.0.3",
53-
"webpack-cli": "^3.2.1",
54-
"webpack-dev-middleware": "^3.5.0",
55-
"webpack-dev-server": "^3.1.14",
56-
"webpack-hot-middleware": "^2.24.3",
57-
"webpack-pwa-manifest": "^4.0.0",
58-
"workbox-webpack-plugin": "^4.1.0",
59-
"write-file-webpack-plugin": "^4.5.0"
60-
},
61-
"resolutions": {
62-
"bindings": "1.3.0"
63-
},
64-
"dependencies": {
65-
"node-loader": "^0.6.0",
66-
"node-pty": "0.8.1",
67-
"spdlog": "0.8.1",
68-
"webpack-merge": "^4.2.1"
8+
"nodemon": "^1.19.1"
699
}
7010
}

0 commit comments

Comments
 (0)