Browse Source

Remove dependency from gulp-util (#493)

rfm69
Xose Pérez 6 years ago
parent
commit
191e805b78
2 changed files with 11 additions and 9 deletions
  1. +8
    -5
      code/gulpfile.js
  2. +3
    -4
      code/package.json

+ 8
- 5
code/gulpfile.js View File

@ -36,7 +36,7 @@ const inline = require('gulp-inline');
const inlineImages = require('gulp-css-base64');
const favicon = require('gulp-base64-favicon');
const htmllint = require('gulp-htmllint');
const gutil = require('gulp-util');
const log = require('fancy-log');
const csslint = require('gulp-csslint');
const dataFolder = 'espurna/data/';
@ -76,10 +76,13 @@ var toHeader = function(filename) {
var htmllintReporter = function(filepath, issues) {
if (issues.length > 0) {
issues.forEach(function (issue) {
gutil.log(
gutil.colors.cyan('[gulp-htmllint] ') +
gutil.colors.white(filepath + ' [' + issue.line + ',' + issue.column + ']: ') +
gutil.colors.red('(' + issue.code + ') ' + issue.msg)
log.info(
'[gulp-htmllint] ' +
filepath + ' [' +
issue.line + ',' +
issue.column + ']: ' +
'(' + issue.code + ') ' +
issue.msg
);
});
process.exitCode = 1;


+ 3
- 4
code/package.json View File

@ -7,6 +7,7 @@
"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-clean-css": "^3.4.2",
@ -16,8 +17,6 @@
"gulp-htmllint": "0.0.14",
"gulp-htmlmin": "^2.0.0",
"gulp-inline": "^0.1.1",
"gulp-uglify": "^1.5.3",
"gulp-util": "^3.0.8"
},
"dependencies": {}
"gulp-uglify": "^1.5.3"
}
}

Loading…
Cancel
Save