forked from ManageIQ/ui-components
-
Notifications
You must be signed in to change notification settings - Fork 1
/
application-settings.js
42 lines (42 loc) · 1.06 KB
/
application-settings.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
"use strict";
module.exports = {
stylesFolder: '/styles',
sourceFolder: '/src',
distFolder: '/dist',
javascriptFolder: 'js',
stylesheetFolder: 'css',
appName: 'ui-components',
bowerLibs: 'libs/',
modules: {
toolbar: '/toolbar',
common: '/common',
gtl: '/gtl',
siteSwitcher: '/site-switcher'
},
nodePackages: 'node_modules/',
get stylesheetPath() {
return this.stylesheetFolder + '/[name]' + '.css';
},
get indexLocation() {
return __dirname + '/demo/index.html';
},
isMinified: function (production) {
return (!production ? '.js' : '.min.js');
},
get sassEntryPoint() {
return '.' + this.sourceFolder + this.stylesFolder + '/' + this.appName + '.scss'
},
get tsEntryPoint() {
return '.' + this.sourceFolder + '/index.ts'
},
get tsModules() {
let availableObjects = [];
Object.keys(this.modules).forEach(key => {
availableObjects.push('.' + this.sourceFolder + this.modules[key]);
});
return availableObjects;
},
get outputFolder() {
return __dirname + this.distFolder
}
};