UNPKG

607 BJavaScriptView Raw
1/*******************************
2 * Check Install
3 *******************************/
4
5var
6 // node dependencies
7 gulp = require('gulp'),
8 console = require('better-console'),
9 isSetup = require('./config/project/install').isSetup,
10
11 install = require('./install'),
12 watch = require('./watch')
13;
14
15// export task
16module.exports = function (callback) {
17
18 setTimeout(function () {
19 if (!isSetup()) {
20 console.log('Starting install...');
21 install(callback);
22 } else {
23 watch(callback);
24 }
25 }, 50); // Delay to allow console.clear to remove messages from check event
26
27};
\No newline at end of file