You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
681 B
32 lines
681 B
/*******************************
|
|
Check Install
|
|
*******************************/
|
|
|
|
var
|
|
// node dependencies
|
|
gulp = require('gulp'),
|
|
fs = require('fs'),
|
|
console = require('better-console'),
|
|
install = require('./config/project/install'),
|
|
|
|
checkInstall
|
|
;
|
|
|
|
// export task
|
|
checkInstall = function() {
|
|
|
|
if( !install.isSetup() ) {
|
|
console.log('Starting install...');
|
|
gulp.start('install');
|
|
return;
|
|
}
|
|
else {
|
|
gulp.start('watch');
|
|
}
|
|
|
|
};
|
|
|
|
/* Export with Metadata */
|
|
checkInstall.displayName = 'check-install';
|
|
checkInstall.description = 'Checks if SUI needs to install before build/watch';
|
|
module.exports = checkInstall;
|