Skip to content

Commit

Permalink
Update VSCode 1.52.0 + removed http-server
Browse files Browse the repository at this point in the history
  • Loading branch information
Felx-B committed Dec 12, 2020
1 parent 8e72266 commit cf79df9
Show file tree
Hide file tree
Showing 8 changed files with 712 additions and 261 deletions.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const fse = require("fs-extra");
const glob = require("glob");
const rmdir = require('rimraf');

const vscodeVersion = "1.51.1";
const vscodeVersion = "1.52.0";

if (!fs.existsSync("vscode")) {
child_process.execSync("git clone https://github.com/microsoft/vscode.git", {
Expand Down
10 changes: 10 additions & 0 deletions demo/http.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var express = require('express')
var serveStatic = require('serve-static')

var staticBasePath = './demo';

var app = express()

app.use(serveStatic(staticBasePath))
app.listen(8080)
console.log('Listening on port 8080');
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "vscode-web",
"version": "1.51.1",
"version": "1.52.0",
"description": "Visual Studio Code for browser",
"files": ["dist/*"],
"scripts": {
"build": "node build.js",
"prepare-demo": "node prepare-demo.js",
"demo": "http-server ./demo --cors"
"demo": "node ./demo/http.js"
},
"repository": {
"type": "git",
Expand All @@ -19,9 +19,9 @@
},
"homepage": "https://github.com/Felx-B/vscode-web#readme",
"devDependencies": {
"express": "^4.17.1",
"fs-extra": "^9.0.1",
"glob": "^7.1.6",
"http-server": "^0.12.3",
"rimraf": "^3.0.2",
"semver-umd": "^5.5.7",
"vscode-oniguruma": "^1.4.0",
Expand Down
10 changes: 10 additions & 0 deletions sample/http.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
var express = require('express')
var serveStatic = require('serve-static')

var staticBasePath = './';

var app = express()

app.use(serveStatic(staticBasePath))
app.listen(8080)
console.log('Listening on port 8080');
2 changes: 1 addition & 1 deletion sample/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8" />
<title>VSCode Web Sample< /title>
<title>VSCode Web Sample</title>

<!-- Disable pinch zooming -->
<meta
Expand Down
8 changes: 4 additions & 4 deletions sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"version": "1.0.0",
"description": "VSCode web sample without FileSystemProvider",
"scripts": {
"sample": "http-server ."
"sample": "node ./http.js"
},
"author": "",
"license": "MIT",
"dependencies": {
"http-server": "^0.12.3",
"vscode-web": "^1.51.0",
"express": "^4.17.1",
"semver-umd": "^5.5.7",
"vscode-oniguruma": "^1.4.0",
"vscode-textmate": "^5.2.0"
"vscode-textmate": "^5.2.0",
"vscode-web": "^1.51.1"
}
}

0 comments on commit cf79df9

Please sign in to comment.