-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
79 lines (70 loc) · 3.42 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
/*
|--------------------------------------------------------------------------
| 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.
|
*/
// NB. Use gulp --production to obtain minimize versions
var elixir = require('laravel-elixir');
elixir(function(mix) {
// copy js from vendor packages to public/js
mix.copy('node_modules/angular/angular.min.js',
'public/js/angular.min.js');
mix.copy('node_modules/angular-messages/angular-messages.min.js',
'public/js/angular-messages.min.js');
mix.copy('node_modules/ngstorage/ngStorage.min.js',
'public/js/ngStorage.min.js');
mix.copy('node_modules/ngmap/build/scripts/ng-map.min.js',
'public/js/ng-map.min.js');
mix.copy('node_modules/angular-selectize2/dist/selectize.js',
'public/js/selectize.js');
mix.copy('node_modules/moment/moment.js',
'public/js/moment.js');
mix.copy('node_modules/angularjs-dropdown-multiselect/dist/angularjs-dropdown-multiselect.min.js', 'public/js/angularjs-dropdown-multiselect.min.js');
mix.copy('resources/assets/js/vendor',
'public/js/vendor');
mix.copy('vendor/ckeditor/ckeditor',
'public/ckeditor');
// move scripts to public/js
mix.scripts(['main.js', '../../../node_modules/jquery/dist/jquery.min.js',
'../../../node_modules/bootstrap-sass/assets/javascripts/bootstrap.min.js'],
'public/js/main.js')
.scripts(['analytics.js'], 'public/js/analytics.js')
.scripts(['angApp.js'], 'public/js/angApp.js')
.scripts(['directoryCtrl.js'], 'public/js/directoryCtrl.js')
.scripts(['resourcesCtrl.js'], 'public/js/resourcesCtrl.js')
.scripts(['sigCtrl.js'], 'public/js/sigCtrl.js')
.scripts(['talksCtrl.js'], 'public/js/talksCtrl.js')
.scripts(['ecCtrl.js'], 'public/js/ecCtrl.js')
// copy css from vendor packages to sass folder
mix.copy('node_modules/selectize-scss/src',
'resources/assets/sass/selectize');
mix.copy('vendor/components/font-awesome/scss',
'resources/assets/sass/font-awesome');
mix.copy('node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss',
'resources/assets/sass/_bootstrap.scss');
mix.copy('node_modules/bootstrap-sass/assets/stylesheets/bootstrap',
'resources/assets/sass/bootstrap');
mix.copy('resources/assets/sass/vendor',
'public/css/vendor');
// copy fonts to public/build/fonts
mix.copy('vendor/components/font-awesome/fonts',
'public/build/fonts');
mix.copy('resources/assets/fonts/lato-fonts',
'public/build/fonts/lato-fonts');
mix.copy('node_modules/bootstrap-sass/assets/fonts/bootstrap',
'public/build/fonts/bootstrap');
mix.copy('resources/assets/fonts/gallery-fonts',
'public/build/fonts/gallery-fonts');
// compile all sass to css and move to public/css
mix.sass('main.scss');
mix.sass('gallery.scss');
// include version
// See: https://laravel.com/docs/5.3/elixir#versioning-and-cache-busting
mix.version(['public/js/main.js', 'public/css/main.css',
'public/css/gallery.css']);
});