wishthis/semantic/tasks/check-install.js

26 lines
654 B
JavaScript
Raw Permalink 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-08-05 09:25:53 +00:00
};