var elixir = require('laravel-elixir');

/*
 |--------------------------------------------------------------------------
 | Elixir Asset Management
 |--------------------------------------------------------------------------
 |
 | Elixir provides a clean, fluent API for defining some basic Gulp tasks
 | for your Laravel application. By default, we are compiling the Sass
 | file for our application, as well as publishing vendor resources.
 |
 */
elixir(function(mix) {
  var bowerDir = "vendor/bower_components/";
  var adminLTE = "vendor/bower_components/AdminLTE/";
  var plugIn = "vendor/bower_components/AdminLTE/plugins/";
  var assetDest = "resources/assets/";
  var outputDir = "public/production/";
  // Copy File AdminLTE
  // mix.copy([
  //   adminLTE + "dist/css/AdminLTE.css",
  //   adminLTE + "dist/css/skins/_all-skins.css"
  // ], assetDest + "css/adminlte");
  // Copy Fonts bootstrap and font-awesome
  // mix.copy([
  //   adminLTE + "bootstrap/fonts/**",
  //   bowerDir + "font-awesome/fonts/**",
  // ], outputDir + "fonts");
  // // Copy Css files
  // mix.copy([
  //   adminLTE + "bootstrap/css/bootstrap.css",
  //   bowerDir + "font-awesome/css/font-awesome.css",
  //   plugIn + 'datatables/dataTables.bootstrap.css',
  //   plugIn + 'datatables/jquery.dataTables.css',
  //   bowerDir + "toastr/toastr.css",
  //   plugIn + 'select2/select2.css',
  //   plugIn + 'datepicker/datepicker3.css'
  // ], assetDest + "css/plugins");
  // // Copy Javascript Files
  // mix.copy([
  //   adminLTE + "bootstrap/js/bootstrap.js",
  //   adminLTE + "dist/js/app.js",
  //   bowerDir + "jquery/dist/jquery.js",
  //   bowerDir + "toastr/toastr.js",
  //   plugIn + 'datatables/dataTables.bootstrap.js',
  //   plugIn + 'datatables/jquery.dataTables.js',
  //   plugIn + 'slimScroll/jquery.slimscroll.js',
  //   plugIn + 'fastclick/fastclick.js',
  //   plugIn + 'select2/select2.full.js'
  // ], assetDest + 'js/plugins');
  //
  // mix.scripts([
  //   'js/plugins/jquery.js',
  //   'js/plugins/bootstrap.js',
  //   'js/plugins/jquery.dataTables.js',
  //   'js/plugins/dataTables.bootstrap.js',
  //   'js/plugins/toastr.js',
  //   'js/plugins/jquery.slimscroll.js',
  //   'js/plugins/fastclick.js',
  //   'js/plugins/select2.full.js',
  //   'js/plugins/app.js'
  // ],
  // outputDir + 'js/app.js', assetDest);
  // Webcam and Datepicker
  // mix.scripts([
  //   'js/webcam/webcam.js',
  //   'js/admin.js'
  // ], outputDir + 'js/webcam.js', assetDest);
  mix.scripts([
    'purchase_order.js'
  ], outputDir + "js/purchase.js");
  mix.sass([
    'print.scss'
  ], outputDir + "css/print.css");
  // Mix product and purchase_order and quotation JavaScirpt
  // mix.scripts([
  //   'sale/sale.js',
  //   'sale/script.js'
  // ], outputDir + "js/sale.js");
  //
  // mix.styles([
  //   'css/plugins/bootstrap.css',
  //   'css/plugins/font-awesome.css',
  //   'css/plugins/dataTables.bootstrap.css',
  //   'css/plugins/toastr.css',
  //   'css/plugins/select2.css',
  //   'css/plugins/datepicker3.css',
  //   'css/adminlte/AdminLTE.css',
  //   'css/adminlte/_all-skins.css',
  // ], outputDir + "css/default.css", assetDest);
  //
  // mix.sass([
  //   'base.scss'
  // ], outputDir + "css/base.css");
  // mix.sass([
  //   'sale_v1.scss'
  // ], outputDir + "css/sale_v1.css");
});
