mirror of
https://github.com/ikatyang/emoji-cheat-sheet.git
synced 2024-11-17 04:18:17 +08:00
22 lines
564 B
TypeScript
22 lines
564 B
TypeScript
|
import * as gulp from 'gulp';
|
||
|
import * as prettier from 'gulp-plugin-prettier';
|
||
|
import * as prettier_options from 'tslint-config-ikatyang/prettier';
|
||
|
|
||
|
// tslint:disable-next-line:no-var-requires
|
||
|
const sources = require('./tsconfig.json').include;
|
||
|
|
||
|
gulp.task('format', () =>
|
||
|
gulp
|
||
|
.src(sources)
|
||
|
.pipe(prettier.format(prettier_options, { filter: true }))
|
||
|
.pipe(gulp.dest(file => file.base)),
|
||
|
);
|
||
|
|
||
|
gulp.task('format-check', () =>
|
||
|
gulp
|
||
|
.src(sources)
|
||
|
.pipe(
|
||
|
prettier.format(prettier_options, { reporter: prettier.Reporter.Error }),
|
||
|
),
|
||
|
);
|