diff --git a/CHANGELOG.md b/CHANGELOG.md index d39a823fc..854d2ebce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ### Changelog +**0.62.1** + +* gulp doesn't display typescript error messages +https://github.com/forCrowd/WealthEconomy/issues/91 + **0.62.0** * Typescript diff --git a/SolutionItems/Properties/AssemblyInfo.cs b/SolutionItems/Properties/AssemblyInfo.cs index 2393f3fc3..7c6f3f19c 100644 --- a/SolutionItems/Properties/AssemblyInfo.cs +++ b/SolutionItems/Properties/AssemblyInfo.cs @@ -30,5 +30,5 @@ // // AssemblyFileVersion is not in use for the moment // -[assembly: AssemblyVersion("0.62.0")] +[assembly: AssemblyVersion("0.62.1")] [assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/ngClient/gulpfile.js b/ngClient/gulpfile.js index 34b70a76c..3c29f5e97 100644 --- a/ngClient/gulpfile.js +++ b/ngClient/gulpfile.js @@ -1,14 +1,15 @@ /// 'use strict'; -var gulp = require('gulp'), - concat = require('gulp-concat'), +var concat = require('gulp-concat'), cssmin = require('gulp-cssmin'), fs = require('fs'), + gulp = require('gulp'), + gutil = require('gutil'), jshint = require('gulp-jshint'), // Obsolete? rename = require('gulp-rename'), sourcemaps = require('gulp-sourcemaps'), - ts = require("gulp-typescript"), + typescript = require("gulp-typescript"), uglify = require('gulp-uglify'); // Common @@ -93,11 +94,11 @@ gulp.task('default', [appJs, appCss, appSettingsJs, libJs, libCss, 'watch']); // app.js: jshhint + concat all into app.js + minify all into app.min.js gulp.task(appJs, function () { - var tsProject = ts.createProject(appJsConfig, { outFile: appJs }); + var project = typescript.createProject(appJsConfig, { outFile: appJs }); - return tsProject.src() + return project.src() .pipe(sourcemaps.init()) - .pipe(ts(tsProject)).js + .pipe(typescript(project, undefined, visualStudioReporter())).js .pipe(gulp.dest(appJsRoot)) .pipe(rename(appMinJs)) .pipe(uglify()) @@ -191,3 +192,13 @@ function errorHandler(error) { console.log(error); this.emit('end'); } + +/* Visual Studio Reporter for gulp-typescript */ +function visualStudioReporter() { + return { + error: function (error) { + gutil.log("Typescript: error", error.message); + }, + finish: typescript.reporter.defaultReporter().finish + }; +} diff --git a/ngClient/package.json b/ngClient/package.json index af61a62cb..fe32db2d9 100644 --- a/ngClient/package.json +++ b/ngClient/package.json @@ -15,6 +15,7 @@ "gulp-tap": "^0.1.3", "gulp-typescript": "^2.13.6", "gulp-uglify": "^1.5.3", + "gutil": "^1.6.4", "jshint": "^2.9.2", "jshint-stylish": "^2.1.0", "typescript": "^1.8.10",