-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgulpfile.js
114 lines (86 loc) · 3.47 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| 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 Sass
| file for our application, as well as publishing vendor resources.
|
*/
// no need to create Source Map files
elixir.config.sourcemaps = false;
// generic path to the bower-installed packages
var bower_path = 'resources/assets/vendor';
// paths to individual packages
var path = {
'font_awesome' : bower_path + '/font-awesome',
'jquery' : bower_path + '/jquery',
'tether' : bower_path + '/tether',
'jquery_ui' : bower_path + '/jquery-ui',
'bootstrap' : bower_path + '/bootstrap',
'moment' : bower_path + '/moment',
'jeditable' : bower_path + '/jeditable',
'spectrum' : bower_path + '/spectrum',
'file_upload' : bower_path + '/blueimp-file-upload',
'echo' : bower_path + '/laravel-echo',
'timepicker' : bower_path + '/timepicker',
'c_spot' : bower_path + '/c-spot',
};
/*
Themes for jQuery-UI
other good ones: base, pepper-grinder, smoothness, redmond, overcast, sunny, flick, cuppertino, ui-lightness
see: http://jqueryui.com/themeroller/
*/
var ui_theme = 'redmond';
elixir(function(mix) {
/* mix styles */
mix.styles([
path.bootstrap + '/dist/css/bootstrap.css',
path.font_awesome + '/css/font-awesome.css',
path.jquery_ui + '/themes/base/core.css',
path.jquery_ui + '/themes/base/datepicker.css',
path.jquery_ui + '/themes/base/slider.css',
path.jquery_ui + '/themes/base/tabs.css',
path.jquery_ui + '/themes/'+ui_theme+'/theme.css',
path.spectrum + '/spectrum.css',
path.timepicker + '/jquery-ui-timepicker-addon.css',
path.c_spot + '/css/style.css',
path.c_spot + '/css/signin.css',
], 'public/css/all.css', './');
/* mix JS */
mix.scripts([
path.tether + '/dist/js/tether.js',
path.jquery + '/dist/jquery.js',
path.jquery_ui + '/jquery-ui.js',
path.jquery_ui + '/ui/widgets/datepicker.js',
path.jquery_ui + '/ui/widgets/slider.js',
path.bootstrap + '/dist/js/bootstrap.js',
path.moment + '/moment.js',
path.jeditable + '/jquery.jeditable.js',
path.spectrum + '/spectrum.js',
path.file_upload + '/js/jquery.iframe-transport.js',
path.file_upload + '/js/jquery.fileupload.js',
path.timepicker + '/jquery-ui-timepicker-addon.js',
path.c_spot + '/js/_main.js',
path.c_spot + '/js/document.ready.js',
path.c_spot + '/js/spa.utilities.js',
path.c_spot + '/js/presentation.js',
], 'public/js/all.js', './');
// allow for versioning
mix.version(['css/all.css', 'js/all.js']);
/*
copy static files
1. FONTS
*/
mix.copy([
path.font_awesome + '/fonts',
], 'public/build/fonts');
// 2. IMAGES
mix.copy([
path.jquery_ui + '/themes/'+ui_theme+'/images',
], 'public/build/css/images');
// Browser Sync
// mix.browserSync({ proxy: 'c-spot.app' });
});