-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
61 lines (45 loc) · 1.89 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
const elixir = require('laravel-elixir');
require('laravel-elixir-sass-compass');
elixir.config.assetsPath = './resources/assets/';
elixir.config.publicPath = './public/assets/';
var paths = {
destination : elixir.config.publicPath,
source : elixir.config.assetsPath,
npm : './node_modules/'
};
var fontExtensions = ['eot', 'svg', 'ttf', 'woff', 'woff2'];
elixir(function(mix) {
fontExtensions.forEach(function(ext) {
mix.copy(
paths.npm + 'bootstrap/dist/fonts/glyphicons-halflings-regular.' + ext,
paths.destination + 'fonts/glyphicons-halflings-regular.' + ext
);
mix.copy(
paths.npm + 'font-awesome/fonts/fontawesome-webfont.' + ext,
paths.destination + 'fonts/fontawesome-webfont.' + ext
);
});
mix.copy(
paths.npm + 'font-awesome/fonts/FontAwesome.otf',
paths.destination + 'fonts/FontAwesome.otf'
);
mix.scripts([
paths.npm + 'jquery/dist/jquery.min.js',
paths.npm + 'bootstrap/dist/js/bootstrap.min.js',
paths.npm + 'bootstrap/js/alert.js',
paths.npm + 'jquery-countdown/dist/jquery.countdown.min.js',
paths.source + 'plugins/datetimepicker/jquery.datetimepicker.js',
paths.source + 'plugins/jquery-ui/jquery-ui.min.js',
paths.source + 'plugins/autosize.min.js',
paths.source + 'js/script.js'
], paths.destination + 'js/app.js');
mix.sass([
paths.source + 'sass/fonts.scss',
// paths.bower + 'bootstrap/dist/css/bootstrap.min.css',
paths.source + 'plugins/paper/bootstrap.min.css',
// paths.bower + 'bootstrap/dist/css/bootstrap-theme.min.css',
paths.npm + 'font-awesome/css/font-awesome.min.css',
paths.source + 'plugins/datetimepicker/jquery.datetimepicker.css',
paths.source + 'sass/style.scss'
], paths.destination + 'css/app.css');
});