Skip to content

Repository files navigation

(PLUGIN AUTHOR: Please read Plugin README conventions, then delete this line)

gulp-aster

NPM versionBuild StatusCoverage StatusDependency Status

aster binding for gulp

This is plugin that allows to integrate code building with aster into gulp's pipeline. This allows you to use aster plugins for easy, proper, source maps-oriented code transformations right in your gulpfiles so all the other tasks like image processing, CSS building, serving files with livereload etc. are done by gulp plugins.

Usage

First, install gulp-aster as a development dependency:

npm install --save-dev gulp-aster

Then, add it to your gulpfile.js:

varaster=require("gulp-aster");varequery=require("aster-equery");gulp.src("./src/*.ext").pipe(aster(function(src){returnsrc.map(equery({'if ($cond) { return $yes } else { return $no }': 'return <%= cond %> ? <%= yes %> : <%= no %>'}));})).pipe(gulp.dest("./dist"));

API

aster(asterTransform)

asterTransform

Type: Function

Aster code building pipeline.

License

MIT License

About

aster binding for gulp

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages