0.0.1 • Published 9 years ago

gulp-blueprint-typescript v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

gulp-blueprint-typescript

npm Travis Code Climate Code Climate npm npm

David David

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 instance
  • task (string, default: 'ts'): The gulp task name
  • dependencies (string|array, default: []): The gulp task dependencies
  • typescript (object, default: see below): Options passed to gulp-typescript
  • src (string|array, default: 'app/*.ts'): TypeScript input files
  • output (string, default: 'app.min.js'): Output file name
  • concat (boolean, default: true): Whether to concat input files
  • minify (boolean, default: true): Whether to minify input files
  • dest (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

marc1404

License

MIT