mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-07-09 03:25:09 +00:00
Restructure
This commit is contained in:
27
src-angular/assets/semantic/tasks/check-install.js
Normal file
27
src-angular/assets/semantic/tasks/check-install.js
Normal file
@@ -0,0 +1,27 @@
|
||||
/*******************************
|
||||
* 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
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user