-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
100 lines (86 loc) · 4.02 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
var gulp = require('gulp');
var bower = require('gulp-bower');
var elixir = require('laravel-elixir');
gulp.task('bower', function() {
return bower();
});
var paths = {
'jquery': 'vendor/jquery/dist',
'bootstrap': 'vendor/bootstrap/dist',
'bootswatch': 'vendor/bootswatch/simplex',
'fontawesome': 'vendor/font-awesome',
'colorbox': 'vendor/jquery-colorbox',
'dataTables': 'vendor/datatables/media',
'dataTablesBootstrap3Plugin': 'vendor/datatables-bootstrap3-plugin/media',
'flag': 'vendor/flag-sprites/dist',
'metisMenu': 'vendor/metisMenu/dist',
'datatablesResponsive': 'vendor/datatables-responsive',
'summernote': 'vendor/summernote/dist',
'select2': 'vendor/select2/dist',
'jquery_ui': 'vendor/jquery-ui',
'justifiedGallery': 'vendor/Justified-Gallery/dist/',
};
elixir.config.sourcemaps = false;
elixir(function(mix) {
// Run bower install
mix.task('bower');
// Copy fonts straight to public
mix.copy('resources/' + paths.bootstrap + '/fonts/bootstrap/**', 'public/fonts');
mix.copy('resources/' + paths.fontawesome + '/fonts/**', 'public/fonts');
// Copy images straight to public
mix.copy('resources/' + paths.colorbox + '/example3/images/**', 'public/css/images');
mix.copy('resources/' + paths.jquery_ui + '/themes/base/images/**', 'public/css/images');
// Copy flag resources
mix.copy('resources/' + paths.flag + '/css/flag-sprites.min.css', 'public/css/flags.css');
mix.copy('resources/' + paths.flag + '/img/flags.png', 'public/img/flags.png');
// Merge Site CSSs.
mix.styles([
'../../' + paths.bootstrap + '/css/bootstrap.css',
'../../' + paths.bootstrap + '/css/bootstrap-theme.css',
'../../' + paths.fontawesome + '/css/font-awesome.css',
'../../' + paths.bootswatch + '/bootstrap.css',
'../../' + paths.colorbox + '/example3/colorbox.css',
'../../' + paths.justifiedGallery + '/css/justifiedGallery.css'
], 'public/css/site.css');
// Merge Site scripts.
mix.scripts([
'../../' + paths.jquery + '/jquery.js',
'../../' + paths.bootstrap + '/js/bootstrap.js',
'../../' + paths.colorbox + '/jquery.colorbox.js',
'../../' + paths.justifiedGallery + '/js/jquery.justifiedGallery.js'
], 'public/js/site.js');
// Merge Admin CSSs.
mix.styles([
'../../' + paths.bootstrap + '/css/bootstrap.css',
'../../' + paths.jquery_ui + '/themes/base/jquery.ui.all.css',
'../../' + paths.bootstrap + '/css/bootstrap-theme.css',
'../../' + paths.fontawesome + '/css/font-awesome.css',
'../../' + paths.bootswatch + '/bootstrap.css',
'../../' + paths.colorbox + '/example3/colorbox.css',
'../../' + paths.dataTables + '/css/dataTables.bootstrap.css',
'../../' + paths.dataTablesBootstrap3Plugin + '/css/datatables-bootstrap3.css',
'../../' + paths.metisMenu + '/metisMenu.css',
'../../' + paths.summernote + '/summernote.css',
'../../' + paths.summernote + '/summernote-bs3.css',
'../../' + paths.select2 + '/css/select2.css',
'sb-admin-2.css',
], 'public/css/admin.css');
// Merge Admin scripts.
mix.scripts([
'../../' + paths.jquery + '/jquery.js',
'../../' + paths.jquery_ui + '/ui/jquery.ui.core.js',
'../../' + paths.bootstrap + '/js/bootstrap.js',
'../../' + paths.colorbox + '/jquery.colorbox.js',
'../../' + paths.dataTables + '/js/jquery.dataTables.js',
'../../' + paths.dataTables + '/js/dataTables.bootstrap.js',
'../../' + paths.dataTablesBootstrap3Plugin + '/js/datatables-bootstrap3.js',
'../../' + paths.datatablesResponsive + '/js/dataTables.responsive.js',
'../../' + paths.metisMenu + '/metisMenu.js',
'../../' + paths.summernote + '/summernote.js',
'../../' + paths.select2 + '/js/select2.js',
'bootstrap-dataTables-paging.js',
'dataTables.bootstrap.js',
'datatables.fnReloadAjax.js',
'sb-admin-2.js'
], 'public/js/admin.js');
});