On Save
Executes commands on file save.
Details
Installs
- Total 3K
- Win 2K
- Mac 758
- Linux 497
Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 2 | 2 | 1 | 2 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 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 | 1 | 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 | 1 | 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 | 1 |
Readme
- Source
- raw.githubusercontent.com
OnSave plugin for Sublime Text 3
Executes commands on file save.
Installation
- If you have Package Control installed, simply search for On Save to install.
- Clone source code to Sublime Text packages folder.
git clone https://github.com/wl879/SublimeOnSave.git OnSave
Usage
Create a “.onsave” file in you project dir, Or right click folder at side bar
# This is a example whih typescript configuration
VAR:
# defind typescript path
tsc: "/usr/local/bin/tsc"
# specify ECMAScript target version
target: --target ES5
ENV:
PATH: /usr/bin/
# optional
CONSOLE : right
LISTENER:
# typeScript compiler:
- CMD : $tsc $FILE --outDir $DIR $target
WATCH : *.ts, *.tsx
# concatenate and emit output to test.js.
- CMD : $tsc $ROOT/utils/*.ts --outFile $ROOT/test.js $target
WATCH : utils/*.ts
EXCLUDE: bad.ts
TIMEOUT : 5000
# run $ROOT/test.js, and display debug output
- CMD : node $ROOT/test.js
CONSOLE : right
# $ROOT = .onsave file directory
# $FILE = current file path
# $FILENAME = current file name
# $BASENAME = current file name, not postfix
# $DIR = current file directory
# CONSOLE options
# false = not diaplay
# name left = diaplay at left view
# name right = diaplay at right view
# name bottom = diaplay at bottom view
# WATCH options
# pattern are separated by commas,reserved words has "BUILD","NOBUILD"
# - BUILD = watch (super + b) key binding
# - NOBUILD = just watch (on save) event
# ENV options
# - CWP = changes the current working directory to the given path.
# - PATH
# - HOME
# ...