Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/math2001/st-py-less
A python compiler using python for Sublime Text
https://github.com/math2001/st-py-less
compiler less sublime-text sublime-text-3
Last synced: 20 days ago
JSON representation
A python compiler using python for Sublime Text
- Host: GitHub
- URL: https://github.com/math2001/st-py-less
- Owner: math2001
- Created: 2016-10-20T08:08:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-22T01:33:06.000Z (over 8 years ago)
- Last Synced: 2024-11-10T07:41:25.651Z (3 months ago)
- Topics: compiler, less, sublime-text, sublime-text-3
- Language: Python
- Size: 5.86 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/lesscpy/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](https://bitbucket.org/gutworth/six/raw/ca4580a5a648fc75abc568907e81abc80b05d58c/six.py) in it.
### Second dependence: `ply`
This one is a bit harder to install. You need to copy [this folder](https://github.com/dabeaz/ply/tree/master/ply) into you package folder. You an use [this website](http://kinolien.github.io/gitzip/) to do so. Extract it into `Packages` as a folder named `ply`. Download `.zip`
### `lesscpy`
Same as `ply`, you need to download [this folder](https://github.com/lesscpy/lesscpy/tree/master/lesscpy) 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.pyHope 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!