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

SASS Build

by jaumefontal ST2/ST3 Top 100

SASS build sytem for Sublime Text 2

Details

  • 2015.03.10.11.27.26
  • github.​com
  • github.​com
  • 2 years ago
  • 2 hours ago
  • 5 years ago

Installs

  • Total 126K
  • Win 74K
  • OS X 40K
  • Linux 12K
May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11
Windows 88 103 118 119 104 63 53 95 99 105 99 97 54 52 99 106 96 114 102 64 58 104 108 89 112 83 45 69 99 111 108 102 109 44 67 93 96 94 110 90 35 47 96 109 119 113
OS X 18 26 34 32 27 12 20 28 28 29 34 38 23 12 34 26 25 23 31 9 20 25 23 45 37 20 15 22 23 41 33 30 28 24 15 21 33 46 29 25 20 17 40 22 22 36
Linux 5 13 14 12 14 4 8 6 12 12 9 9 4 2 7 7 10 8 7 4 7 9 8 3 6 7 9 10 7 19 14 8 8 6 9 8 10 11 13 6 6 10 2 7 11 10

Readme

Source
raw.​githubusercontent.​com

SASS build system for Sublime Text 2

Note: I'm working in a portable version of the SASS build with all the libraries included & ready to use. It will be available (I hope!) the next week.

Description

Provides two Build system for SASS files (with and without compression)

Prerequisites

Requires Ruby & SASS libraries.

Step by step:

  1. Install Ruby library

    Windows: Download and install Ruby. You can find it here: http://rubyinstaller.org/downloads/

    Reboot after install it.

    IMPORTANT: Don't forget to mark the option 'Add Ruby executables to your PATH'. If you don't check the option, you will have to modify the path in the Build file afterwards.

    OS X & Linux: It's already installed. Easy! :)

  2. Installing SASS

    Open your console ('Command prompt with Ruby' on Windows) and execute the following command:

    gem install sass

Installing

OPTION 1 - With the Package Control plugin (recommended)

The easiest way to install this package is through Package Control.

  1. Download and install the Package Control Plugin. Follow the instructions on the website.

  2. Open the command panel: Control+Shift+P (Linux/Windows) or Command+Shift+P (OS X) and select 'Package Control: Install Package'.

  3. When the packages list appears type 'SASS' and you'll find the SASS Build System. Select to install it.

  4. Now you can compile your SASS files! Launch your build with Control+B (Linux/Windows) or Command+B (OS X).

  5. Enjoy your coding =)

OPTION 2 - With Git

Clone the repository in your Sublime Text “Packages” directory:

git clone git://https://github.com/jaumefontal/SASS-Build-SublimeText2.git SASS-build

You can find your 'Packages' inside the following directories:

  • OS X: ~/Library/Application Support/Sublime Text 2/Packages/
  • Windows: %APPDATA%/Sublime Text 2/Packages/
  • Linux: ~/.Sublime Text 2/Packages/

OPTION 3 - Without Git

Download the latest source zip from Github and extract it into a new folder named SASS-Build in your Sublime Text “Packages” folder.

Using the build

After installing the package you will find two new options in Tools > Build system of your Sublime menu: SASS and SASS - Compressed.

By default your .scss and .sass files will be built using the SASS build (not compressed).

And remember, always you can launch the selected build with Control+B (Linux/Windows) or Command+B (OS X).

Recommendations

  • Is recommended to use this build with one of the next plugins: SASS plugin or SCSS.tmbundle.
  • Also, I recommend the plugin SublimeOnSaveBuild. Just save your SASS files and transform them into CSS!
  • If you want to change the default folder of your generated CSS files into another one, you can edit the build:

Example: Save your CSS files into a css folder: "cmd": ["sass", "--update", "$file:${file_path}/../css/${file_base_name}.css"],

Author

Created by Jaume Fontal (@jaumefontal).

If you need more info you can find me on Twitter!

Acknowledgments

Thanks to the collaboration of @hdennison with the testing in MacOS.