All Projects → eriwen → Gradle Css Plugin

eriwen / Gradle Css Plugin

Licence: apache-2.0
Gradle plugin for working with CSS

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gradle Css Plugin

Kordamp Gradle Plugins
A collection of Gradle plugins
Stars: ✭ 100 (-20%)
Mutual labels:  gradle-plugin
Gradle Build Properties Plugin
Keep your secrets secret. External build properties support for your Gradle scripts.
Stars: ✭ 110 (-12%)
Mutual labels:  gradle-plugin
Gradle Visteg
Exports task execution graph as .dot file
Stars: ✭ 116 (-7.2%)
Mutual labels:  gradle-plugin
Gradle Changelog Plugin
Plugin for parsing and managing the Changelog in a "keep a changelog" style.
Stars: ✭ 102 (-18.4%)
Mutual labels:  gradle-plugin
Library Analysis
Library Analysis Gradle Plugin
Stars: ✭ 105 (-16%)
Mutual labels:  gradle-plugin
Audiovideocodec
一款视频录像机,支持AudioRecord录音、MediaCodec输出AAC、MediaMuxer合成音频视频并输出mp4,支持自动对焦、屏幕亮度调节、录制视频时长监听、手势缩放调整焦距等
Stars: ✭ 113 (-9.6%)
Mutual labels:  gradle-plugin
Gradle Quality Plugin
Gradle quality plugin for Java and Groovy
Stars: ✭ 97 (-22.4%)
Mutual labels:  gradle-plugin
Reckon
Infer a project's version from your Git repository.
Stars: ✭ 124 (-0.8%)
Mutual labels:  gradle-plugin
Kotlin
The Kotlin Programming Language.
Stars: ✭ 39,664 (+31631.2%)
Mutual labels:  gradle-plugin
Fat Aar Android
A gradle plugin that merge dependencies into the final aar file works with AGP 3.+
Stars: ✭ 2,076 (+1560.8%)
Mutual labels:  gradle-plugin
Koala
从 Java 字节码到 ASM 实践
Stars: ✭ 103 (-17.6%)
Mutual labels:  gradle-plugin
Obfusesmalitext
smali文件,jar包字符串混淆,支持gradle插件
Stars: ✭ 105 (-16%)
Mutual labels:  gradle-plugin
Godot
Keep track of how much time you spend on Gradle builds
Stars: ✭ 113 (-9.6%)
Mutual labels:  gradle-plugin
Android String Reference
This is a Gradle plugin for Android applications which resolves XML string references in other XML strings.
Stars: ✭ 102 (-18.4%)
Mutual labels:  gradle-plugin
Okbuck
OkBuck is a gradle plugin that lets developers utilize the Buck build system on a gradle project.
Stars: ✭ 1,513 (+1110.4%)
Mutual labels:  gradle-plugin
Vertx Gradle Plugin
An opinionated Gradle plugin for Vert.x projects
Stars: ✭ 98 (-21.6%)
Mutual labels:  gradle-plugin
Licensetoolsplugin
Gradle plugin to check library licenses and generate license pages for Android
Stars: ✭ 113 (-9.6%)
Mutual labels:  gradle-plugin
Jib
🏗 Build container images for your Java applications.
Stars: ✭ 11,370 (+8996%)
Mutual labels:  gradle-plugin
Clojurephant
Clojure and Clojurescript support for Gradle
Stars: ✭ 118 (-5.6%)
Mutual labels:  gradle-plugin
Jaop
jaop is a gradle plugin base on javassist&asm for android aop
Stars: ✭ 115 (-8%)
Mutual labels:  gradle-plugin

Quick Start Build Status

Managing your CSS in a Gradle build is super easy now! Just add this to your build.gradle file:

Gradle 2.1+

plugins {
  id "com.eriwen.gradle.css" version "2.14.0"
}

Gradle 2.0-

// Grab the plugin from a Maven Repo automatically
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.eriwen:gradle-css-plugin:1.11.0'
    }
}

// Invoke the plugin
apply plugin: 'css'

// Declare your sources
css.source {
    dev {
        css {
            srcDir "app/styles"
            include "*.css"
            exclude "*.min.css"
        }
    }
}

// Specify a collection of files to be combined, then minified and finally GZip compressed.
combineCss {
    source = css.source.dev.css.files
    dest = "${buildDir}/all.css"
}

minifyCss {
    source = combineCss
    dest = "${buildDir}/all-min.css"
    yuicompressor { // Optional
        lineBreakPos = -1
    }
}

gzipCss {
    source = minifyCss
    dest = "${buildDir}/all.2.0.4.css"
}

LESS Support

css.source {
    dev {
        css {
            srcDir "app/styles"
            include "*.less"
        }
    }
}

lesscss {
    source = css.source.dev.css.asFileTree
    dest = "${buildDir}/styles"
}

Supports CSS Lint v0.9.10

csslint {
    source = css.source.dev.css.files
    dest = "${buildDir}/csslint.out"
}

Available Tasks and Options

combineCss

  • source = Collection of file paths of files to merge
  • dest = File/String Path for combined output

minifyCss (Uses the YUI Compressor)

  • source = File to minify
  • dest = File for minified output
  • (Optional) yuicompressor.lineBreakPos = -1 (default) Insert a line break after the specified column number

gzipCss

  • source = File to compress
  • dest = File/String path for compressed output

less

  • source = Files to transpile
  • dest = File/String output directory

csslint

  • source = Collection of file paths of files to analyze
  • dest = File for output
  • (Optional) format = 'compact' (default), 'text', 'lint-xml', or 'checkstyle-xml'
  • (Optional) warnings = (default is all) Collection of string ids for checks. Try csslint --list-rules to see all possible IDs
  • (Optional) errors = (default is none) Collection of string ids for checks. CAUTION: These cause a non-zero exit code and fail the build!

What, you want more? Let me know!

See Also

The Gradle JS Plugin!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].