forked from bkintanar/HRis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
89 lines (81 loc) · 3.36 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
var elixir = require('laravel-elixir');
var paths = {
'bower_components': './resources/assets/bower_components',
'fonts': './resources/fonts',
'build': './public/build',
'plugins': './public/js/plugins',
'scripts': './public/js',
'styles': './public/css',
'output': './public/output',
'root': './'
};
/*
|--------------------------------------------------------------------------
| 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(function(mix) {
/**
* Styles
*/
mix.less([
'dependencies.less'
], paths.styles + '/dependencies.css')
.sass([
'style.sass'
], paths.styles + '/style.css')
.styles([
'dependencies.css',
'animate.css',
'plugins/iCheck/custom.css',
'../../resources/assets/bower_components/bootstrap-tagsinput/dist/bootstrap-tagsinput.css',
'style.css'
], null, paths.styles);
/**
* Scripts
*/
mix.scripts([
paths.bower_components + '/jquery/dist/jquery.min.js',
paths.bower_components + '/bootstrap/dist/js/bootstrap.min.js',
paths.bower_components + '/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js',
paths.bower_components + '/jasny-bootstrap/dist/js/jasny-bootstrap.min.js',
paths.bower_components + '/chosen/chosen.jquery.min.js',
paths.bower_components + '/iCheck/icheck.min.js',
paths.bower_components + '/bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js',
paths.bower_components + '/sweetalert2/dist/sweetalert2.min.js',
paths.bower_components + '/moment/moment.js',
//paths.bower_components + '/cropper/dist/cropper.min.js',
paths.plugins + '/metisMenu/jquery.metisMenu.js',
paths.plugins + '/slimscroll/jquery.slimscroll.min.js',
paths.plugins + '/pace/pace.min.js',
paths.scripts + '/inspinia.js',
paths.scripts + '/custom.js'
], null, './');
/**
* Styles and Script Version
*/
mix.version([paths.styles + '/all.css', paths.scripts + '/all.js']);
/**
* Fonts & Images
*/
mix.copy(paths.bower_components + '/font-awesome/fonts', paths.build + '/fonts')
.copy(paths.bower_components + '/jquery.filthypillow/*.*', paths.plugins + '/jquery.filthypillow/')
.copy(paths.bower_components + '/typeahead.js/dist/', paths.plugins + '/typeahead/')
.copy(paths.bower_components + '/bootstrap/fonts', paths.build + '/fonts')
.copy(paths.bower_components + '/chosen/*.png', paths.build + '/css')
.copy(paths.bower_components + '/cropper/src/img/bg.png', paths.build + '/img/')
.copy(paths.styles + '/plugins/iCheck/*.png', paths.build + '/css')
.copy(paths.fonts + '/OpenSans', paths.build + '/fonts')
.copy(paths.styles + '/patterns', paths.build + '/css/patterns');
/**
* Browserify
*/
mix.browserify('modules/time/attendance/app.js', 'public/js/attendance.js');
mix.browserify('modules/time/requisition/app.js', 'public/js/requisition.js');
mix.browserify('modules/time/holidays_and_events/app.js', 'public/js/holidays_and_events.js');
});