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

  1. /*******************************
  2. Check Install
  3. *******************************/
  4. var
  5. // node dependencies
  6. gulp = require('gulp'),
  7. fs = require('fs'),
  8. console = require('better-console'),
  9. install = require('./config/project/install'),
  10. checkInstall
  11. ;
  12. // export task
  13. checkInstall = function() {
  14. if( !install.isSetup() ) {
  15. console.log('Starting install...');
  16. gulp.start('install');
  17. return;
  18. }
  19. else {
  20. gulp.start('watch');
  21. }
  22. };
  23. /* Export with Metadata */
  24. checkInstall.displayName = 'check-install';
  25. checkInstall.description = 'Checks if SUI needs to install before build/watch';
  26. module.exports = checkInstall;