This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
forked from os2kitos/kitos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle.config.js
131 lines (112 loc) · 3.91 KB
/
bundle.config.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
126
127
128
129
var paths = require("./paths.config.js");
module.exports = {
// library script bundle
// not minified!
librarySrc: [
bower("/lodash/dist/lodash.min.js"),
bower("/jquery/dist/jquery.min.js"),
bower("/select2/select2.min.js"),
bower("/select2/select2_locale_da.js"),
bower("/moment/min/moment.min.js"),
bower("/jsonfn-bower/jsonfn.min.js"),
bower("/tinymce/tinymce.js"),
bower("/tinymce/plugins/image/plugin.min.js"),
bower("/tinymce/plugins/code/plugin.min.js"),
bower("/tinymce/plugins/link/plugin.min.js"),
bower("/tinymce/themes/modern/theme.min.js")
],
libraryBundle: "library-bundle.min.js",
libraryStylesSrc: [
bower("/select2/select2.css"),
bower("/select2-bootstrap-css/select2-bootstrap.min.css"),
bower("/angular-loading-bar/build/loading-bar.min.css"),
bower("/angular-ui-tree/dist/angular-ui-tree.min.css"),
bower("/tinymce/skins/lightgray/skin.min.css"),
bower("/tinymce/skins/lightgray/content.min.css")
],
// angular script bundle
// not minified
angularSrc: [
bower("/angular/angular.min.js"),
bower("/angular-i18n/angular-locale_da-dk.js"),
bower("/angular-animate/angular-animate.min.js"),
bower("/angular-sanitize/angular-sanitize.min.js"),
bower("/angular-ui-router/release/angular-ui-router.min.js"),
bower("/angular-bootstrap/ui-bootstrap-tpls.min.js"),
bower("/angular-ui-select2/src/select2.js"),
bower("/angular-loading-bar/build/loading-bar.min.js"),
bower("/angularjs-dropdown-multiselect/dist/angularjs-dropdown-multiselect.min.js"),
bower("/angular-confirm-modal/angular-confirm.min.js"),
bower("/angular-messages/angular-messages.min.js"),
bower("/angular-ui-tree/dist/angular-ui-tree.min.js"),
bower("/angular-ui-tinymce/src/tinymce.js"),
bower("/ZingChart-AngularJS/src/zingchart-angularjs.js"),
bower("/angular-route/angular-route.js"),
bower("/ngstorage/ngstorage.js"),
bower("/angular-base64/angular-base64.js"),
bower("/oidc-angular/oidc-angular.js")
],
angularBundle: "angular-bundle.min.js",
// app script bundle
appSrc: paths.allJavaScriptNoTests,
appBundle: "app-bundle.min.js",
// app script bundle
appReportSrc: [
app("models/api/organization-role.js"),
appReport("reportApp.module.js"),
app("shared/notify/notify.module.js"),
app("shared/notify/notify.directive.js"),
app("shared/notify/notify.factory.js"),
appReport("services/stimulsoftService.js"),
app("services/ReportService.js"),
app("services/userServices.js"),
appReport("report-viewer.controller.js")
],
appReportBundle: "appReport-bundle.min.js",
// font bundle
fontSrc: [
bower("/bootstrap/dist/fonts/*.*"),
bower("/font-awesome/fonts/*.*")
],
tinyMCEFontSrc: [
bower("/tinymce/skins/lightgray/fonts/*.*")
],
// assets
assetsSrc: [
bower("/select2/*.png"),
bower("/select2/*.gif")
],
// custom style bundle
customCssSrc: [
content("/less/styles.less")
],
cssBundle: "app.css",
cssBundleMin: "app.min.css",
fontDest: content("/fonts"),
tinyMCEFontDest: content("/css/fonts"),
cssDest: content("/css"),
maps: "maps",
script: script,
content: content,
bower: bower,
npm: npm
};
// path helper functions
function script(file) {
return paths.sourceScript + "/" + file;
}
function content(file) {
return paths.source + "/Content" + file;
}
function bower(file) {
return paths.bowerComponents + "/" + file;
}
function npm(file) {
return paths.npm + "/" + file;
}
function app(file) {
return "Presentation.Web/app/" + file;
}
function appReport(file) {
return "Presentation.Web/appReport/" + file;
}