Package Exports
- gulp-tsconfig
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-tsconfig) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-tsconfig 
Simple gulp plugin that creates a TypeScript project file ('tsconfig.json') for a given glob of sources. Supports ordering of project files via globs, too.
A sample is provided in the gulp-tsconfig-sample repository.
Install
$ npm install --save-dev gulp-tsconfig
Usage
var gulp = require('gulp');
var gulpTsConfig = require('gulp-tsconfig');
gulp.task('default', function() {
var tsConfig = gulpTsConfig({
tsOrder: [
'**/app.module.ts',
'**/*.module.ts',
'**/*.ts'],
tsConfig: {
"compilerOptions": {
"target": "ES3",
"removeComments": true,
"sourceMap": true,
"noImplicitAny": true,
"out": "./dist/app.js"
}
}
});
return gulp.src(["./**/*.ts"])
.pipe(tsConfig())
.pipe(gulp.dest('.'));
// --> result is a tsconfig.json file.
});
API
tsConfig(options)
options
tsConfig
Type: object
Default: {}
The tsconfig settings (e.g. "compilerOptions") as specified in the TypeScript Wiki.
tsOrder
Type: object
Default: ['**/*.ts']
The order glob. The gulp-order plugin is reused for ordering.
jsBeautifyOptions
Type: object
Default:
{
indent_size : 4,
indent_char : ' ',
preserve_newlines : false,
wrap_line_length : 80
}
The JSON beautifier options. See js-beautify for options.
License
MIT © Oliver Lohmann