Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var gulp = require('gulp');
- var sass = require('gulp-sass');
- var sourcemaps = require('gulp-sourcemaps');
- var handlebars = require('gulp-compile-handlebars');
- var rename = require('gulp-rename');
- var concat = require('gulp-concat');
- var ts = require('gulp-typescript');
- var buildDir = "build";
- var jsDir = buildDir + "/js";
- var compilerOptions = {
- "module": "commonjs",
- "target": "ES3",
- "noImplicitAny": true,
- "removeComments": true,
- "preserveConstEnums": true,
- "sortOutput ": true
- };
- gulp.task('typescript-compile', function(){
- var tsResult = gulp.src('TS/*.ts')
- .pipe(sourcemaps.init()) // This means sourcemaps will be generated
- .pipe(ts(compilerOptions));
- return tsResult.js
- .pipe(concat('weeklycal.js')) // You can use other plugins that also support gulp-sourcemaps
- .pipe(sourcemaps.write("./")) // Now the sourcemaps are added to the .js.map file
- .pipe(gulp.dest(jsDir));});
- gulp.task('default',['typescript-compile']);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement