Skip to content

msgilligan/gradle-lesscss-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gradle-lesscss-plugin

Gradle plugin to compile .less files to CSS with LESS CSS pre-processor.

Sample

There is a seperate GitHub repo gradle-lesscss-sample that contains a sample Gradle build using this plugin. See the README.md file in that project for complete instructions on how to build, install, and use this plugin.

Installing

Eventually you'll be able to install this (or another Gradle LESSCSS plugin) from a Maven repo, but for now you'll have to build it yourself and install into your local Maven repo:

gradle install

Building

gradle build

Notes

This plugin requires a download of less-rhino-1.x.x.js and then directly runs the Javascript file with Rhino. See gradle.build in the sample project.

TO DO

  1. Update to more recent LESS
  2. Publish to a public Maven repo (who can help with this?)
  3. Use lesscss-java
  4. More complete sample project (Bootstrap demo?)
  5. Spock unit tests

Longer term possibilities

  1. Run LESS under Nashorn?
  2. Use Native less4j ?
  3. Integration with Grails resource plugin? (How would that work?)

License

Licensed under the terms of the Apache Software License 2.0.

Acknowledgment(s)

This plugin is based upon source code e-mailed to me (with Apache 2 license in the headers) by Luke Daley on March 3, 2012.

Alternatives

When I created this repository there was only one other Gradle LESS CSS plugin out there. Now there are a handful.

About

Gradle plugin for LESS CSS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages