1.1.1 • Published 10 years ago

gulp-tsconfig-update v1.1.1

Weekly downloads
19
License
MIT
Repository
github
Last release
10 years ago

gulp-tsconfig-update

Build Status

A gulp plugin to update files property in tsconfig.json by gulp.src glob.

Install

npm install --save-dev gulp-tsconfig-update

Usage

var gulp = require("gulp");
var tsConfig = require('gulp-tsconfig-update');

gulp.task('tsConfig', function() {
  return gulp.src("./src/**/*.ts")
      .pipe(tsConfig());
});

Notes

  • If ./tsconfig.json exists, its files property is overwritten.

  • If ./tsconfig.json doesn't exist, this plugin will generate the file similar to that created by tsc --init.

  • You can use user-defined default config.

var gulp = require("gulp");
var tsConfig = require('gulp-tsconfig-update');

gulp.task('tsConfig', function() {
  return gulp.src("./src/**/*.ts")
      .pipe(tsConfig({
        defaultConfig: {
           compilerOptions: {
               module: "commonjs",
               target: "es5",
               noImplicitAny: true
           }
        }
      }));
});
1.1.1

10 years ago

1.1.0

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.8-2

10 years ago

1.0.8-1

10 years ago

1.0.8-0

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago