Java sass command line using libsass-maven-plugin 0.2.4-libsass_3.3.4

Java sass command line tool (and libsass usage example) using libsass-maven-plugin. https://github.com/warmuuh/libsass-maven-plugin

License

License

Categories

Categories

Java Languages
GroupId

GroupId

hr.hrg
ArtifactId

ArtifactId

java-watch-sass
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

Java sass command line using libsass-maven-plugin 0.2.4-libsass_3.3.4
Java sass command line tool (and libsass usage example) using libsass-maven-plugin. https://github.com/warmuuh/libsass-maven-plugin
Project URL

Project URL

http://github.com/hrgdavor/java-watch-sass
Source Code Management

Source Code Management

http://github.com/hrgdavor/java-watch-sass/tree/master

Download java-watch-sass

How to add to project

<!-- https://jarcasting.com/artifacts/hr.hrg/java-watch-sass/ -->
<dependency>
    <groupId>hr.hrg</groupId>
    <artifactId>java-watch-sass</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/hr.hrg/java-watch-sass/
implementation 'hr.hrg:java-watch-sass:0.2.0'
// https://jarcasting.com/artifacts/hr.hrg/java-watch-sass/
implementation ("hr.hrg:java-watch-sass:0.2.0")
'hr.hrg:java-watch-sass:jar:0.2.0'
<dependency org="hr.hrg" name="java-watch-sass" rev="0.2.0">
  <artifact name="java-watch-sass" type="jar" />
</dependency>
@Grapes(
@Grab(group='hr.hrg', module='java-watch-sass', version='0.2.0')
)
libraryDependencies += "hr.hrg" % "java-watch-sass" % "0.2.0"
[hr.hrg/java-watch-sass "0.2.0"]

Dependencies

compile (2)

Group / Artifact Type Version
hr.hrg : java-watcher jar 0.2.0
com.github.warmuuh : libsass-maven-plugin jar 0.2.4-libsass_3.3.4

Project Modules

There are no modules declared in this project.

Java watch sass Maven Central

The utility

Command line utility for compiling scss files using Java with libsass binding (Linux, windows).

Intended to work as replacement for command-line interface of node-sass (a nodejs module i used for sometime now).

Reason I made this is to learn how to use libsass-maven programatically, so I can integrate scss compilation into some of my own Java based build scripts without requiring user to download nodejs or Ruby.

If you need a command-line tool to build and watch scss

  • if you like/have Java - you can use this tool
  • if you like/have Ruby - it is the home of the original sass tool (instructions)
  • if you like/have nodejs - node-sass
  • or try to find compiled binary of: sassc

You can check the code here to get insight on how to build scss from Java program directly.

Comamnd line:

Download the single runnable jar with all the dependencies from the releases.

usage:

java -jar java-watch-sass-{$version}.jar [options]

    -w, --watch                Watch a directory or file
    -r, --recursive            Recursively watch directories or files
    -o, --output               Output directory
    -x, --omit-source-map-url  Omit source map URL comment from output
    -i, --indented-syntax      Treat sources as sass code (versus scss)
    -v, --version              Prints version info
    --output-style             CSS output style (nested | expanded | compact | compressed)
    --source-comments          Include debug info in output
    --source-map               Emit source map
    --source-map-contents      Embed include contents in map
    --source-map-embed         Embed sourceMappingUrl as data URI
    --source-map-root          Base path, will be emitted in source-map as is
    --include-path             Path to look for imported files
    --follow                   Follow symlinked directories
    --precision                The amount of precision allowed in decimal numbers
    --help                     Print usage info

License

See the LICENSE file for license rights and limitations (MIT).

Versions

Version
0.2.0