A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/asterjs/gulp-aster below:

asterjs/gulp-aster: aster binding for gulp

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

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.

First, install gulp-aster as a development dependency:

npm install --save-dev gulp-aster

Then, add it to your gulpfile.js:

var aster = require("gulp-aster");
var equery = require("aster-equery");

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

Type: Function

Aster code building pipeline.

MIT License


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4