Compiles LESS for Humpty

A humpty plugin that compiles LESS.

License

License

GroupId

GroupId

co.mewf.humpty
ArtifactId

ArtifactId

humpty-less
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Compiles LESS for Humpty
A humpty plugin that compiles LESS.
Project Organization

Project Organization

mewf
Source Code Management

Source Code Management

https://github.com/mwanji/humpty-less

Download humpty-less

How to add to project

<!-- https://jarcasting.com/artifacts/co.mewf.humpty/humpty-less/ -->
<dependency>
    <groupId>co.mewf.humpty</groupId>
    <artifactId>humpty-less</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/co.mewf.humpty/humpty-less/
implementation 'co.mewf.humpty:humpty-less:0.1.0'
// https://jarcasting.com/artifacts/co.mewf.humpty/humpty-less/
implementation ("co.mewf.humpty:humpty-less:0.1.0")
'co.mewf.humpty:humpty-less:jar:0.1.0'
<dependency org="co.mewf.humpty" name="humpty-less" rev="0.1.0">
  <artifact name="humpty-less" type="jar" />
</dependency>
@Grapes(
@Grab(group='co.mewf.humpty', module='humpty-less', version='0.1.0')
)
libraryDependencies += "co.mewf.humpty" % "humpty-less" % "0.1.0"
[co.mewf.humpty/humpty-less "0.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.github.sommeri : less4j jar 1.8.4
co.mewf.humpty : humpty jar 0.1.0

test (2)

Group / Artifact Type Version
org.webjars : bootstrap jar 3.3.1
org.slf4j : slf4j-nop jar 1.7.10

Project Modules

There are no modules declared in this project.

humpty-less

Compiles LESS files in the humpty pipeline.

Installation

Requires Java 8 and Maven.

Add the following dependency to your POM:

<dependency>
  <groupId>co.mewf.humpty</groupId>
  <artifactId>humpty-less</artifactId>
  <version>1.0.0-SNAPSHOT</version>
</dependency>

Usage

Add LESS files to humpty bundles:

"styles.css" = ["app.less"]

Imports

Imports are resolved relative to the file they are declared in. If it cannot be resolved, then it is considered to be pointing at a WebJar, as in the following example.

Bootstrap Example

To integrate Bootstrap and use custom values for its variables, you could have the following in the above-mentioned app.less, (if it is in src/main/resources/assets):

@import "bootstrap/3.3.1/less/bootstrap.less";

@gray-base: #111;
@link-color: @brand-danger;

and so on for the rest of your variables.

Versions

Version
0.1.0