Skip to content
This repository has been archived by the owner on Jan 28, 2018. It is now read-only.

AtsushiSuzuki/gulp-tsconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-tsconfig

gulp-tsconfig generates tsconfig.json used by typescript.

example

In Gulpfile.js:

var gulp = require('gulp');
var tsconfig = require('@atsushi_suzuki/gulp-tsconfig');

gulp.task('tsconfig', function () {
	// supply tsconfig.json and *.ts source files
	gulp.src(['tsconfig.json', 'lib/*.ts')
		// override .files with source file names
		.pipe(tsconfig())
		.pipe(gulp.dest('.'));
});

usage

tsconfig([options])

Returns gulp plugin (file object stream) that generates tsconfig.json with property files for each input files.

If input file is tsconfig.json, the file is treated as source config and files is overwriten.

  • options.filename [string] - specify config file name. defaults to tsconfig.json
  • options.config [object] - specify default tsconfig.json configuration values. defaults to {}.

About

deprecated - generate tsconfig.json by gulp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published