2022-01-13 13:00:31 +00:00
|
|
|
/*******************************
|
|
|
|
* Check Install
|
|
|
|
*******************************/
|
|
|
|
|
|
|
|
var
|
|
|
|
// 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
|
|
|
|
|
2022-06-08 10:36:39 +00:00
|
|
|
};
|