UNPKG

500 BJavaScriptView Raw
1'use strict';
2
3var
4 gutil = require('gulp-util'),
5 prettyHrtime = require('pretty-hrtime'),
6 startTime = void 0;
7
8module.exports = {
9
10 start: function() {
11 startTime = process.hrtime();
12 gutil.log('Running', gutil.colors.green('bundle') + '...');
13 },
14
15 end: function() {
16 var prettyTime, taskTime;
17 taskTime = process.hrtime(startTime);
18 prettyTime = prettyHrtime(taskTime);
19 gutil.log('Finished', gutil.colors.green('bundle'), 'in', gutil.colors.magenta(prettyTime));
20 }
21
22};
\No newline at end of file