1
0
mirror of https://github.com/ikatyang/emoji-cheat-sheet.git synced 2024-11-23 02:43:50 +01:00
emoji-cheat-sheet/gulpfile.ts
dependencies[bot] d7eca0f9fe chore(deps): Update tslint-config-ikatyang from 0.10.0 to 1.0.1 (#13)
* 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
2017-07-24 12:36:42 +08:00

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 }),
),
);