From d6d24966be4cf51b2860751db9e4842ca7cc4038 Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 4 Aug 2020 15:03:22 -0500 Subject: [PATCH] Move vscode JS to a separate file Mostly to match everything else. --- ci/build/build-code-server.sh | 5 ++-- ci/dev/watch.ts | 3 +- src/browser/pages/vscode.html | 49 +------------------------------- src/browser/pages/vscode.ts | 53 +++++++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+), 51 deletions(-) create mode 100644 src/browser/pages/vscode.ts diff --git a/ci/build/build-code-server.sh b/ci/build/build-code-server.sh index 1d2942d9..e1bb0558 100755 --- a/ci/build/build-code-server.sh +++ b/ci/build/build-code-server.sh @@ -21,9 +21,10 @@ main() { --public-url "." \ --out-dir dist \ $([[ $MINIFY ]] || echo --no-minify) \ - src/browser/login.ts \ src/browser/register.ts \ - src/browser/serviceWorker.ts + src/browser/serviceWorker.ts \ + src/browser/pages/login.ts \ + src/browser/pages/vscode.ts } main "$@" diff --git a/ci/dev/watch.ts b/ci/dev/watch.ts index 7e56c186..73823d03 100644 --- a/ci/dev/watch.ts +++ b/ci/dev/watch.ts @@ -165,9 +165,10 @@ class Watcher { private createBundler(out = "dist"): Bundler { return new Bundler( [ - path.join(this.rootPath, "src/browser/login.ts"), path.join(this.rootPath, "src/browser/register.ts"), path.join(this.rootPath, "src/browser/serviceWorker.ts"), + path.join(this.rootPath, "src/browser/pages/login.ts"), + path.join(this.rootPath, "src/browser/pages/vscode.ts"), ], { outDir: path.join(this.rootPath, out), diff --git a/src/browser/pages/vscode.html b/src/browser/pages/vscode.html index 4653698b..e846ec0d 100644 --- a/src/browser/pages/vscode.html +++ b/src/browser/pages/vscode.html @@ -43,47 +43,7 @@ - +