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.

27 lines
603 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. ;
  11. // export task
  12. module.exports = function() {
  13. setTimeout(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. }, 50); // Delay to allow console.clear to remove messages from check event
  23. };