-
Notifications
You must be signed in to change notification settings - Fork 3
/
bundle.config.js
99 lines (87 loc) · 3.01 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
var paths = require("./paths.config.js");
module.exports = {
// library script bundle
// not minified!
librarySrc: [
npm("/lodash/lodash.min.js"),
npm("/jquery/dist/jquery.min.js"),
npm("/select2/select2.js"),
npm("/select2/select2_locale_da.js"),
npm("/moment/min/moment.min.js"),
npm("/json-fn/jsonfn.min.js"),
npm("/tinymce/tinymce.js"),
npm("/tinymce/plugins/image/plugin.min.js"),
npm("/tinymce/plugins/code/plugin.min.js"),
npm("/tinymce/plugins/link/plugin.min.js"),
npm("/tinymce/themes/silver/theme.min.js"),
npm("/tinymce/icons/default/icons.min.js"),
npm("/js-sha256/src/sha256.js")
],
libraryBundle: "library-bundle.min.js",
libraryStylesSrc: [
npm("/select2/select2.css"),
npm("/select2-bootstrap-css/select2-bootstrap.min.css"),
npm("/angular-loading-bar/build/loading-bar.min.css"),
npm("/angular-ui-tree/dist/angular-ui-tree.min.css"),
npm("/tinymce/skins/ui/oxide/skin.min.css"),
npm("/tinymce/skins/ui/oxide/content.min.css"),
npm("/tinymce/skins/content/default/content.css"),
npm("/tinymce/skins/content/default/content.min.css")
],
// angular script bundle
// not minified
angularSrc: [
npm("/angular/angular.min.js"),
npm("/angular-i18n/angular-locale_da-dk.js"),
npm("/angular-animate/angular-animate.min.js"),
npm("/angular-sanitize/angular-sanitize.min.js"),
npm("/angular-ui-router/release/angular-ui-router.min.js"),
npm("/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"),
npm("/angular-ui-select2/src/select2.js"),
npm("/angular-loading-bar/build/loading-bar.min.js"),
npm("/angular-confirm/angular-confirm.min.js"),
npm("/angular-messages/angular-messages.min.js"),
npm("/angular-ui-tree/dist/angular-ui-tree.min.js"),
npm("/angular-ui-tinymce/src/tinymce.js"),
npm("/angular-route/angular-route.js"),
npm("/ngstorage/ngstorage.js"),
npm("/angular-base64/angular-base64.js"),
npm("/angular-cookies/angular-cookies.min.js")
],
angularBundle: "angular-bundle.min.js",
// app script bundle
appSrc: paths.allJavaScriptNoTests,
appBundle: "app-bundle.min.js",
// font bundle
fontSrc: [
npm("/bootstrap/dist/fonts/*.*"),
npm("/font-awesome/fonts/*.*")
],
// assets
assetsSrc: [
npm("/select2/*.png"),
npm("/select2/*.gif")
],
// custom style bundle
customCssSrc: [
content("/less/styles.less")
],
cssBundle: "app.css",
cssBundleMin: "app.min.css",
fontDest: content("/fonts"),
cssDest: content("/css"),
maps: "maps",
script: script,
content: content,
npm: npm
};
// path helper functions
function script(file) {
return paths.sourceScript + "/" + file;
}
function content(file) {
return paths.source + "/Content" + file;
}
function npm(file) {
return paths.npm + "/" + file;
}