JSPM

gulp-aster

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q34038F
  • License MIT

aster binding for gulp

Package Exports

  • gulp-aster

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-aster) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

gulp-aster

NPM version Build Status Coverage Status Dependency 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:

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"));

API

aster(asterTransform)

asterTransform

Type: Function

Aster code building pipeline.

License

MIT License