Skip to content

Commit

Permalink
feat(commands): add au run to command pallet (#24)
Browse files Browse the repository at this point in the history
* feat(aureliaCLICommands): add au run to command pallet

Add au run command to the command pallet.

feat(aureliaCLICommands): add au run to command pallet

Add au run command to the command pallet.

feat(aureliaCLICommands): add au run to command pallet

Add au run command to the command pallet

* feat(package.json): add auRun to activationEvent

Needed to expose auRun command via activationEvents.
  • Loading branch information
Steve Hartzog authored and Erik Lieben committed Nov 19, 2016
1 parent ba7437f commit 4d2efd8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/src/client/aureliaCLICommands.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/client/aureliaCLICommands.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"onCommand:extension.auNew",
"onCommand:extension.auGenerate",
"onCommand:extension.auTest",
"onCommand:extension.auBuild"
"onCommand:extension.auBuild",
"onCommand:extension.auRun"
],
"main": "./dist/src/client/main",
"contributes": {
Expand All @@ -64,6 +65,10 @@
{
"command": "extension.auTest",
"title": "au test"
},
{
"command": "extension.auRun",
"title": "au run"
}
],
"themes": [
Expand Down
3 changes: 2 additions & 1 deletion src/client/aureliaCLICommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export default class AureliaCliCommands {
vscode.commands.registerCommand('extension.auNew', () => this.auNew(outputChannel)),
vscode.commands.registerCommand('extension.auGenerate', () => this.auGenerate(outputChannel)),
vscode.commands.registerCommand('extension.auTest', () => this.runCommand(['test'], outputChannel, false)),
vscode.commands.registerCommand('extension.auBuild', () => this.auBuild(outputChannel)));
vscode.commands.registerCommand('extension.auBuild', () => this.auBuild(outputChannel)),
vscode.commands.registerCommand('extension.auRun', () => this.runCommand(['run'], outputChannel, true)));
}

private static async auNew(outputChannel) {
Expand Down

0 comments on commit 4d2efd8

Please sign in to comment.