mirror of
https://github.com/ikatyang/emoji-cheat-sheet.git
synced 2024-11-17 04:18:17 +08:00
d7eca0f9fe
* Update tslint-config-ikatyang from 0.10.0 to 1.0.1 * chore: add prettier * style: reformat with prettier * chore(package): update @types/node to version 8.0.15
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 }),
|
|
),
|
|
);
|