This repository has been archived by the owner on Sep 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
gulpfile.js
46 lines (41 loc) · 1.44 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
function path(path, source) {
if (typeof(source) === 'undefined') {
path = './bower_components/' + path;
}
if (source == 'assets') {
path = './resources/assets/' + path;
}
return path;
}
var elixir = require('laravel-elixir');
elixir.config.sourcemaps = false;
elixir(function(mix) {
mix
// Stylesheets
.sass('rna.scss', 'public/css/', {
includePaths: [
path('font-awesome/scss'),
path('Materialize/sass'),
path('fullcalendar/dist'),
path('datetimepicker'),
path('unslider/dist/css'),
path('css/vendor', 'assets')
]
})
// Scripts
.scripts([
path('jquery/dist/jquery.js'),
path('Materialize/dist/js/materialize.js'),
path('moment/min/moment-with-locales.js'),
path('fullcalendar/dist/fullcalendar.js'),
path('datetimepicker/build/jquery.datetimepicker.full.js'),
path('unslider/dist/js/unslider-min.js'),
path('jquery-sortable/source/js/jquery-sortable-min.js'),
path('marked/marked.min.js'),
path('bootstrap-markdown/js/bootstrap-markdown.js'),
path('js/vendor/materialize-tags.js', 'assets'),
path('js/rna.js', 'assets')
], 'public/js/rna.js', './')
// Versioning
.version(['js/rna.js', 'css/rna.css']);
});