Skip to content

Instantly share code, notes, and snippets.

@heybdj
Created May 13, 2020 18:10
Show Gist options
  • Save heybdj/46874f6e0e034c37e28cc80b98a6722f to your computer and use it in GitHub Desktop.
Save heybdj/46874f6e0e034c37e28cc80b98a6722f to your computer and use it in GitHub Desktop.
A basic build system for Bake in Sublime Text 3
{
"shell_cmd": "bake", // https://github.com/SanderMertens/bake
"keyfiles": [ "project.json" ],
"working_dir": "${project_path:${folder}}",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
// The ANSIescape package (installed via Package Control) is
// required to support the ANSI escape colour codes used by
// the Bake build system. Without it, Sublime's console is
// littered with visible escape codes like "<0x1b>".
//
// Package Control: https://packagecontrol.io/packages/ANSIescape
// GitHub: https://github.com/aziz/SublimeANSI
"target": "ansi_color_build",
"syntax": "Packages/ANSIescape/ANSI.sublime-syntax",
"variants": [
{
"name": "Build",
"shell_cmd": "bake build"
},
{
"name": "Rebuild",
"shell_cmd": "bake rebuild"
},
{
"name": "Run",
"shell_cmd": "bake run"
},
{
"name": "Rebuild (Trace Output)",
"shell_cmd": "bake rebuild --trace"
},
{
"name": "Rebuild (Debug Output)",
"shell_cmd": "bake rebuild --debug"
},
{
"name": "Run (with Flecs Admin)",
"shell_cmd": "bake run -a --admin 9090"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment