-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgulpfile.js
More file actions
106 lines (87 loc) · 3.21 KB
/
Copy pathgulpfile.js
File metadata and controls
106 lines (87 loc) · 3.21 KB
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
const elixir = require('laravel-elixir');
require('laravel-elixir-vue');
// Here is where JavaScript dependencies are stored.
var path_to_modules = '../../../node_modules/';
/*
|--------------------------------------------------------------------------
| 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.
|
*/
elixir(mix => {
mix.sass('app.scss');
mix.sass(['pages/login.scss'], 'public/css/sneefr.login.css');
mix.sass(['pages/pricing.scss'], 'public/css/sneefr.pricing.css');
// Styles coming from JavaScript components.
mix.styles([
path_to_modules + 'dropzone/dist/min/dropzone.min.css',
path_to_modules + 'ideal-image-slider/ideal-image-slider.css',
path_to_modules + 'ideal-image-slider/themes/default/default.css',
// Main CSS of the application.
'../../../public/css/app.css'
], 'public/css/all.css');
mix.scripts([
// Scripts coming from JavaScript components.
path_to_modules+'jquery/dist/jquery.min.js',
path_to_modules+'bootstrap-sass/assets/javascripts/bootstrap.js',
path_to_modules+'geocomplete/jquery.geocomplete.min.js',
path_to_modules+'clipboard/dist/clipboard.min.js',
path_to_modules+'timeago/jquery.timeago.js',
// Main script of the application.
'app.js',
'sneefr.settings.js'
], 'public/js/all.js');
// Validation on-the-fly of forms
mix.scripts([
path_to_modules+'jquery-validation/dist/jquery.validate.js',
'sneefr.autovalidate.js'],
'public/js/sneefr.autovalidate.js'
);
// Ad display
mix.scripts([
path_to_modules+'baguettebox.js/dist/baguetteBox.min.js',
path_to_modules+'javascript-flex-images/flex-images.min.js',
'sneefr.ad.js',
],
'public/js/sneefr.ad.js'
);
// Ad creation and edition
mix.scripts([
path_to_modules+'dropzone/dist/min/dropzone.min.js',
'sneefr.ad_edition.js',
],
'public/js/sneefr.ad_edition.js'
);
// Billing
mix.scripts(['sneefr.billing.js'], 'public/js/sneefr.billing.js');
// Delivery
mix.scripts(['sneefr.delivery.js'], 'public/js/sneefr.delivery.js');
// Shops
mix.scripts(['sneefr.shops.js'], 'public/js/sneefr.shops.js');
// Auto Complete
mix.scripts(['sneefr.autocomplete.js'], 'public/js/sneefr.autocomplete.js');
// Sliders
mix.scripts([
path_to_modules+'ideal-image-slider/ideal-image-slider.min.js',
'sneefr.slider.js'
], 'public/js/sneefr.slider.js');
// Cache buster
mix.version([
'css/all.css',
'css/sneefr.login.css',
'css/sneefr.pricing.css',
'js/all.js',
'js/sneefr.autovalidate.js',
'js/sneefr.ad.js',
'js/sneefr.ad_edition.js',
'js/sneefr.billing.js',
'js/sneefr.delivery.js',
'js/sneefr.shops.js',
'js/sneefr.autocomplete.js',
'js/sneefr.slider.js'
]);
});