-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile.js
104 lines (92 loc) · 2.64 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
/**
*
* @deprecated
* We're using the new mix instead of the older elixir
* Check out the webpack.mix.js file for actual build settings now
*
*/
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.
|
*/
var inProduction = elixir.config.production;
// Add factor-bundle to browserify plugins
elixir.config.js.browserify.plugins.push(
{
name: 'factor-bundle',
options: {
outputs: [
'public/js/main.js',
'public/js/home.js',
'public/js/schedule.js',
'public/js/player.js',
'public/js/recap.js',
'public/js/statEdit.js',
'public/js/jobs.js',
'public/js/stats.js',
'public/js/scavenger/step3.js',
'public/js/scavenger/step4.js',
'public/js/scavenger/step6.js',
'public/js/scavenger/step8.js',
'public/js/porter.js',
'public/js/declan.js',
'public/js/gallery/shutterfly.js',
]
}
}
);
elixir.config.js.browserify.paths = [
'./node_modules',
'./resources/assets/js'
];
elixir(function (mix) {
mix
.sass('main.scss')
.sass('picker.scss');
// mix.browserify('main.js');
mix.browserify(
// Entry points need to be in the same order as the factor bundle outputs
[
'main.js', 'home.js', 'schedule.js', 'player.js', 'recap.js', 'statEdit.js', 'jobs.js', 'stats.js',
'scavenger/step3.js', 'scavenger/step4.js', 'scavenger/step6.js', 'scavenger/step8.js',
'porter.js', 'declan.js',
'gallery/shutterfly.js',
],
'public/js/components.js'
);
var versionedFiles = [
'js/main.js',
'js/home.js',
'js/schedule.js',
'js/player.js',
'js/components.js',
'js/recap.js',
'js/statEdit.js',
'js/jobs.js',
'js/stats.js',
'js/scavenger/step3.js',
'js/scavenger/step4.js',
'js/scavenger/step6.js',
'js/scavenger/step8.js',
'js/porter.js',
'js/declan.js',
'gallery/shutterfly.js',
];
if (inProduction) {
versionedFiles.push('css/main.css');
}
mix.version(versionedFiles);
mix
.copy('bower_components/font-awesome/fonts', 'public/fonts/font-awesome')
.copy('bower_components/league-gothic/webfonts/leaguegothic-regular-webfont.*', 'public/fonts/league-gothic');
mix.browserSync({
proxy: 'hudsonvillewaterpolo.local'
});
});