Skip to content

Instantly share code, notes, and snippets.

@gforcedev
Last active May 11, 2016 12:34
Show Gist options
  • Save gforcedev/21a2e2645228e40beb07859b85df750c to your computer and use it in GitHub Desktop.
Save gforcedev/21a2e2645228e40beb07859b85df750c to your computer and use it in GitHub Desktop.
A vscode task runner for love2d projects
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process
// A task runner that calls the Typescript compiler (tsc) and
// Compiles a HelloWorld.ts program
{
// The command is the path to your love install exe.
"command": "D:\\SDKs\\love-0.10.1-win32\\love",
// The command is a shell script
"isShellCommand": true,
// args are appended onto the command run, just like a batch file
"args": ["${workspaceRoot}"]
}
@gforcedev
Copy link
Author

Replace the path on line 13 with your love install, remembering to use double backslashes because of the escape codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment