diff --git a/dist/src/client/aureliaCLICommands.js b/dist/src/client/aureliaCLICommands.js index 87e0fd0d..683874c0 100644 --- a/dist/src/client/aureliaCLICommands.js +++ b/dist/src/client/aureliaCLICommands.js @@ -13,7 +13,7 @@ const path = require('path'); const fs = require('fs'); class AureliaCliCommands { static registerCommands(outputChannel) { - return vscode.Disposable.from(vscode.commands.registerCommand('extension.auNew', () => this.auNew(outputChannel)), vscode.commands.registerCommand('extension.auGenerate', () => this.auGenerate(outputChannel)), vscode.commands.registerCommand('extension.auBuild', () => this.auBuild(outputChannel)), vscode.commands.registerCommand('extension.auTest', () => this.runCommand(['test'], outputChannel)), vscode.commands.registerCommand('extension.auRun', () => this.runCommand(['run'], outputChannel, 'aurelia-cli'))); + return vscode.Disposable.from(vscode.commands.registerCommand('extension.auNew', () => this.auNew(outputChannel)), vscode.commands.registerCommand('extension.auGenerate', () => this.auGenerate(outputChannel)), vscode.commands.registerCommand('extension.auBuild', () => this.auBuild(outputChannel)), vscode.commands.registerCommand('extension.auTest', () => this.runCommand(['test'], outputChannel)), vscode.commands.registerCommand('extension.auRun', () => this.runCommand(['run'], outputChannel, 'aurelia-cli-run')), vscode.commands.registerCommand('extension.auRunWatch', () => this.runCommand(['run', '--watch'], outputChannel, 'aurelia-cli-run-watch'))); } static auNew(outputChannel) { return __awaiter(this, void 0, void 0, function* () { diff --git a/dist/src/client/aureliaCLICommands.js.map b/dist/src/client/aureliaCLICommands.js.map index 9546e077..a8a6cfca 100644 --- a/dist/src/client/aureliaCLICommands.js.map +++ b/dist/src/client/aureliaCLICommands.js.map @@ -1 +1 @@ -{"version":3,"file":"aureliaCLICommands.js","sourceRoot":"","sources":["../../../src/client/aureliaCLICommands.ts"],"names":[],"mappings":";;;;;;;;;AAAA,MAAY,MAAM,WAAM,QAAQ,CAAC,CAAA;AACjC,MAAY,EAAE,WAAM,eAAe,CAAC,CAAA;AACpC,MAAY,IAAI,WAAM,MAAM,CAAC,CAAA;AAC7B,MAAY,EAAE,WAAM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Y,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QAChE,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,IAAI,aAAa,CAAC,MAAM,CAAU,IAAI,CAAC,CAAC,CAAC;QAC5E,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,IAAI,aAAa,CAAC,MAAM,CAAU,IAAI,CAAC,CAAC,CAAC;QAE5E,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjC,CAAC;IAED,OAAe,oBAAoB,CAAC,IAAc;QAEhD,IAAI,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;QAC3D,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpB,QAAQ,CAAC,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;AACH,CAAC;AAxFD;oCAwFC,CAAA"} \ No newline at end of file diff --git a/package.json b/package.json index bd5af552..1f76861b 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,8 @@ "onCommand:extension.auGenerate", "onCommand:extension.auTest", "onCommand:extension.auBuild", - "onCommand:extension.auRun" + "onCommand:extension.auRun", + "onCommand:extension.auRunWatch" ], "main": "./dist/src/client/main", "contributes": { @@ -69,7 +70,11 @@ { "command": "extension.auRun", "title": "au run" - } + }, + { + "command": "extension.auRunWatch", + "title": "au run --watch" + } ], "themes": [ { diff --git a/src/client/aureliaCLICommands.ts b/src/client/aureliaCLICommands.ts index 7427740d..dfa3e96b 100644 --- a/src/client/aureliaCLICommands.ts +++ b/src/client/aureliaCLICommands.ts @@ -11,7 +11,8 @@ export default class AureliaCliCommands { vscode.commands.registerCommand('extension.auGenerate', () => this.auGenerate(outputChannel)), vscode.commands.registerCommand('extension.auBuild', () => this.auBuild(outputChannel)), vscode.commands.registerCommand('extension.auTest', () => this.runCommand(['test'], outputChannel)), - vscode.commands.registerCommand('extension.auRun', () => this.runCommand(['run'], outputChannel, 'aurelia-cli'))); + vscode.commands.registerCommand('extension.auRun', () => this.runCommand(['run'], outputChannel, 'aurelia-cli-run')), + vscode.commands.registerCommand('extension.auRunWatch', () => this.runCommand(['run', '--watch'], outputChannel, 'aurelia-cli-run-watch'))); } private static async auNew(outputChannel) {