This package has been deprecated

Author message:

WARNING: This project has been renamed to @flexbe/gulp-compile-twig. Install using @flexbe/gulp-compile-twig instead.

gulp-compile-twig

1.13.3 • Public • Published

gulp-compile-twig

Installation

npm install --save gulp-compile-twig

Usage

const twig_compile = require('gulp-compile-twig');

gulp.task('twig', () => {
  gulp.src('./src/**/*.twig')
    .pipe(twig_compile())
    .pipe(gulp.dest('./dest/'))
});

Options

The options object supports the module and twig options for the Twig compiler.

  • module
    Should the output be written in module format. Supported formats:
    • node: Node.js / CommonJS 1.1 modules
    • amd: RequireJS / Asynchronous modules (requires twig)
    • cjs2: CommonJS 2.0 draft8 modules (requires twig)
  • twig
    Used with module. The location relative to the output directory of twig.js. (used for module dependency resolution).
const twig_compile = require('gulp-compile-twig');

gulp.task('twig', function() {
  gulp.src('./src/**/*.twig')
    .pipe(twig_compile({module: 'amd', twig: 'lib/twig'}))
    .pipe(gulp.dest('./dest/'))
});

Readme

Keywords

Package Sidebar

Install

npm i gulp-compile-twig

Weekly Downloads

2

Version

1.13.3

License

MIT

Unpacked Size

4.01 kB

Total Files

4

Last publish

Collaborators

  • kachurun