-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
62 lines (51 loc) · 2.09 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
var elixir = require('laravel-elixir');
elixir(function(mix) {
mix.less();
mix.coffee();
mix.copy('node_modules/bootstrap/dist/css/bootstrap.css', 'public/css/vendor/bootstrap.css')
.copy('node_modules/bootstrap/dist/css/bootstrap-theme.css', 'public/css/vendor/bootstrap-theme.css')
.copy('node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css', 'public/css/vendor/bootstrap-datepicker.css');
mix.copy('node_modules/bootstrap/dist/fonts/**', 'public/fonts/');
mix.copy('node_modules/jquery/dist/jquery.js', 'public/js/vendor/jquery.js')
.copy('node_modules/jquery-ujs/src/rails.js', 'public/js/vendor/jquery-ujs.js')
.copy('node_modules/jquery-maskmoney/dist/jquery.maskMoney.js', 'public/js/vendor/jquery.maskMoney.js')
.copy('node_modules/bootstrap/dist/js/bootstrap.js', 'public/js/vendor/bootstrap.js')
.copy('node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.js', 'public/js/vendor/bootstrap-datepicker.js')
.copy('node_modules/bootstrap-datepicker/dist/locales/bootstrap-datepicker.pt-BR.min.js', 'public/js/vendor/bootstrap-datepicker-locale.pt-BR.js')
.copy('node_modules/chart.js/Chart.js', 'public/js/vendor/chart.js');
mix.styles([
'vendor/bootstrap.css'
], 'public/output/site.css', 'public/css');
mix.scripts([
'vendor/jquery.js',
'vendor/jquery-ujs.js',
'vendor/bootstrap.js',
'common/i18n.js',
'common/remote.js',
'site.js'
], 'public/output/site.js', 'public/js');
mix.styles([
'vendor/bootstrap.css',
'vendor/bootstrap-datepicker.css',
'base.css',
'common.css'
], 'public/output/app.css', 'public/css');
mix.scripts([
'vendor/jquery.js',
'vendor/jquery-ujs.js',
'vendor/jquery.maskMoney.js',
'vendor/bootstrap.js',
'vendor/bootstrap-datepicker.js',
'vendor/bootstrap-datepicker-locale.pt-BR.js',
'vendor/chart.js',
'common/i18n.js',
'common/remote.js',
'app.js'
], 'public/output/app.js', 'public/js');
mix.version([
'public/output/site.css',
'public/output/site.js',
'public/output/app.css',
'public/output/app.js'
]);
});