Skip to content

Instantly share code, notes, and snippets.

@tinker1987
Forked from corbanb/JavaScript.sublime-build
Created November 22, 2017 16:08
Show Gist options
  • Save tinker1987/46444b8010e10a0fc5ff2b6e794d1b57 to your computer and use it in GitHub Desktop.
Save tinker1987/46444b8010e10a0fc5ff2b6e794d1b57 to your computer and use it in GitHub Desktop.
Sublime Text - Tools > Build System > New Build System

Build Tools for Sublimetext

  • Add new build systems via Tools > Build System > New Build System.
  • Save files as Language.sublime-build
  • Any commandline tool for compiling code can be used.
  • Cmd + B (OSX) will build files and send output to the Sublime Console

Example Files

Submlime Examples

Sublime Settings

Here you can see where to create new builds and to setup automatic build types. Sublime Build Menu

// Sublime Text - Build System for Javascript
{
"cmd": ["node", "$file"],
"selector": "source.js"
}
// Sublime Text - Build System for PHP
{
"cmd": ["php", "$file"],
"selector": "source.php"
}
@tinker1987
Copy link
Author

// Sublime Text - Build System for Javascript
{
    "cmd": ["node", "$file"],
    "selector": "source.js",
    "path": "$PATH:/usr/local/bin/"
}

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