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