diff options
-rw-r--r-- | .vscode/tasks.json | 45 | ||||
-rw-r--r-- | README.rst | 6 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..c15d7a457 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,45 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Vagrant: Start Local Server", + "type": "shell", + "command": "vagrant up", + "group": "none", + "problemMatcher": [] + }, + { + "label": "Vagrant: Suspend Local Server", + "type": "shell", + "command": "vagrant suspend", + "group": "none", + "problemMatcher": [] + }, + { + "label": "Vagrant: Update Local Server", + "type": "shell", + "command": "vagrant rsync && vagrant provision --provision-with update", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + }, + { + "label": "Vagrant: Force Update Local Server", + "type": "shell", + "command": "vagrant rsync && vagrant provision", + "group": "build", + "problemMatcher": [] + }, + { + "label": "Vagrant: Update Perl Dependencies", + "type": "shell", + "command": "vagrant ssh web -c bmo-refresh-bundle", + "group": "none", + "problemMatcher": [] + } + ] +} diff --git a/README.rst b/README.rst index d8986fc73..985be314e 100644 --- a/README.rst +++ b/README.rst @@ -80,6 +80,12 @@ or db is changed, do a full provision: vagrant rsync && vagrant provision +If you are using Visual Studio Code, these tasks are available from the editor's +`Tasks menu`_. The update command can be run by simply hitting `Ctrl+Shift+B` on +Windows/Linux or `Command+Shift+B` on macOS. + +.. _`Tasks menu`: https://code.visualstudio.com/docs/editor/tasks + Testing Auth delegation ----------------------- |