var elixir = require('laravel-elixir');
elixir.config.sourcemaps = false;

/*
 |--------------------------------------------------------------------------
 | 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 Less
 | file for our application, as well as publishing vendor resources.
 |
 */

elixir(function (mix) {
    var baseJs = [
        'jquery.js',
        'jquery.cookie.js',
        'jquery-ui.js',
        'jquery.tokenfield.js',
        'bootstrap.js',
        'jquery.mobile.js',
        'app.js'
    ];
    mix
        .less([
            'base.less',
            'app.less',
            'tokenfield.less'
        ], 'resources/css/app.css')

        .less([
            'login.less'
        ], 'resources/css/login.css')

        .less([
            'error.less'
        ], 'resources/css/error.css')

        .styles([
            'base.css',
            'tokenfield.css',
            'app.css'
        ], 'public/css/tiny.css', 'resources/css')

        .styles([
            'error.css'
        ], 'public/css/tiny_error.css', 'resources/css')

        .styles([
            'base.css',
            'login.css'
        ], 'public/css/tiny_login.css', 'resources/css')

        .scripts(baseJs, 'public/js/tiny.js', 'resources/js')

        .scripts(baseJs.concat(['project.js']), 'public/js/tiny_project.js', 'resources/js')

        .scripts(baseJs.concat([
            'upload/jquery.iframe-transport.js',
            'upload/vendor/jquery.ui.widget.js',
            'upload/jquery.fileupload.js',
            'upload/jquery.fileupload-process.js',
            'project.js'
        ]), 'public/js/tiny_project_issue.js', 'resources/js')

        .scripts(baseJs.concat(['project-new.js']), 'public/js/tiny_project_new.js', 'resources/js')

        .version([
            'css/tiny.css',
            'css/tiny_error.css',
            'css/tiny_login.css',
            'js/tiny.js',
            'js/tiny_project.js',
            'js/tiny_project_issue.js',
            'js/tiny_project_new.js'
        ])

        .copy('./resources/assets/fonts', 'public/build/fonts')
        .copy('./resources/assets/images', 'public/images')
    ;
});

@@ -638,17 +638,20 @@
    '
-bootstrap
+slideout.min
 .js'
@@ -665,21 +665,17 @@
    '
-jquery.mobile
+bootstrap
 .js'
@@ -848,32 +848,57 @@
         .less(%5B%0A
+            'base.less',%0A
             'log
@@ -953,32 +953,57 @@
         .less(%5B%0A
+            'base.less',%0A
             'err
@@ -1072,62 +1072,8 @@
 s(%5B%0A
-            'base.css',%0A            'tokenfield.css',%0A
     
@@ -1234,32 +1234,32 @@
 esources/css')%0A%0A
+
         .styles(
@@ -1264,32 +1264,8 @@
 s(%5B%0A
-            'base.css',%0A
     

upgrade gulp script