-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
executable file
·125 lines (121 loc) · 4.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
var elixir = require('laravel-elixir');
require('laravel-elixir-ngtemplatecache');
/*
|--------------------------------------------------------------------------
| 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) {
mix
.ngTemplateCache('/*.html', 'resources/assets/js/templates', 'resources/assets/templates', {
templateCache: {
filename: 'defaultTemplates.js',
module: 'defaultTemplates',
standalone: true,
},
htmlmin: {
collapseWhitespace: true,
removeComments: true,
},
})
.ngTemplateCache('/*.html', 'resources/assets/js/templates', 'resources/assets/templates/home', {
templateCache: {
filename: 'homeTemplates.js',
module: 'homeTemplates',
standalone: true
},
htmlmin: {
collapseWhitespace: true,
removeComments: true
}
})
.ngTemplateCache('/*.html', 'resources/assets/js/templates', 'resources/assets/templates/dashboard', {
templateCache: {
filename: 'dashboardTemplates.js',
module: 'dashboardTemplates',
// standalone: true,
},
htmlmin: {
collapseWhitespace: true,
removeComments: true,
}
})
.ngTemplateCache('/*.html', 'resources/assets/js/templates', 'resources/assets/templates/static', {
templateCache: {
filename: 'staticTemplates.js',
module: 'staticTemplates',
standalone: true,
},
htmlmin: {
collapseWhitespace: true,
removeComments: true,
}
})
.styles([
"vendor/bootstrap.min.css",
"vendor/mdb.css",
"vendor/angular-material.min.css",
"vendor/angular-toastr.css",
"vendor/style.css",
], 'public/css/vendor.min.css')
.styles([
"home.css",
"dialog.css",
], 'public/css/home.min.css')
.styles([
"vendor/dropzone.css",
"post_property.css",
"dashboard.css",
"animation.css",
], 'public/css/dashboard.min.css')
.styles([
"static_page.css",
], 'public/css/static.min.css')
.scripts([
"jquery/jquery-3.1.1.min.js",
"jquery/tether.min.js",
"jquery/bootstrap.min.js",
"angular/vendor/angular.min.js",
"angular/vendor/ui-bootstrap-paging-2.5.0.min.js",
"angular/vendor/ui-bootstrap-modals-2.5.0.min.js",
"angular/vendor/angular-animate.min.js",
"angular/vendor/angular-aria.min.js",
"angular/vendor/angular-messages.min.js",
// "angular/vendor/angular-sticky.js",
"angular/vendor/angular-material.min.js",
"angular/vendor/angular-ui-router.min.js",
"angular/vendor/angular-toastr.tpls.js",
"angular/vendor/satellizer.min.js",
"angular/vendor/angular-utf8-base64.min.js",
"angular/vendor/moment.min.js",
"templates/defaultTemplates.js",
"angular/vendor/angular-local-storage.js",
"angular/app.js",
"angular/route.js",
"angular/directives/appDirective.js",
"angular/filter.js",
"angular/controllers/appController.js",
"angular/services/appService.js"
], 'public/js/vendor.min.js')
.scripts([
"templates/homeTemplates.js",
"angular/controllers/homeController.js",
"angular/services/homeService.js",
], 'public/js/home.min.js')
.scripts([
"jquery/dropzone.js",
"templates/dashboardTemplates.js",
"angular/directives/dashboardDirective.js",
"angular/controllers/dashboardController.js",
"angular/services/dashboardService.js",
], 'public/js/dashboard.min.js')
.scripts([
"templates/staticTemplates.js",
"angular/controllers/staticController.js",
], 'public/js/static.min.js')
});