0.0.1 • Published 9 years ago
gulp-blueprint-typescript v0.0.1
gulp-blueprint-typescript
Installation
$ npm install --save-dev gulp-blueprint-typescript
Description
This package can be used to setup a Gulp task to compile and minify TypeScript.
Using:
Usage
gulpfile.js
var typescript = require('gulp-blueprint-typescript');
typescript(); // gulp task registered with default options
Options
You can pass an options object.
gulp
(object, default:require('gulp')
): Provide a custom gulp instancetask
(string, default:'ts'
): The gulp task namedependencies
(string|array, default:[]
): The gulp task dependenciestypescript
(object, default: see below): Options passed to gulp-typescriptsrc
(string|array, default:'app/*.ts'
): TypeScript input filesoutput
(string, default:'app.min.js'
): Output file nameconcat
(boolean, default:true
): Whether to concat input filesminify
(boolean, default:true
): Whether to minify input filesdest
(string, default:'app'
): Destination of the compiled, and minified JavaScript bundle
TypeScript default options:
{
target: 'ES3',
module: 'commonjs',
declaration: false,
removeComments: false,
experimentalAsyncFunctions: true,
noEmitOnError: true,
noExternalResolve: true
}
Test
$ npm install -g mocha
$ mocha
Author
License
0.0.1
9 years ago