forked from mikelbring/tinyissue
-
Notifications
You must be signed in to change notification settings - Fork 6
/
gulpfile.js
83 lines (69 loc) · 2.39 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
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.ui.touch-punch.min.js',
'slideout.min.js',
'bootstrap.js',
'app.js'
];
mix
.less([
'base.less',
'app.less',
], 'resources/css/app.css')
.less([
'base.less',
'login.less'
], 'resources/css/login.css')
.less([
'base.less',
'error.less'
], 'resources/css/error.css')
.styles([
'app.css'
], 'public/css/tiny.css', 'resources/css')
.styles([
'error.css'
], 'public/css/tiny_error.css', 'resources/css')
.styles([
'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')
.scripts(baseJs.concat(['pwstrength-bootstrap.min.js']), 'public/js/tiny_user_form.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',
'js/tiny_user_form.js'
])
.copy('./resources/assets/fonts', 'public/build/fonts')
.copy('./resources/assets/images', 'public/images')
;
});