From 2dd60912cc2e61b6c9167acf3e457fd0c342fdf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Thu, 21 Jun 2018 18:09:34 +0200 Subject: [PATCH] Silent webui build on commit --- code/gulpfile.js | 9 ++++----- code/package.json | 1 - pre-commit | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/code/gulpfile.js b/code/gulpfile.js index d915d899..f0ad2b25 100644 --- a/code/gulpfile.js +++ b/code/gulpfile.js @@ -35,7 +35,6 @@ const inline = require('gulp-inline'); const inlineImages = require('gulp-css-base64'); const favicon = require('gulp-base64-favicon'); const htmllint = require('gulp-htmllint'); -const log = require('fancy-log'); const csslint = require('gulp-csslint'); const crass = require('gulp-crass'); const replace = require('gulp-replace'); @@ -61,7 +60,7 @@ var buildHeaderFile = function() { var wstream = fs.createWriteStream(destination); wstream.on('error', function (err) { - log.error(err); + console.error(err); }); var data = fs.readFileSync(file.path); @@ -83,7 +82,7 @@ var buildHeaderFile = function() { wstream.end(); var fstat = fs.statSync(file.path); - log("Created '" + filename + "' size: " + fstat.size + " bytes"); + console.log("Created '" + filename + "' size: " + fstat.size + " bytes"); cb(0, destination); @@ -94,7 +93,7 @@ var buildHeaderFile = function() { var htmllintReporter = function(filepath, issues) { if (issues.length > 0) { issues.forEach(function (issue) { - log.info( + console.info( '[gulp-htmllint] ' + filepath + ' [' + issue.line + ',' + @@ -143,7 +142,7 @@ gulp.task('buildfs_inline', function() { } } } - log.info("Modules " + JSON.stringify(remover_config)); + console.info("Modules " + JSON.stringify(remover_config)); return gulp.src('html/*.html'). pipe(htmllint({ diff --git a/code/package.json b/code/package.json index c3ce1863..11172cc8 100644 --- a/code/package.json +++ b/code/package.json @@ -7,7 +7,6 @@ "license": "GPL-3.0", "devDependencies": { "del": "^2.2.1", - "fancy-log": "^1.3.2", "gulp": "^3.9.1", "gulp-base64-favicon": "^1.0.2", "gulp-crass": "^0.2.2", diff --git a/pre-commit b/pre-commit index 0263c749..ec6ec539 100755 --- a/pre-commit +++ b/pre-commit @@ -124,7 +124,7 @@ if __name__ == "__main__": sys.exit(1) os.chdir("code") - if call(["node", "node_modules/gulp/bin/gulp.js"]): + if call(["node", "node_modules/gulp/bin/gulp.js", "--silent"]): sys.exit(2) sys.exit(0);