2.0.0 • Published 4 years ago
gulp-typescript-helper v2.0.0
gulp-typescript-helper
Provides a single simplified means for building TypeScript with:
- Source Maps
- Declaration Files
- Minification
Other features:
- Resolves using promises instead of streams for more easy of use and flexibility.
- Use whatever Promise library you want.
Usage:
Write your tasks like this:
import {Target, Module, CoreTypeScriptOptions, BuildHelper} from "gulp-typescript-helper";
const DEFAULTS:CoreTypeScriptOptions = {
noImplicitAny: true,
removeComments: true,
noEmitHelpers: true,
sourceMap: true,
declaration: true
});
const builder = BuildHelper
// Setup the builder by injecting a promise constructor.
.inject(PromiseFactory) // Optional: will use Q as a default.
// Define your source folder and destination base path.
.fromTo(PATH.SOURCE, "./dist" , DEFAULTS);
// Subsequent tasks are simplified down to this:
gulp.task(
TASK.DIST_UMD,
()=> builder
.init(
MODULE.UMD + '.min',
TARGET.ES5,
MODULE.UMD)
.clear() // Clears the destination directory.
.minify() // Signals to enable minification (uglify).
.execute() // Commences the build pipeline
.then(()=>
/* Whatever steps you want to do before completion */) //
);
See more real use cases and examples here: https://github.com/electricessence/TypeScript.NET/blob/master/_gulp/dist.ts
2.0.0
4 years ago
2.0.0-beta1
6 years ago
1.5.0
6 years ago
1.4.3
7 years ago
1.4.2
7 years ago
1.4.1
7 years ago
1.4.0
7 years ago
1.3.4
7 years ago
1.3.3
7 years ago
1.3.2
8 years ago
1.3.1
8 years ago
1.3.0
8 years ago
1.2.0
8 years ago
1.1.6
8 years ago
1.1.5
8 years ago
1.1.4
8 years ago
1.1.3
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.7
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago