build.bat build system for Sublime Text
This is the build system I use for all my projects. In short with a press of
key it starts a file called
build.sh in your project, whatever
you put in this file is up to you. It is flexible and very easy to setup and
doesn't require to keep project files, workspaces or anything of this sort of
complications. Just load the files you need from the directory you need. For
me this is much more convenient than maintaining Sublime Text projects and
even more so than setting up projects in any IDE.
The build system works like this:
- Select build.bat build system.
- It will try to execute
build.baton Windows or
build.shon Unix if it is found in the directory of the active file, passing
buildas first argument.
- If not found it will look for this file up the directory tree.
- This way one can run different tools for different parts of the project and also run the top level tools of the project from any file.
The build system has several variants:
runas first argument to the build script.
debugas first argument to the build script.
testsas first argument to the build script.
useras first argument to the build script.
- I use this so I run my nodejs apps with
F7and run the unitests with
F8and have one extra key just in case.
- Also for compiled languages I prefer to manually setup a batch file to compile my sources, I don't like complicated things like makefiles.
- I've used it to edit file in Sublime Text on Windows and made the batch file so it will run a command in a VirtualBox Linux machine and tell me the output back in Sublime.
Borislav Peev (borislav.asdf at gmail dot com)