

Sublime build systems are awesome and can help you avoid the need to manually switch between your editor and external build tools regularly. Should one need to locate this, it can be found in “~/Library/Application Support/Sublime Text 2/Packages/User” (if using OS X) or the corresponding Packages/User directory on other platforms.Ī basic “.sublime-build” file could be represented in key/value form as follows: ", "/O2", "$file"] Sublime populates its Tools/Build System menu based on the “.sublime-build” files stored in the Sublime “Packages” directory. Effectively this allows us to easily build projects without the need to leave our editor. It is also able to pipe back the output of calling any of these apps using the built-in console in Sublime.

When Sublime is passed references to external tools/binaries via a “.sublime-build” files, it can execute these applications with any arguments or flags that may be necessary. If a project is currently open, the build system we last selected (e.g grunt) will be remembered.
#Sublime text build mac#
The basic idea is that each type of Build profile is powered by a “.sublime-build” file - a JSON representations of the commands, paths and configuration needed to build a project using a specific tool or set of tools.īuilds can be executed using a keyboard shortcut (Command+B on Mac is the default on Mac or F7 on Windows), via the Tools menu or when a file is saved. Sublime Text build systems can be considered simplistic, but highly customizable. These will include scripts for Grunt, CoffeeScript, SASS and others. In this post, I’d like to take you through the Sublime build system and share build scripts for working with many of the languages and tools we use today. It’s sophisticated, has powerful text selection and customization support and also includes a feature not used by many - its build system. Sublime Text is currently the text editor of choice for a number of developers in the open-source community. Custom Sublime Text Build Systems For Popular Tools And Languages Home GitHub Press Twitter Shop Blog Custom Sublime Text Build Systems For Popular Tools And Languages August 17, 2012
