gulp-typescript-multiproject
v1.0.0
Published
Support multiple tsconfigs in a single project
Downloads
2
Readme
gulp-typescript-multiproject
Easily compile projects made up of multiple tsconfig.json with a simple configuration. This project works for projects that contain a mix of commonJS and AMD wrapped code.
Example
gulp-typescript-multiproject exposes easy to use gulp tasks that can simply the build and cleaning process.
import * as rsMultiProject from 'gulp-typescript-multiproject';
import * as gulp from 'gulp';
let tsProject = rsMultiProject([
'./**/tsconfig.json',
'!**/node_modules',
'!**/bower_components'
]);
gulp.task('build', tsProject.build());
gulp.task('clean', tsProject.clean());
After starting a "gulp build", each tsconfig.json will be compiled as it's on independent project. Using options in tsconfig.json, files can be easily included/excluded as needed, allowing separation between two different types of applications (e.g. frontend, backend) while in the same project.