text: var
      gulp = require('gulp'),
      less = require('gulp-less')
      concat = require('gulp-concat')
      livereload = require('gulp-livereload')
      addSrc = require('gulp-add-src')
  ;
  
  var
      paths = {
          'css': [
              './node_modules/semantic-ui/dist/semantic.min.css',
          ],
          'less': [
              './src/Bundle/*/Resources/private/less/*.less',
          ],
          'js': [
              './node_modules/jquery/dist/jquery.min.js',
              './node_modules/jquery-ui-dist/jquery-ui.js',
              './node_modules/semantic-ui/dist/semantic.min.js',
  
              './node_modules/ace-builds/src-min/ace.js',
              './node_modules/ace-builds/src-min/ext-modelist.js',
              './node_modules/ace-builds/src-min/mode-twig.js',
              './node_modules/ace-builds/src-min/mode-php.js',
              './node_modules/ace-builds/src-min/mode-css.js',
              './node_modules/ace-builds/src-min/mode-yaml.js',
              './node_modules/ace-builds/src-min/mode-xml.js',
              './node_modules/ace-builds/src-min/mode-markdown.js',
              './node_modules/ace-builds/src-min/theme-twilight.js',
  
              './src/Bundle/*/Resources/private/js/*.js',
          ]
      }
  
  
  gulp.task('build-css', function () {
      gulp.src(paths.less)
          .pipe(less())
          .pipe(addSrc(paths.css))
          .pipe(concat('admin.css'))
          .pipe(gulp.dest('src/Resources/public'));
  
      gulp.src([
          'node_modules/semantic-ui-css/themes/**/*'
      ]).pipe(gulp.dest('src/Resources/public/themes'));
  });
  
  gulp.task('build-js', function () {
      return gulp.src(paths.js)
      .pipe(concat('admin.js'))
      .pipe(gulp.dest('src/Resources/public'));
  });
  
  gulp.task('build', ['build-css', 'build-js']);
  
  gulp.task('watch', function () {
      livereload.listen();
  
      gulp.watch(paths.less, ['build-css']);
      gulp.watch(paths.js, ['build-js']);
      gulp.watch(paths.css, ['build-css']);
  });
  