gulp-tsconfig-update
v1.1.1
Published
A gulp plugin to update `files` property in tsconfig.json by `gulp.src`.
Downloads
640
Readme
gulp-tsconfig-update
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, itsfiles
property is overwritten.If
./tsconfig.json
doesn't exist, this plugin will generate the file similar to that created bytsc --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
}
}
}));
});