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

Sass​Builder

by bnlucas ST2

Sublime Text SASS compiler based on source directory config file.

Details

  • 2016.01.06.22.03.29
  • github.​com
  • github.​com
  • 1 year ago
  • 10 minutes ago
  • 4 years ago

Installs

  • Total 13K
  • Win 8K
  • OS X 5K
  • Linux 856
Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4
Windows 0 2 1 4 2 3 5 5 3 3 2 2 5 0 4 1 1 3 0 3 1 1 2 1 1 1 1 5 4 5 3 0 1 3 5 5 3 5 1 2 2 6 2 4 4 1
OS X 0 0 5 0 0 0 2 0 1 2 4 1 1 0 0 5 0 0 1 1 2 0 1 1 0 1 0 0 3 1 1 2 0 3 1 2 1 1 0 7 6 1 2 7 0 1
Linux 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sass Builder

Sass Builder is a SASS compiler that reads a config file (.sassbuilder-config) stored in a sass/scss source folder. It is a JSON file that sets .css output folder and SASS flags [cache, style, debug, line numbers, line comments].

The plugin works on post save of a .sass/.scss file in Sublime Text.

UPDATED!

This has been resting on the side burner for quite some time and it has finally received the attention it needed! This has finally been updated to support Sublime Text 3 and it also works with Python 3.

There was an issue with the grep command being called if the system didn't have it available. This has been corrected to search for grep first and run a pure pythonic method if it's not found in the system's PATH.

I have a small method for this which.py that mimics the Linux command which.

The .sassbuilder-config has been changed to .sassbuilder-config.json to remove the error Sublime Text 3 generates. project_path has be added to this to allow for scanning in the entire project path when partials are saved.

  • Automatically runs on save.
  • Create .sassbuilder-config files with ease
    • Tools->Sass Builder Config
    • Ctrl+B + Ctrl+S keystroke
    • Right-click a folder or folders in the side bar.

The .sassbuilder-config file

{
    "project_path": "/project/path",
    "output_path": "/project/path/css",
    "options": {
        "cache":         true,
        "debug":         false,
        "line-comments": true,
        "line-numbers":  true,
        "style":         "nested"
    }
}