-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-config.js
118 lines (112 loc) · 5.15 KB
/
build-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
const config = {
path: './dist',
// webpack dev server public path
publicPath: '/sage',
terserOptions: {
ecma: 5,
format: {},
parse: {},
compress: {
unused: false,
},
mangle: false,
module: false
},
stats: {},
client: {
overlay: false,
},
copy: [
{
from: './node_modules/@wvr/core/app/resources/images',
to: './node_modules/@wvr/core/app/resources/images'
},
{
from: './node_modules/@wvr/core/app/views',
to: './node_modules/@wvr/core/app/views'
},
{
from: './build/appConfig.js.template',
to: './appConfig.js',
transform(content) {
return content
.toString()
.replace('${AUTH_STRATEGY}', 'weaverAuth')
.replace('${AUTH_SERVICE_URL}', 'https://labs.library.tamu.edu/auth/2x')
.replace('${STOMP_DEBUG}', 'false')
.replace('${AVALON_URL}', 'avalon-pre.library.tamu.edu:443');
},
},
],
entry: {
app: [
'./node_modules/jquery/dist/jquery.js',
'./node_modules/bootstrap/dist/js/bootstrap.js',
'./node_modules/sockjs-client/dist/sockjs.js',
'./node_modules/stompjs/lib/stomp.js',
'./node_modules/angular/angular.js',
'./node_modules/angular-route/angular-route.js',
'./node_modules/angular-loader/angular-loader.js',
'./node_modules/angular-sanitize/angular-sanitize.js',
'./node_modules/angular-messages/angular-messages.js',
'./node_modules/ng-file-upload/dist/ng-file-upload-shim.js',
'./node_modules/ng-file-upload/dist/ng-file-upload.js',
'./node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js',
'./node_modules/ng-table/bundles/ng-table.js',
'./node_modules/openseadragon/build/openseadragon/openseadragon.js',
'./src/main/webapp/app/resources/scripts/ng-openseadragon/build/angular-openseadragon.js',
'./node_modules/tamu-mirador/dist/mirador.min.js',
'./node_modules/@wvr/core/app/config/coreConfig.js',
'./node_modules/@wvr/core/app/components/version/version.js',
'./node_modules/@wvr/core/app/components/version/version-directive.js',
'./node_modules/@wvr/core/app/components/version/interpolate-filter.js',
'./src/main/webapp/app/config/apiMapping.js',
'./node_modules/@wvr/core/app/core.js',
'./node_modules/@wvr/core/app/setup.js',
'./node_modules/@wvr/core/app/config/coreRuntime.js',
'./node_modules/@wvr/core/app/config/coreAngularConfig.js',
'./node_modules/@wvr/core/app/config/logging.js',
'./node_modules/@wvr/core/app/constants/apiResponseActions.js',
'./node_modules/@wvr/core/app/constants/httpMethodVerbs.js',
'./node_modules/@wvr/core/app/directives/headerDirective.js',
'./node_modules/@wvr/core/app/directives/footerDirective.js',
'./node_modules/@wvr/core/app/directives/userDirective.js',
'./node_modules/@wvr/core/app/directives/modalDirective.js',
'./node_modules/@wvr/core/app/directives/alertDirective.js',
'./node_modules/@wvr/core/app/directives/accordionDirective.js',
'./node_modules/@wvr/core/app/directives/tabsDirective.js',
'./node_modules/@wvr/core/app/directives/tooltipDirective.js',
'./node_modules/@wvr/core/app/directives/validationMessageDirective.js',
'./node_modules/@wvr/core/app/directives/validatedInputDirective.js',
'./node_modules/@wvr/core/app/directives/validatedSelectDirective.js',
'./node_modules/@wvr/core/app/directives/validatedTextAreaDirective.js',
'./node_modules/@wvr/core/app/services/accessControlService.js',
'./node_modules/@wvr/core/app/services/wsService.js',
'./node_modules/@wvr/core/app/services/wsApi.js',
'./node_modules/@wvr/core/app/services/restApi.js',
'./node_modules/@wvr/core/app/services/fileService.js',
'./node_modules/@wvr/core/app/services/authService.js',
'./node_modules/@wvr/core/app/services/storageService.js',
'./node_modules/@wvr/core/app/services/utilityService.js',
'./node_modules/@wvr/core/app/services/alertService.js',
'./node_modules/@wvr/core/app/services/validationStore.js',
'./node_modules/@wvr/core/app/services/userService.js',
'./node_modules/@wvr/core/app/services/modalService.js',
'./node_modules/@wvr/core/app/services/modelCache.js',
'./node_modules/@wvr/core/app/services/modelUpdateService.js',
'./node_modules/@wvr/core/app/repo/abstractRepo.js',
'./node_modules/@wvr/core/app/model/abstractModel.js',
'./node_modules/@wvr/core/app/model/assumedControl.js',
'./node_modules/@wvr/core/app/model/user.js',
'./node_modules/@wvr/core/app/controllers/abstractController.js',
'./node_modules/@wvr/core/app/controllers/coreAdminController.js',
'./node_modules/@wvr/core/app/controllers/authenticationController.js',
'./node_modules/@wvr/core/app/controllers/loginController.js',
'./node_modules/@wvr/core/app/controllers/registrationController.js',
'./node_modules/@wvr/core/app/controllers/userController.js',
'./node_modules/@wvr/core/app/controllers/errorPageController.js',
'./src/main/webapp/app/**/*(*.js)'
],
}
}
module.exports.config = config;