Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 12ea04c302
Fetching contributors…

Cannot retrieve contributors at this time

70 lines (60 sloc) 1.369 kb
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.eriwen:gradle-css-plugin:1.2'
}
}
buildscript {
configurations.classpath.resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
repositories {
mavenLocal()
mavenCentral()
}
apply plugin: 'css'
css.source {
custom {
css {
srcDir "src/test/resources"
include "file*.css"
}
}
}
task clean(type: Delete) {
delete buildDir
}
// Combine JS files
task combine(type: com.eriwen.gradle.css.tasks.CombineCssTask) {
source = css.source.custom.css.files
dest = "${buildDir}/all.css"
}
// Minify with Google Closure Compiler
task minify(type: com.eriwen.gradle.css.tasks.MinifyCssTask) {
source = combine
dest = file("${buildDir}/all-min.css")
yuicompressor {
lineBreakPos = 100
}
}
// GZip it!
task gzip(type: com.eriwen.gradle.css.tasks.GzipCssTask) {
source = minify
dest = "${buildDir}/all-zipped.min.css"
}
csslint {
source = css.source.custom.css.files
dest = "${buildDir}/csslint.out"
options {
format = 'text'
warnings = ['box-model', 'ids']
errors = []
}
}
kss {
source = css.source.custom.css.files
sourceDir = file("src/test/resources")
dest = file("${buildDir}/kss.out")
}
Jump to Line
Something went wrong with that request. Please try again.