-
Notifications
You must be signed in to change notification settings - Fork 92
/
conf.build.js
executable file
·135 lines (126 loc) · 4.48 KB
/
conf.build.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
130
131
132
133
134
135
/* jshint node: true, camelcase: false */
var vendor_files;
module.exports = {
build_dir: "build",
compile_dir: "dist",
app_files: {
js: [
"src/**/*.js",
"!src/**/*.spec.js",
"!src/**/*.scenario.js",
"!src/assets/**/*.js",
"!src/static/*.js"
],
jsunit: ["src/**/*.spec.js"],
jse2e: ["src/**/*.scenario.js"],
atpl: ["src/app/**/*.tpl.html"],
ctpl: ["src/common/**/*.tpl.html"],
html: ["src/app.html", "src/admin.html", "src/static/**.html"],
sass: ["src/sass/application.scss", "src/sass/admin.scss"]
},
external_files: {
openpgp: ["openpgp.worker.min.js", "openpgp.min.js"]
},
test_files: {
js: [
"vendor/angular-mocks/angular-mocks.js",
"node_modules/chai-as-promised/lib/chai-as-promised.js",
"node_modules/chai-fuzzy/index.js"
]
},
vendor_files: (vendor_files = {
js: [
"vendor/es6-promise/es6-promise.js",
"vendor/jquery/dist/jquery.js",
"vendor/jquery-ui/ui/jquery-ui.js",
"vendor/angular/angular.js",
"vendor/angular-cookies/angular-cookies.js",
"vendor/ng-file-upload/dist/angular-file-upload-shim.js",
"vendor/angular-resource/angular-resource.js",
"vendor/angular-bootstrap/ui-bootstrap.js",
"vendor/angular-bootstrap/ui-bootstrap-tpls.js",
"vendor/angular-ui-router/release/angular-ui-router.js",
"vendor/angular-animate/angular-animate.js",
"vendor/angular-sanitize/angular-sanitize.js",
"vendor/angular-route/angular-route.js",
"vendor/angular-toggle-switch/angular-toggle-switch.min.js",
"vendor/ng-file-upload/dist/ng-file-upload-all.js",
"vendor/lodash/dist/lodash.js",
"vendor/moment/moment.js",
"vendor/underscore.string/lib/underscore.string.js",
"vendor/openpgp/openpgp.min.js",
"vendor/dompurify/purify.js",
"vendor/papaparse/papaparse.min.js",
"vendor/showdown/compressed/showdown.js",
"vendor/angular-markdown-directive/markdown.js",
"vendor/typeahead.js/dist/typeahead.bundle.js",
"vendor/tagmanager/tagmanager.js",
"vendor/autosize-input/jquery.autosize.input.js",
"vendor/mousetrap/mousetrap.js",
"vendor/ng-sortable/dist/ng-sortable.js",
"vendor/dragdealer/src/dragdealer.js",
"vendor/angular-notify/dist/angular-notify.js",
"vendor/pikaday/pikaday.js",
"vendor/pikaday-angular/pikaday-angular.js",
"vendor/squire-rte/build/squire.js",
"vendor/dropzone/dist/dropzone.js",
"vendor/angular-translate/angular-translate.js",
"vendor/angular-translate-loader-static-files/angular-translate-loader-static-files.js",
"vendor/angular-translate-storage-cookie/angular-translate-storage-cookie.js",
"vendor/angular-translate-storage-local/angular-translate-storage-local.js",
"vendor/angular-dragdrop/src/angular-dragdrop.js",
"vendor/vcard/src/vcard.js",
"vendor/mellt/javascript/Mellt.js",
"vendor/mellt/javascript/common-passwords.js",
"vendor/dragster/lib/dragster.js"
],
bootstrap_components: [
"affix",
"alert",
"collapse",
"tooltip",
"dropdown",
"modal",
"transition",
"popover"
],
required_js: [],
included_js: [],
css: [
"vendor/tagmanager/tagmanager.css",
"vendor/ng-sortable/dist/ng-sortable.css",
"vendor/angular-notify/dist/angular-notify.css",
"vendor/angular-modal/modal.css",
"vendor/angular-toggle-switch/angular-toggle-switch.css",
"vendor/angular-toggle-switch/angular-toggle-switch-bootstrap.css",
"vendor/pikaday/css/pikaday.css",
"vendor/dropzone/dist/dropzone.css"
],
sass_include_dirs: [
"vendor/bourbon/dist",
"vendor/font-awesome/scss",
"vendor/bootstrap-sass-official/assets/stylesheets"
],
assets: [
"vendor/font-awesome/fonts"
]
}),
proton_build: {
version: "2.0",
notes: "http://protonmail.dev/blog/",
date: "17 Apr. 2015"
}
};
vendor_files.js = vendor_files.js.concat(vendor_files.bootstrap_components.map(function (cmp){
return "vendor/bootstrap-sass-official/assets/javascripts/bootstrap/"+cmp+".js";
}));
vendor_files.included_js = vendor_files.js.filter(function (file) {
return vendor_files.included_js.every(function (included) {
return file.indexOf(included) === -1;
});
});
vendor_files.required_js = vendor_files.js.filter(function (file) {
return vendor_files.required_js.some(function (required) {
return file.indexOf(required) !== -1;
});
});