forked from rappasoft/laravel-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
81 lines (71 loc) · 3.06 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
var elixir = require('laravel-elixir');
elixir(function(mix) {
mix
.phpUnit()
// Copy webfont files from /vendor directories to /public directory.
.copy('vendor/fortawesome/font-awesome/fonts', 'public/build/fonts/font-awesome')
.copy('vendor/twbs/bootstrap-sass/assets/fonts/bootstrap', 'public/build/fonts/bootstrap')
.copy('vendor/twbs/bootstrap/dist/js/bootstrap.min.js', 'public/js/vendor')
.sass([ // Process front-end stylesheets
'frontend/main.scss'
], 'resources/assets/css/frontend/main.css')
.styles([ // Combine pre-processed CSS files
'frontend/main.css'
], 'public/css/frontend.css')
.scripts([ // Combine front-end scripts
'plugins.js',
'frontend/main.js'
], 'public/js/frontend.js')
.sass([ // Process back-end stylesheets
'backend/main.scss',
'backend/skin.scss',
'backend/plugin/toastr/toastr.scss'
], 'resources/assets/css/backend/main.css')
.styles([ // Combine pre-processed CSS files
'backend/main.css'
], 'public/css/backend.css')
.scripts([ // Combine back-end scripts
'plugins.js',
'backend/main.js',
'backend/plugin/toastr/toastr.min.js',
'backend/custom.js'
], 'public/js/backend.js')
// Apply version control
.version(["public/css/frontend.css", "public/js/frontend.js", "public/css/backend.css", "public/js/backend.js"]);
});
/**
* Uncomment for LESS version
*/
/*elixir(function(mix) {
mix
.phpUnit()
// Copy webfont files from /vendor directories to /public directory.
.copy('vendor/fortawesome/font-awesome/fonts', 'public/build/fonts/font-awesome')
.copy('vendor/twbs/bootstrap/fonts', 'public/build/fonts/bootstrap')
.copy('vendor/twbs/bootstrap/dist/js/bootstrap.min.js', 'public/js/vendor')
.less([ // Process front-end stylesheets
'frontend/main.less'
], 'resources/assets/css/frontend/main.css')
.styles([ // Combine pre-processed CSS files
'frontend/main.css'
], 'public/css/frontend.css')
.scripts([ // Combine front-end scripts
'plugins.js',
'frontend/main.js'
], 'public/js/frontend.js')
.less([ // Process back-end stylesheets
'backend/AdminLTE.less',
'backend/plugin/toastr/toastr.less'
], 'resources/assets/css/backend/main.css')
.styles([ // Combine pre-processed CSS files
'backend/main.css'
], 'public/css/backend.css')
.scripts([ // Combine back-end scripts
'plugins.js',
'backend/main.js',
'backend/plugin/toastr/toastr.min.js',
'backend/custom.js'
], 'public/js/backend.js')
// Apply version control
.version(["public/css/frontend.css", "public/js/frontend.js", "public/css/backend.css", "public/js/backend.js"]);
});*/