Skip to content

Instantly share code, notes, and snippets.

@T1mL3arn
Created August 8, 2017 08:13
Show Gist options
  • Save T1mL3arn/6e7b35ba59bfb16fbe599e1817cc40f4 to your computer and use it in GitHub Desktop.
Save T1mL3arn/6e7b35ba59bfb16fbe599e1817cc40f4 to your computer and use it in GitHub Desktop.
VSCode tasks.json tasks to work with web-ext util.
/*
NOTE:
it is only part of actual syntax and contains
task configurations for web-ext console command,
not a whole tasks.json!
MORE:
web-ext repo:
https://github.com/mozilla/web-ext
web-ext documentation
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Getting_started_with_web-ext
VSCode tasks.json documentation:
https://code.visualstudio.com/docs/editor/tasks
tasks.json Schema:
https://code.visualstudio.com/docs/editor/tasks-appendix
*/
{
"taskName": "run web-ext",
"type": "shell",
"command": "web-ext",
"args": [
"run"
],
"suppressTaskName": true,
"group": "build"
},
{
"taskName": "lint web-ext",
"type": "shell",
"command": "web-ext",
"args": [
"lint",
"--output=text"
],
"suppressTaskName": true,
"group": "build"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment