For the use of helping convert Bootstrap css themes written in Less to Sass.
Install NodeJS, if you don't have it yet.
Once you have NodeJS installed, you just need to:
-
Clone the project:
git clone [email protected]:Robert-Frampton/less-sass-converter.git
-
Then navigate to the project in your terminal/command prompt:
cd less-sass-converter
-
Install local dependencies with:
[sudo] npm install
-
Drop some .less files into the
convert
directory -
From the project's root directory run:
gulp convert
-
Find the converted .scss files in the
build
directory
You can compile your files with Bootstrap source code to ensure it's validity
-
Navigate to the project in your terminal/command prompt:
cd less-sass-converter
-
Run:
gulp compile-sass
and select which version of Bootstrap your theme is intended for -
Sass syntax errors will print with file name and line number, if compiling is successful you will find the compiled code in
build/bootstrap.css
There is a specific naming convention for use with Liferay Portal themes.
- Run:
gulp rename
from project root directory to correctly rename files for use with Portal
If you want to run all commands at once, simply run: gulp build