-
Notifications
You must be signed in to change notification settings - Fork 0
/
_configs.js
56 lines (48 loc) · 1.58 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
const path = require('path');
const applicationPath = '/Users/douglashipolito/Sites/occ/occ-trainning/storefront';
const devServerTempDataPath = path.join(process.env.HOME || process.env.HOMEPATH, 'occ-dev-server');
const oracleResourcesDir = path.join(applicationPath, 'oracle-resources');
const librariesDir = path.join(oracleResourcesDir, 'libraries');
const apiDir = path.join(oracleResourcesDir, 'api');
const oracleDirName = 'default';
const customDirName = 'custom';
module.exports = {
// Application definitions
application: {
basePath: applicationPath,
oracleResourcesDir: oracleResourcesDir,
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: path.join(applicationPath, 'mocks')
},
// Server Definitions
devServerTempDataPath: devServerTempDataPath,
chromeDataDir: path.join(devServerTempDataPath, 'chrome'),
webpackDataDir: path.join(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'
],
};