web - scaffold a basic dev setup via "yarn web"

This commit is contained in:
Benjamin Pasero
2019-05-09 13:13:27 +02:00
parent 7006ca0772
commit 4b5c68c1bd
16 changed files with 197 additions and 112 deletions

12
scripts/code-web.js Normal file
View File

@@ -0,0 +1,12 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
const httpServer = require('http-server');
const opn = require('opn');
httpServer.createServer({ root: '.', cache: 5 }).listen(8080);
console.log('LISTENING on 8080');
opn('http://127.0.0.1:8080/out/vs/code/browser/workbench/workbench.html');