ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Mod​JS - Java​Script Workflow Tooling

by yuanyan ST2

Mod for Sublime Text

Details

  • 2013.06.21.17.21.23
  • github.​com
  • github.​com
  • 6 years ago
  • 58 minutes ago
  • 6 years ago

Installs

  • Total 549
  • Win 329
  • OS X 151
  • Linux 69
Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

sublime-mod

Mod for Sublime Text

Getting Started

Install package control

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.

Install sublime-mod

Option #1: Install module using package control

  • Now inside Sublime Text open the Command Palette (command+shift+p on OS X, or ctrl+shift+p on Linux/Windows).
  • Select “Package Control: Install Package”, after a few seconds a list will appear. Search for sublime-mod and click to install.

Option #2: Install module directly

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/ * Linux: ~/.Sublime Text 2/Packages/ * Windows: %APPDATA%/Sublime Text 2/Packages/

Add the sublime-mod module:

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/yuanyan/sublime-mod.git

Modfile

Add a Modfile to in your project root.

Build System > Mod

  • In Sublime Text 2, go to Tools > Build System, and select Mod as your build system
  • To build: ctrl + b on Linux/Windows or command + b on OS X

build-on-save

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 myProject.sublime-project file.

For each project that you want to take advantage of this feature, you will have to modify the the .sublime-project file.

Build Settings

In your project folder

{
  "folders":
  [
    { "path": "/C/path-to-your-project-here" }
  ],
  "settings": { "build_on_save": 1 }
}

To build on save, keep the value at 1. To disable build on save, change the value to 0.

A build-on-save word of caution

Running mod every time you hit ctrl + s will 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.