38 lines
968 B
JavaScript
38 lines
968 B
JavaScript
/*******************************************************************************
|
|
* Copyright (c) 2015-2018 Red Hat, Inc.
|
|
* This program and the accompanying materials are made
|
|
* available under the terms of the Eclipse Public License 2.0
|
|
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
*
|
|
* SPDX-License-Identifier: EPL-2.0
|
|
*
|
|
* Contributors:
|
|
* Red Hat, Inc. - initial API and implementation
|
|
*******************************************************************************/
|
|
|
|
var gutil = require('gulp-util');
|
|
|
|
/**
|
|
* The main paths of your project handle these with care
|
|
*/
|
|
exports.paths = {
|
|
src: 'src',
|
|
dist: 'target/dist',
|
|
tmp: '.tmp',
|
|
e2e: 'e2e',
|
|
modules: 'node_modules'
|
|
};
|
|
|
|
|
|
/**
|
|
* Common implementation for an error handler of a Gulp plugin
|
|
*/
|
|
exports.errorHandler = function(title) {
|
|
'use strict';
|
|
|
|
return function(err) {
|
|
gutil.log(gutil.colors.red('[' + title + ']'), err.toString());
|
|
this.emit('end');
|
|
};
|
|
};
|