You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How could closureCompiler.compile be integrated into the build task so that it runs when build (Ctrl+Shift+B) is executed?
I identified the command names are closureCompiler.compileAll and closureCompiler.compile and there is some way of calling extension commands within a task with ${command:extension....} syntax (see here), but I can't get this running.
Example:
{
"version": "2.0.0",
"tasks": [
{
"label":"compile typescript",
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript
"command": "tsc",
"type": "shell",
"presentation": {
"echo": true,
"reveal":"silent", // Show the output window only if unrecognized errors occur.
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": false
},
// Tell the tsc compiler to use the tsconfig.json from the open folder.
"args": ["-p", "."],
// use the standard tsc problem matcher to find compile problems
// in the output.
"problemMatcher": "$tsc",
//"group": "build",
}
,
{
"label":"compile closure",
"command":"${command:closureCompiler.compile}", //does not work
"group":"build"
}
,
{
"label": "Build",
"dependsOn": ["compile typescript", "compile closure"],
"dependsOrder": "sequence",
"group": "build",
}
],
}
"Build" is triggered which calls typescript compilation (ok) and then closure command. Closure is not working, giving this output in VSCode Output panel:
running command> ${command:closureCompiler.compile}
Failed to launch external program "${command:closureCompiler.compile}" .
spawn ${command:closureCompiler.compile} ENOEN
How to integrate closure correctly into tasks.json?
Thanks!
The text was updated successfully, but these errors were encountered:
How could
closureCompiler.compile
be integrated into the build task so that it runs when build (Ctrl+Shift+B) is executed?I identified the command names are
closureCompiler.compileAll
andclosureCompiler.compile
and there is some way of calling extension commands within a task with${command:extension....}
syntax (see here), but I can't get this running.Example:
"Build" is triggered which calls typescript compilation (ok) and then closure command. Closure is not working, giving this output in VSCode Output panel:
How to integrate closure correctly into tasks.json?
Thanks!
The text was updated successfully, but these errors were encountered: