text: var gulp = require('gulp');
  var compass = require('gulp-compass');
  var shell = require('gulp-shell');
  var uglify = require('gulp-uglifyjs');
  
  gulp.task('default', function() {
    // place code for your default task here
  });
  
  gulp.task('compass', function() {
      //we need to work out the package name from the location for the asset publish.
      var location = process.cwd();
      location = location.split("workbench/");
      location = location.slice(-1)[0];
  
      gulp.src('./public/sass/*.scss')
          .pipe(compass({
              css: 'public/css',
              sass: 'public/sass',
              image: 'public/images'
          }))
          .pipe(shell([
              'php ../../../artisan vendor:publish'
          ]));
  });
  
  gulp.task('uglify', function() {
      //we need to work out the package name from the location for the asset publish.
      var location = process.cwd();
      location = location.split("workbench/");
      location = location.slice(-1)[0];
  
      gulp.src([
          'public/components/jquery/jquery.js',
          'public/components/jquery-ui/ui/jquery-ui.js',
          'public/components/bootstrap-sass/assets/javascripts/bootstrap.js',
          'public/components/jstree/dist/jstree.js',
          'public/components/blueimp-tmpl/js/tmpl.js',
          'public/components/blueimp-load-image/js/load-image.all.min.js',
          'public/components/blueimp-canvas-to-blob/js/canvas-to-blob.min.js',
          'public/components/blueimp-file-upload/js/jquery.iframe-transport.js',
          'public/components/blueimp-file-upload/js/jquery.fileupload.js',
          'public/components/blueimp-file-upload/js/jquery.fileupload-process.js',
          'public/components/blueimp-file-upload/js/jquery.fileupload-image.js',
          'public/components/blueimp-file-upload/js/jquery.fileupload-audio.js',
          'public/components/blueimp-file-upload/js/jquery.fileupload-video.js',
          'public/components/blueimp-file-upload/js/jquery.fileupload-validate.js',
          'public/components/blueimp-file-upload/js/jquery.fileupload-ui.js',
          'public/components/tinymce-builded/js/tinymce/tinymce.min.js',
          'public/components/tinymce-builded/js/tinymce/jquery.tinymce.min.js',
          'public/components/bootstrap-tagsinput/dist/bootstrap-tagsinput.js',
          'public/components/bootstrap-sass-datepicker/js/bootstrap-sass-datepicker.js',
          'public/components/mjolnic-bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js',
          'public/components/select2/dist/js/select2.full.js',
          'public/components/moment/moment.js',
          'public/components/moment-timezone/builds/moment-timezone-with-data.js',
          'public/components/soundasleep-bootstrap-datetimepicker-sass/build/js/bootstrap-datetimepicker.min.js',
          'public/components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js',
          ])
          .pipe(uglify('script.min.js', {
              mangle: true,
              outSourceMap: true,
              output: {
                  beautify: false
              }
          }))
          .pipe(gulp.dest('public/js'))
          .pipe(shell([
              'php ../../../artisan vendor:publish --force'
          ]));
  });
  
  
  gulp.task('watch', function() {
      gulp.watch('./public/sass/**/*.scss', ['compass', ]);
  });
  