-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.js
64 lines (63 loc) · 2.22 KB
/
index.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 Logger = require('@naturacosmeticos/clio-nodejs-logger');
const AppSettings = require('./src/app-settings');
const BaseCommand = require('./src/commands/base-command');
const baseEvents = require('./src/base-events');
const { BucketFactory, PROVIDERS } = require('./src/utils/bucket');
const expressAdapter = require('./src/express/handler-to-function-adapter');
const expressAppBuilder = require('./src/express/app-builder');
const ExpressAuthenticatedHandler = require('./src/express/authenticated-handler');
const expressCorsMiddleware = require('./src/express/cors-middleware');
const ExpressHandler = require('./src/express/handler');
const expressLoggingMiddleware = require('./src/express/logging-middleware');
const ExpressUserAuthenticatedHandler = require('./src/express/user-authenticated-handler');
const lambdaAdapter = require('./src/message-queue/lambda-handler-adapter');
const LambdaHandler = require('./src/message-queue/lambda-handler');
const mochaHelpers = require('./src/tests/mocha-helpers');
const Module = require('./src/module');
const NodeInspector = require('./src/development/node-inspector');
const Security = require('./src/security');
const testsHelpers = require('./src/tests/helpers');
const TypeOrmConfigFactory = require('./src/orm/typeorm/typeorm-config-factory');
const typeOrmLogger = require('./src/orm/typeorm/logger');
const ArrayUtils = require('./src/utils/array');
const CorrelationIdHandler = require('./src/utils/correlation-id-handler');
module.exports = {
App: {
baseEvents,
Command: BaseCommand,
Logger,
Security,
Settings: AppSettings,
},
Express: {
adapter: expressAdapter,
appBuilder: expressAppBuilder,
AuthenticatedHandler: ExpressAuthenticatedHandler,
corsMiddleware: expressCorsMiddleware,
Handler: ExpressHandler,
loggingMiddleware: expressLoggingMiddleware,
UserAuthenticatedHandler: ExpressUserAuthenticatedHandler,
},
External: {
TypeOrmConfigFactory,
typeOrmLogger,
},
MessageQueue: {
lambdaAdapter,
LambdaHandler,
},
Tests: {
helpers: testsHelpers,
mochaHelpers,
},
Util: {
ArrayUtils,
Bucket: {
BucketFactory,
PROVIDERS,
},
CorrelationIdHandler,
Module,
NodeInspector,
},
};