com.github.fgiannesini.libsass.gradle.plugin.LibSassGradlePlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libsass-gradle-plugin Show documentation
Show all versions of libsass-gradle-plugin Show documentation
A gradle plugin to compile scss with libsass.
package com.github.fgiannesini.libsass.gradle.plugin;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.tasks.TaskContainer;
import com.github.fgiannesini.libsass.gradle.plugin.extension.LibSassParameters;
import com.github.fgiannesini.libsass.gradle.plugin.tasks.CompileLibSassTask;
import com.github.fgiannesini.libsass.gradle.plugin.tasks.CompileLibSassWithWatchTask;
import com.github.fgiannesini.libsass.gradle.plugin.tasks.InstallBourbonTask;
import com.github.fgiannesini.libsass.gradle.plugin.tasks.InstallCompassTask;
/**
* Gradle plugin declaration
*/
public class LibSassGradlePlugin implements Plugin {
@Override
public void apply(final Project project) {
// Class for definition of availables parameters
project.getExtensions().create("libSassParameters",
LibSassParameters.class);
final TaskContainer tasks = project.getTasks();
// Task for libsass compilation
tasks.create("compileLibSass", CompileLibSassTask.class);
// Task for continous compilation
tasks.create("compileLibSassWithWatch",
CompileLibSassWithWatchTask.class);
// Task to install Bourbon sources
tasks.create("installBourbon", InstallBourbonTask.class);
// Task to install Compass sources
tasks.create("installCompass", InstallCompassTask.class);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy