Skip to content

Instantly share code, notes, and snippets.

@lizlux
Created July 28, 2015 21:38
Show Gist options
  • Save lizlux/7ac6616fab7b5d092bca to your computer and use it in GitHub Desktop.
Save lizlux/7ac6616fab7b5d092bca to your computer and use it in GitHub Desktop.
var gulp = require('gulp'),
ts = require('gulp-typescript'),
options = {
target: 'ES6',
noImplicitAny: true,
removeComments: false,
declarationFiles: false,
sortOutput: true,
suppressImplicitAnyIndexErrors: true
};
gulp.task('es6', function() {
var tsResult = gulp.src('front/scripts/main/**/*.ts').pipe(ts(options));
return tsResult.js.pipe(gulp.dest('App'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment