-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
88 lines (63 loc) · 2.78 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
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.
|
*/
elixir.config.sourcemaps = false;
elixir(function(mix) {
//-------------------------------------------------------------
// COPY RESOURCES
//-------------------------------------------------------------
// // foundation and it's dependencies
// mix.copy('bower_components/jquery/dist/jquery.min.js', 'resources/assets/js/jquery.min.js'); // jquery
// mix.copy('bower_components/what-input/what-input.min.js', 'resources/assets/js/what-input.min.js'); // what-input
// mix.copy('bower_components/foundation-sites/dist/foundation.min.js', 'resources/assets/js/foundation.min.js');
// mix.copy('bower_components/foundation-sites/scss', 'resources/assets/sass/foundation-sites');
// // angular js
// mix.copy('bower_components/angular/angular.min.js', 'resources/assets/js/angular.min.js');
// // motion ui
mix.copy('bower_components/motion-ui/dist/motion-ui.min.css', 'resources/assets/css/motion-ui.min.css');
mix.copy('bower_components/motion-ui/dist/motion-ui.min.js', 'resources/assets/js/motion-ui.min.js');
mix.copy('bower_components/motion-ui/src', 'resources/assets/sass/motion-ui');
//-------------------------------------------------------------
// COMPILE SASS & COFFEE
//-------------------------------------------------------------
// compile sass
mix.rubySass('foundation-sites.scss', 'resources/assets/css', null);
mix.rubySass('app.scss', 'resources/assets/css', null);
// compile coffee
mix.coffee('finder.coffee', 'resources/assets/js', null);
mix.coffee('issues.coffee', 'resources/assets/js', null);
mix.coffee('repository.coffee', 'resources/assets/js', null);
mix.coffee('helpers.coffee', 'resources/assets/js', null);
mix.coffee('config.coffee', 'resources/assets/js', null);
//-------------------------------------------------------------
// COMBINE STYLES & JS
//-------------------------------------------------------------
// seldom styles & scripts
// combine styles
mix.styles([
'foundation-sites.css',
'motion-ui.min.css',
'app.css'
], 'public/css/base.css');
// combine scripts
mix.scripts([
'jquery.min.js',
'what-input.min.js',
'foundation.min.js',
'motion-ui.min.js',
'angular.min.js',
'helpers.js',
'config.js',
'finder.js',
'issues.js',
'repository.js'
], 'public/js/base.js');
});