wishthis/node_modules/fomantic-ui/tasks/check-install.js

26 lines
654 B
JavaScript
Raw Normal View History

2022-01-13 13:00:31 +00:00
/*******************************
* Check Install
*******************************/
2023-08-17 09:47:40 +00:00
const
// node dependencies
gulp = require('gulp'),
console = require('better-console'),
isSetup = require('./config/project/install').isSetup,
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
install = require('./install'),
watch = require('./watch')
2022-01-13 13:00:31 +00:00
;
// export task
module.exports = function (callback) {
2023-08-17 09:47:40 +00:00
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
2022-06-08 10:36:39 +00:00
};