liferay-theme-tasks
Version:
A set of tasks for building and deploying Liferay Portal themes.
21 lines (15 loc) • 410 B
JavaScript
/**
* SPDX-FileCopyrightText: © 2017 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: MIT
*/
const {EventEmitter} = require('events');
module.exports = function (gulp) {
gulp.hook('before:build', () => {
const eventEmitter = new EventEmitter();
// Simulates the end of an async gulp stream
setTimeout(() => {
eventEmitter.emit('end');
}, 200);
return eventEmitter;
});
};