Browse Source

Silent webui build on commit

rfm69
Xose Pérez 6 years ago
parent
commit
2dd60912cc
3 changed files with 5 additions and 7 deletions
  1. +4
    -5
      code/gulpfile.js
  2. +0
    -1
      code/package.json
  3. +1
    -1
      pre-commit

+ 4
- 5
code/gulpfile.js View File

@ -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({


+ 0
- 1
code/package.json View File

@ -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",


+ 1
- 1
pre-commit View File

@ -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);

Loading…
Cancel
Save