forked from devimust/easy-bookmark-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
84 lines (70 loc) · 2.54 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
var elixir = require('laravel-elixir');
require('./elixir-extensions')
/*
|--------------------------------------------------------------------------
| 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) {
// delete public files
mix.remove([
'public/build',
'public/css',
'public/js',
'public/fonts',
'public/views',
'public/lang'
]);
// vendor fonts
mix.copy('node_modules/bootstrap/dist/fonts', 'public/fonts');
mix.copy('node_modules/font-awesome/fonts', 'public/fonts');
// vendor styles
mix
.styles([
'normalize.css/normalize.css',
'font-awesome/css/font-awesome.min.css',
'select2/dist/css/select2.min.css'
], 'public/css/vendor.css', 'node_modules')
.sass('bootstrap-darkly.scss')
.sass('bootstrap-sandstone.scss')
.sass('bootstrap-united.scss')
.sass('bootstrap-yeti.scss')
.sass('bootstrap-default.scss');
// vendor scripts
mix
.scripts([
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js',
'node_modules/angular/angular.min.js',
'node_modules/angular-translate/dist/angular-translate.min.js',
'node_modules/angular-translate-loader-url/angular-translate-loader-url.min.js',
'node_modules/angular-route/angular-route.min.js',
'node_modules/select2/dist/js/select2.full.min.js',
'node_modules/ace-editor-builds/src-min-noconflict/ace.js',
'node_modules/ace-editor-builds/src-min-noconflict/mode-snippets.js',
'node_modules/ace-editor-builds/src-min-noconflict/theme-github.js'
], 'public/js/vendor.js', 'node_modules');
// app styles
mix.sass('main.scss');
// app scripts
mix
.jshint('resources/assets/js/**/*.js')
.scripts([
'main.js',
'' // include everything except main.js
], 'public/js/main.js');
// app views
mix.copy('resources/assets/views', 'public/views');
// version js/css
mix.version([
'public/css/main.css',
'public/js/main.js'
]);
// app language files
mix.copy('resources/lang/*.json', 'public/lang');
});