Skip to content

Commit

Permalink
feat(commands): add au run --watch to command pallet
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-lieben committed Nov 21, 2016
1 parent 6468338 commit 672c5bd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 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.

9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -69,7 +70,11 @@
{
"command": "extension.auRun",
"title": "au run"
}
},
{
"command": "extension.auRunWatch",
"title": "au run --watch"
}
],
"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.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) {
Expand Down

0 comments on commit 672c5bd

Please sign in to comment.