Skip to content

math2001/st-py-less

Repository files navigation

Less Compiler For Sublime Text 3

You want to compile your Less files when you save them, but you don't want to instal nodejs just for this... So, you're stuck... Guess what? You're not because of this repo ;)

This plugin compiles automatically your less files as soon as you save them, using a lesscpy.

Usage

To use this plugin, you need to organize your styles in a specific way:

styles/
	less/
		what/
			ever.less
			you/
				want.less
		really.less
	css/
		# your less file will be compiled here with the same structure
		what/
			ever.css
			you/
				want.css
		really.css

Installation

The installation is for now a bit tricky, because lesscpy's got some (small) dependences

First dependence: six.py

Go to your package folder (of sublime text), create a new file, and paste this content in it.

Second dependence: ply

This one is a bit harder to install. You need to copy this folder into you package folder. You an use this website to do so. Extract it into Packages as a folder named ply. Download .zip

lesscpy

Same as ply, you need to download this folder and extract it into you package folder. Download .zip

Install the plugin

Last step: get into your package directory and clone this repo (or download the zip and extract it).

At the end

At the end, your packages folder should look like this:

Packages/
	...
	User/
	ply/
		__init__.py
		cpp.py
		ctokens.py
		lex.py
		yacc.py
		ygen.py
	lesscpy/
		less2css.py
		README.md
		...
	six.py

Hope you enjoy it!

If you have any idea how to improve it, feel free to PR this repo, or if just tell it to me, I might manage to do it myself!

About

A python compiler using python for Sublime Text

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published