Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 945 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 945 Bytes

HTL gulp plugin

NPM

sonarcloud.io status

Install

$ npm install --save-dev gulp
$ npm install --save-dev gulp-htl

For the example below you'll also need

$ npm install --save-dev gulp-rename

Usage

const gulp = require('gulp');
const rename = require('gulp-rename');
const htl = require('gulp-htl');

gulp.task('default', () =>
	gulp.src(['src/**/*.html', '!src/**/*.spec.html'])
		.pipe(htl())
		.pipe(rename({extname:'.spec.html'}))
		.pipe(gulp.dest('src'))
);

Thanks

Thanks to LatourJ for working out some of the quirks the HTL compiler in their project

License

MIT © Cerys Williams