Enables you to run Grunt.js builds from Sublime Text 2.
Enables you to run actual Gruntfile.js builds from Sublime Text 2.
First, install Package Control for Sublime Text 2:
- Sublime Package Control: this is the easiest way to install this package
- After installing Package Control, restart Sublime Text.
- Now inside Sublime Text open the Command Palette (
command+shift+pon OS X, or
- Select "Package Control: Install Package", after a few seconds a list will appear. Search for
sublime-grunt-buildand click to install.
If you weren't able to find the package on Package Control, go to your Sublime Text
Packages directory, located here:
- OS X:
~/Library/Application Support/Sublime Text 2/Packages/
~/.Sublime Text 2/Packages/
%APPDATA%/Sublime Text 2/Packages/
Without Git: Download the latest source zip from github and extract the files into a new folder inside your Sublime Text "Packages" directory.
With Git: Clone the repository in your Sublime Text "Packages" directory:
git clone git://github.com/jonschlinkert/sublime-grunt-build.git
Add a Gruntfile to in your project root.
- In Sublime Text 2, go to
Tools > Build System, and select
Gruntas your build system
- To build:
ctrl + bon Linux/Windows or
command + bon OS X
The build-on-save feature was added in v1.1. To enable
build-on-save, you first have to save your project in Sublime Text by going to
Project > Save Project As. Then go to your project folder and
settings line from the example below to your
For each project that you want to take advantage of this feature, you will have to modify the the
In your project folder
To build on save, keep the value at
1. To disable build on save, change the value to
gruntevery time you hit
ctrl + swill be a great productivity booster when used wisely. But if you have lots of processor-intensive tasks that take more than a few seconds to run, this feature might get annoying pretty fast.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
v0.1.1 build-on-save added v0.0.1 first commit
Copyright (c) 2013 Jon Schlinkert Licensed under the MIT license.