npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

gulp-tsconfig-update

1.1.1 • Public • Published

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

Keywords

none

install

npm i gulp-tsconfig-update

Downloadsweekly downloads

102

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability