-
Notifications
You must be signed in to change notification settings - Fork 0
/
configs.js
64 lines (57 loc) · 2 KB
/
configs.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
const path = require('path');
const fs = require('fs-extra');
const configsCore = require('./lib/configs');
const applicationConfigs = fs.readJsonSync(configsCore.getConfigsPathSync());
const applicationBasePath = applicationConfigs.applicationBasePath;
const applicationPath = applicationConfigs.storefrontPath;
const oracleResourcesDir = applicationConfigs.oracleResourcesDir;
const librariesDir = applicationConfigs.librariesDir;
const apiDir = applicationConfigs.apiDir;
const oracleDirName = applicationConfigs.oracleDirName;
const customDirName = applicationConfigs.customDirName;
module.exports = {
// Application definitions
application: {
applicationBasePath,
basePath: applicationPath,
oracleResourcesDir: oracleResourcesDir,
occInstanceName: applicationConfigs.occInstanceName,
occStoreUrl: applicationConfigs.occStoreUrl,
occAdminUrl: applicationConfigs.occAdminUrl,
HTTPAuth: applicationConfigs.HTTPAuth,
HTTPAuthCredentials: applicationConfigs,
apiDir: apiDir,
oracleApiDirName: oracleDirName,
customApiDirName: customDirName,
oracleApiDir: path.join(apiDir, oracleDirName),
customApiDir: path.join(apiDir, customDirName),
libsDir: librariesDir,
oracleLibsDirName: oracleDirName,
customLibsDirName: customDirName,
oracleLibsDir: path.join(librariesDir, oracleDirName),
customLibsDir: path.join(librariesDir, customDirName),
mocksPath: applicationConfigs.mocksPath
},
// Server Definitions
devServerTempDataPath: applicationConfigs.devServerTempDataPath,
chromeDataDir: path.join(applicationConfigs.devServerTempDataPath, 'chrome'),
webpackDataDir: path.join(applicationConfigs.devServerTempDataPath, 'webpack'),
server: {
api: {
port: 3000,
domain: 'http://localhost'
},
karma: {
port: 9876,
urlRoot: '/app'
}
},
page: 'oe-hero-banner',
// Directories relative to the applicationPath
src: [
'widgets/objectedge/oeHeroBanner'
],
tests: [
'tests/unit/widgets/oeHeroBanner'
]
};