TsProject is a TypeScript minifier and modular bundle optimizer that integrates with Gulp via Vinyl streams. It compiles TypeScript project configuration files (tsconfig.json) and supports ES6 module bundling, minification with identifier shortening, and cache-optimized incremental builds. Current stable version is 2.0.2 (latest release), with a v4.0.0 beta (4.1.0-dev.1) targeting TypeScript 4.0. Release cadence is infrequent, with major version bumps aligned to TypeScript releases. Key differentiators include native bundle support within tsconfig.json and compile-time bundling, unlike tools like r.js or Webpack. Requires Node >=14, ships TypeScript types, and is primarily used as a Gulp plugin.
npm install tsprojectNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates a basic Gulp task using tsproject to compile TypeScript from a directory with tsconfig.json.
Upgrade Node to 14+ and TypeScript to 4.0+.
Use v2.0.2 for stability or test with v4.0.0-dev.1 for TypeScript 4.0 support.
Use require() syntax in Node.js; avoid import statements.
Ensure tsconfig.json includes both 'files' and 'bundles' sections.
Run 'npm install tsproject --save-dev' and ensure it's in the same directory as your gulpfile.
Use 'var tsproject = require('tsproject');' and call 'tsproject.src(...)'.Ensure require('tsproject') returns an object with 'src' method; check node_modules/tsproject/index.js.Verify the path points to a directory or file that includes a valid tsconfig.json.