mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
ES6 style syntax causes compiled code to function in unintended ways, leading to incorrect JavaScript code.
29 lines
577 B
TypeScript
29 lines
577 B
TypeScript
/// <reference path="../gulp/gulp.d.ts" />
|
|
/// <reference path="./gulp-jade.d.ts"/>
|
|
|
|
import * as gulp from 'gulp';
|
|
import * as jade from 'gulp-jade';
|
|
|
|
gulp.task('jade', () => {
|
|
gulp.src('src/**/*.jade')
|
|
.pipe(jade())
|
|
.pipe(gulp.dest('dist/'));
|
|
});
|
|
|
|
gulp.task('jade:pretty', () => {
|
|
gulp.src('src/**/*.jade')
|
|
.pipe(jade({
|
|
pretty: '\t',
|
|
}))
|
|
.pipe(gulp.dest('dist/'))
|
|
});
|
|
|
|
gulp.task('jade:client', () => {
|
|
gulp.src('src/**/*.jade')
|
|
.pipe(jade({
|
|
client: true,
|
|
pretty: true,
|
|
debug: false,
|
|
compileDebug: false,
|
|
}));
|
|
}); |