b324cd3b6b
Both jshint and jslint contain the 'do no evil' license which makes it unusable for OpenStack. This patch switches this project to use eslint, the published eslint-config-openstack rules, and the john-papa eslint style guides. It also adds the 'npm run lint' command used by infra in the javascript-jobs macro. Change-Id: I724d3a12fb5b9c85446adcd07c03a676e966bd41
26 lines
590 B
JavaScript
26 lines
590 B
JavaScript
'use strict';
|
|
|
|
/* bundleLogger
|
|
* ------------
|
|
* Provides gulp style logs to the bundle method in browserify.js
|
|
*/
|
|
|
|
var gutil = require('gulp-util');
|
|
var prettyHrtime = require('pretty-hrtime');
|
|
var startTime;
|
|
|
|
module.exports = {
|
|
|
|
start: function() {
|
|
startTime = process.hrtime();
|
|
gutil.log('Running', gutil.colors.green('\'bundle\'') + '...');
|
|
},
|
|
|
|
end: function() {
|
|
var taskTime = process.hrtime(startTime);
|
|
var prettyTime = prettyHrtime(taskTime);
|
|
gutil.log('Finished', gutil.colors.green('\'bundle\''), 'in', gutil.colors.magenta(prettyTime));
|
|
}
|
|
|
|
};
|