forked from rappasoft/laravel-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
79 lines (70 loc) · 1.85 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
var elixir = require('laravel-elixir');
elixir(function(mix) {
mix
.phpUnit()
/**
* Copy needed files from /node directories
* to /public directory.
*/
.copy(
'node_modules/font-awesome/fonts',
'public/build/fonts/font-awesome'
)
.copy(
'node_modules/bootstrap-sass/assets/fonts/bootstrap',
'public/build/fonts/bootstrap'
)
.copy(
'node_modules/bootstrap-sass/assets/javascripts/bootstrap.min.js',
'public/js/vendor/bootstrap'
)
/**
* Process frontend SCSS stylesheets
*/
.sass([
'frontend/app.scss',
'plugin/sweetalert/sweetalert.scss'
], 'resources/assets/css/frontend/app.css')
/**
* Combine pre-processed frontend CSS files
*/
.styles([
'frontend/app.css'
], 'public/css/frontend.css')
/**
* Combine frontend scripts
*/
.scripts([
'plugin/sweetalert/sweetalert.min.js',
'plugins.js',
'frontend/app.js'
], 'public/js/frontend.js')
/**
* Process backend SCSS stylesheets
*/
.sass([
'backend/app.scss',
'backend/plugin/toastr/toastr.scss',
'plugin/sweetalert/sweetalert.scss'
], 'resources/assets/css/backend/app.css')
/**
* Combine pre-processed backend CSS files
*/
.styles([
'backend/app.css'
], 'public/css/backend.css')
/**
* Combine backend scripts
*/
.scripts([
'plugin/sweetalert/sweetalert.min.js',
'plugins.js',
'backend/app.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"]);
});