text: const gulp = require('gulp')
  const uglify = require('gulp-uglify')
  const uglifycss = require('gulp-uglifycss')
  const concat = require('gulp-concat')
  
  gulp.task('deps', ['deps.js', 'deps.css', 'deps.fonts'])
  
  gulp.task('deps.js', function () {
    gulp.src([
      // 'node_modules/@uirouter/angularjs/release/angular-ui-router.min.js',
      'node_modules/angular/angular.min.js',
      'node_modules/angular-touch/angular-touch.min.js',
      'node_modules/angular-animate/angular-animate.min.js',
      'node_modules/angular-toastr/dist/angular-toastr.tpls.min.js',
      'node_modules/angular-ui-router/release/angular-ui-router.min.js',
      'node_modules/jquery/dist/jquery.min.js',
      'node_modules/bootstrap/dist/js/bootstrap.min.js',
      'node_modules/admin-lte/plugins/slimScroll/jquery.slimscroll.min.js',
      'node_modules/admin-lte/dist/js/adminlte.min.js',
      'node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js'
    ])
    .pipe(uglify())
    .pipe(concat('deps.min.js'))
    .pipe(gulp.dest('public/assets/js'))
  })
  
  gulp.task('deps.css', function () {
    gulp.src([
      'node_modules/angular-toastr/dist/angular-toastr.min.css',
      'node_modules/bootstrap/dist/css/bootstrap.min.css',
      'node_modules/font-awesome/css/font-awesome.min.css',
      'node_modules/admin-lte/dist/css/AdminLTE.min.css',
      'node_modules/admin-lte/dist/css/skins/_all-skins.min.css',
      'node_modules/angular-ui-bootstrap/dist/ui-bootstrap-csp.css'
    ])
    .pipe(uglifycss({ "uglyComments": true }))
    .pipe(concat('deps.min.css'))
    .pipe(gulp.dest('public/assets/css'))
  })
  
  gulp.task('deps.fonts', function () {
    gulp.src([
      'node_modules/font-awesome/fonts/*.*',
      'node_modules/bootstrap/fonts/*.*',
    ])
    .pipe(gulp.dest('public/assets/fonts'))
  })
  
  // gulp.task('deps.carousel', function () {
  //   gulp.src([
  //     'node_modules/angular-ui-carousel/dist/fonts/*.*',
  //   ])
  //   .pipe(gulp.dest('public/assets/css/fonts'))
  // })
  