gulp-typescript-formatter

Gulp plugin for the Typescript Formatter

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
gulp-typescript-formatter
0.1.38 years ago8 years agoMinified + gzip package size for gulp-typescript-formatter in KB

Readme

gulp-typescript-formatter

Gulp wrapper/plugin for typescript-formatter to format TypeScript files with Gulp.

Installation

``` npm install --save-dev gulp-typescript-formatter ```

Usage

``` var typescriptFormatter = require('gulp-typescript-formatter'); gulp.task('format', function () {
return gulp.src('**/*.ts')
.pipe(typescriptFormatter({
// see RootOptions interface for available options: https://github.com/vvakame/typescript-formatter/blob/master/lib/cli.ts#L25-L35
baseDir: '.',
tslint: true, // use tslint.json file?
tsfmt: true, // use tsfmt.json file? Overrides settings in tslint.json (at least indentSize)
editorconfig: true, // use .editorconfig file? Overrides tsfmt settings (at least indentSize)
})
.pipe(gulp.dest('.'));
} ```