wishthis/node_modules/fomantic-ui/tasks/check-install.js
2023-08-17 11:47:40 +02:00

25 lines
654 B
JavaScript

/*******************************
* Check Install
*******************************/
const
// node dependencies
gulp = require('gulp'),
console = require('better-console'),
isSetup = require('./config/project/install').isSetup,
install = require('./install'),
watch = require('./watch')
;
// export task
module.exports = function (callback) {
setTimeout(function () {
if (!isSetup()) {
console.log('Starting install...');
install(callback);
} else {
watch(callback);
}
}, 50); // Delay to allow console.clear to remove messages from check event
};