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 inlineImages = require('gulp-css-base64');
const favicon = require('gulp-base64-favicon'); const favicon = require('gulp-base64-favicon');
const htmllint = require('gulp-htmllint'); const htmllint = require('gulp-htmllint');
const log = require('fancy-log');
const csslint = require('gulp-csslint'); const csslint = require('gulp-csslint');
const crass = require('gulp-crass'); const crass = require('gulp-crass');
const replace = require('gulp-replace'); const replace = require('gulp-replace');
@ -61,7 +60,7 @@ var buildHeaderFile = function() {
var wstream = fs.createWriteStream(destination); var wstream = fs.createWriteStream(destination);
wstream.on('error', function (err) { wstream.on('error', function (err) {
log.error(err);
console.error(err);
}); });
var data = fs.readFileSync(file.path); var data = fs.readFileSync(file.path);
@ -83,7 +82,7 @@ var buildHeaderFile = function() {
wstream.end(); wstream.end();
var fstat = fs.statSync(file.path); var fstat = fs.statSync(file.path);
log("Created '" + filename + "' size: " + fstat.size + " bytes");
console.log("Created '" + filename + "' size: " + fstat.size + " bytes");
cb(0, destination); cb(0, destination);
@ -94,7 +93,7 @@ var buildHeaderFile = function() {
var htmllintReporter = function(filepath, issues) { var htmllintReporter = function(filepath, issues) {
if (issues.length > 0) { if (issues.length > 0) {
issues.forEach(function (issue) { issues.forEach(function (issue) {
log.info(
console.info(
'[gulp-htmllint] ' + '[gulp-htmllint] ' +
filepath + ' [' + filepath + ' [' +
issue.line + ',' + 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'). return gulp.src('html/*.html').
pipe(htmllint({ pipe(htmllint({


+ 0
- 1
code/package.json View File

@ -7,7 +7,6 @@
"license": "GPL-3.0", "license": "GPL-3.0",
"devDependencies": { "devDependencies": {
"del": "^2.2.1", "del": "^2.2.1",
"fancy-log": "^1.3.2",
"gulp": "^3.9.1", "gulp": "^3.9.1",
"gulp-base64-favicon": "^1.0.2", "gulp-base64-favicon": "^1.0.2",
"gulp-crass": "^0.2.2", "gulp-crass": "^0.2.2",


+ 1
- 1
pre-commit View File

@ -124,7 +124,7 @@ if __name__ == "__main__":
sys.exit(1) sys.exit(1)
os.chdir("code") 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(2)
sys.exit(0); sys.exit(0);

Loading…
Cancel
Save