提交 471425ca 编写于 作者: J Joao Moreno

streamline build

上级 c90991d8
...@@ -12,6 +12,8 @@ import { IChannel } from 'vs/base/parts/ipc/common/ipc'; ...@@ -12,6 +12,8 @@ import { IChannel } from 'vs/base/parts/ipc/common/ipc';
export const ID = 'driverService'; export const ID = 'driverService';
export const IDriver = createDecorator<IDriver>(ID); export const IDriver = createDecorator<IDriver>(ID);
// !! Do not remove the following START and END markers, they are parsed by the smoketest build
//*START //*START
export interface IElement { export interface IElement {
tagName: string; tagName: string;
......
...@@ -4,8 +4,12 @@ ...@@ -4,8 +4,12 @@
"main": "./src/main.js", "main": "./src/main.js",
"scripts": { "scripts": {
"postinstall": "npm run compile", "postinstall": "npm run compile",
"compile": "node tools/prebuild && tsc && node tools/postbuild", "compile": "npm run copy-driver && npm run copy-driver-definition && tsc",
"watch": "node tools/prebuild && node tools/postbuild && tsc --watch", "watch": "concurrently \"npm run watch-driver\" \"npm run watch-driver-definition\" \"tsc --watch\"",
"copy-driver": "cpx src/vscode/driver.js out/vscode",
"watch-driver": "cpx src/vscode/driver.js out/vscode -w",
"copy-driver-definition": "node tools/copy-driver-definition.js",
"watch-driver-definition": "watch \"node tools/copy-driver-definition.js\" ../../src/vs/platform/driver/common",
"mocha": "mocha" "mocha": "mocha"
}, },
"devDependencies": { "devDependencies": {
...@@ -16,6 +20,8 @@ ...@@ -16,6 +20,8 @@
"@types/node": "8.0.33", "@types/node": "8.0.33",
"@types/rimraf": "2.0.2", "@types/rimraf": "2.0.2",
"@types/webdriverio": "4.6.1", "@types/webdriverio": "4.6.1",
"concurrently": "^3.5.1",
"cpx": "^1.5.0",
"electron": "1.7.7", "electron": "1.7.7",
"htmlparser2": "^3.9.2", "htmlparser2": "^3.9.2",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
...@@ -26,6 +32,7 @@ ...@@ -26,6 +32,7 @@
"spectron": "^3.7.2", "spectron": "^3.7.2",
"strip-json-comments": "^2.0.1", "strip-json-comments": "^2.0.1",
"tmp": "0.0.33", "tmp": "0.0.33",
"typescript": "2.5.2" "typescript": "2.5.2",
"watch": "^1.0.2"
} }
} }
\ No newline at end of file
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
const fs = require('fs');
const path = require('path');
const root = path.dirname(__dirname);
const driverPath = path.join(root, 'src/vscode/driver.js');
const driver = fs.readFileSync(driverPath);
const outDriverPath = path.join(root, 'out/vscode/driver.js');
fs.writeFileSync(outDriverPath, driver);
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册