A gulp plugin that wraps the TypeScript compiler (tsc) to transpile .ts files within gulp workflows. Current stable version is 1.3.2. It supports TypeScript versions from 0.9.1 to 2.1.0, providing a configurable interface for compilation options like module, target, declarations, and source maps. It locates the tsc binary from the local typescript package, shell PATH, or bundled fallback. Compared to alternatives like gulp-typescript, gulp-tsc uses the CLI tsc rather than the compiler API, making it simpler but less flexible for advanced use cases (e.g., no incremental compilation, no project references). The package is lightweight and direct but has limited maintenance and no support for newer TypeScript features.
npm install gulp-tscNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Illustrates basic usage of gulp-tsc to compile TypeScript files, with options for ES5 target, CommonJS modules, and declaration generation.
Switch to a maintained alternative like gulp-typescript or use gulp with tsc directly via gulp-shell or similar.
Remove 'allowbool' option; it is not a standard TypeScript compiler flag.
Use 'outDir' to set the destination for source maps and declarations, but tsc's --outDir is not directly controlled; specify 'out' or rely on gulp.dest.
Always set 'outDir' to the same as gulp.dest path when using declarations to ensure correct reference paths.
Use const typescript = require('gulp-tsc') instead of import.Run npm install typescript --save-dev to add TypeScript as a dev dependency.
Downgrade TypeScript to version <=2.1.0 or switch to a modern plugin like gulp-typescript.
No dependency data recorded yet.