mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
680 B
TypeScript
19 lines
680 B
TypeScript
import * as gulp from 'gulp';
|
|
import * as insert from 'gulp-insert';
|
|
|
|
gulp.task('gulp-insert-tests', () => {
|
|
return gulp.src('*.js')
|
|
.pipe(insert.prepend('/* Inserted using gulp-insert prepend method */\n'))
|
|
.pipe(insert.prepend('\n/* Inserted using gulp-insert append method */'))
|
|
.pipe(insert.wrap(
|
|
'/* Inserted using gulp-insert wrap method */\n',
|
|
'\n/* Inserted using gulp-insert wrap method */'
|
|
))
|
|
.pipe(insert.transform((contents, file) => {
|
|
var comment = '/* Local file: ' + file.path + ' */\n';
|
|
return comment + contents;
|
|
}))
|
|
.pipe(gulp.dest('gulp-insert'));
|
|
});
|
|
|