-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
79 lines (63 loc) · 2.75 KB
/
gulpfile.js
File metadata and controls
79 lines (63 loc) · 2.75 KB
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
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.
|
*/
elixir(function(mix) {
var bootstrapPath = 'resources/assets/bootstrap';
var sweetalertPath = 'resources/assets/sweetalert';
var select2Path = 'resources/assets/select2';
var cropperPath = 'resources/assets/cropper';
var prismPath = 'resources/assets/prism'
var cssPath = 'resources/assets/css';
var jsPath = 'resources/assets/js';
// for bootstrap
mix.copy(bootstrapPath + '/fonts', 'public/fonts')
.copy(bootstrapPath + '/css', 'public/css')
.copy(bootstrapPath + '/js', 'public/js');
// for sweetalert
mix.copy(sweetalertPath + '/sweetalert.css', 'public/css')
.copy(sweetalertPath + '/sweetalert.min.js', 'public/js');
// for select2
mix.copy(select2Path + '/css', 'public/css')
.copy(select2Path + '/js', 'public/js');
// for cropper
mix.copy(cropperPath + '/cropper.css', 'public/css');
mix.copy(cropperPath + '/cropper.js', 'public/js');
// for cropper canvas to blob support
mix.copy(cropperPath + '/canvas-to-blob.js', 'public/js');
// for jsdiff
mix.copy(jsPath + '/jsdiff', 'public/js/jsdiff');
// for tiny mce
mix.copy(jsPath + '/tinymce', 'public/js/tinymce')
.copy(jsPath + '/equation.js', 'public/js'); // copy equation support
// for prism
mix.copy(prismPath + '/prism.css', 'public/css')
.copy(prismPath + '/prism.js', 'public/js');
// for project css file
mix.sass('app.scss');
// handlebars requirement
mix.copy(jsPath + '/handlebars/handlebars-latest.js', 'public/js');
// for project js file
mix.scripts('main.js')
.copy(jsPath + '/jquery-1.12.3.min.js', 'public/js')
.copy(jsPath + '/bootstrap3-typeahead.js', 'public/js')
.copy(jsPath + '/validator.js', 'public/js')
.copy(jsPath + '/navbar.js', 'public/js')
.copy(jsPath + '/login.js', 'public/js')
.copy(jsPath + '/inbox.js', 'public/js')
.copy(jsPath + '/profile.js', 'public/js')
.copy(jsPath + '/question.js', 'public/js')
.copy(jsPath + '/topic.js', 'public/js')
.copy(jsPath + '/userCenter.js', 'public/js')
.copy(jsPath + '/highlight.js', 'public/js')
.copy(jsPath + '/search.js', 'public/js')
.copy(jsPath + '/bookmark.js', 'public/js')
.copy(jsPath + '/history.js', 'public/js');
});