package
aster binding for gulp
npm install gulp-asterGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
(PLUGIN AUTHOR: Please read Plugin README conventions, then delete this line)
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-asterThen, 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.
Estimated unpacked size across 39 packages.
1.2 MB
Includes dependencies.
5 direct · 2 outdated
^2.3.11
4.1.0
^1.4.1
2.1.0
^3.0.1
3.0.8
^0.1.0
0.1.1
git+https://github.com/RReverser/sourcemap-to-ast.git
0.0.2