Skip to content

Commit 576cb49

Browse files
authored
fix(core): prettier fix (#340)
1 parent 4670336 commit 576cb49

File tree

440 files changed

+36968
-36968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+36968
-36968
lines changed

src/core/cdk/src/index.ts

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,58 @@
1-
import * as path from 'path';
2-
import * as cdk from '@aws-cdk/core';
3-
import { InitialSetup } from './initial-setup';
4-
5-
process.on('unhandledRejection', (reason, _) => {
6-
console.error(reason);
7-
process.exit(1);
8-
});
9-
10-
async function main() {
11-
const env = process.env;
12-
const pkg = require('../package.json');
13-
14-
// Load accelerator parameters
15-
const app = new cdk.App();
16-
17-
const acceleratorName = env.ACCELERATOR_NAME || 'PBMM';
18-
const acceleratorPrefix = env.ACCELERATOR_PREFIX || 'PBMMAccel-';
19-
const stateMachineName = env.ACCELERATOR_STATE_MACHINE_NAME || `${acceleratorPrefix}MainStateMachine_sm`;
20-
const stateMachineExecutionRole = env.ACCELERATOR_STATE_MACHINE_ROLE_NAME || `${acceleratorPrefix}PipelineRole`;
21-
22-
const configRepositoryName = env.CONFIG_REPOSITORY_NAME || `${acceleratorPrefix}Config-Repo`;
23-
const configBranchName = env.CONFIG_BRANCH_NAME || 'master';
24-
const configS3Bucket =
25-
env.CONFIG_S3_BUCKET || `${acceleratorPrefix.toLowerCase()}${cdk.Aws.ACCOUNT_ID}-${cdk.Aws.REGION}-config`;
26-
27-
const enablePrebuiltProject = 'ENABLE_PREBUILT_PROJECT' in env;
28-
const notificationEmail = env.NOTIFICATION_EMAIL || 'notify@example.com';
29-
30-
// Make Sure we change version in "package.json" with respect to code releases
31-
const acceleratorVersion = pkg.version;
32-
console.log(`Installing Accelerator with version: ${acceleratorVersion}`);
33-
34-
console.log(`Found accelerator context:`);
35-
console.log(` Name: ${acceleratorName}`);
36-
console.log(` Prefix: ${acceleratorPrefix}`);
37-
38-
// Find the root director of the solution
39-
const solutionRoot = path.join(__dirname, '..', '..', '..', '..');
40-
// Create the initial setup pipeline stack
41-
new InitialSetup(app, `${acceleratorPrefix}InitialSetup`, {
42-
configRepositoryName,
43-
configBranchName,
44-
configS3Bucket,
45-
acceleratorPrefix,
46-
acceleratorName,
47-
solutionRoot,
48-
stateMachineName,
49-
stateMachineExecutionRole,
50-
terminationProtection: true,
51-
enablePrebuiltProject,
52-
notificationEmail,
53-
acceleratorVersion,
54-
});
55-
}
56-
57-
// tslint:disable-next-line: no-floating-promises
58-
main();
1+
import * as path from 'path';
2+
import * as cdk from '@aws-cdk/core';
3+
import { InitialSetup } from './initial-setup';
4+
5+
process.on('unhandledRejection', (reason, _) => {
6+
console.error(reason);
7+
process.exit(1);
8+
});
9+
10+
async function main() {
11+
const env = process.env;
12+
const pkg = require('../package.json');
13+
14+
// Load accelerator parameters
15+
const app = new cdk.App();
16+
17+
const acceleratorName = env.ACCELERATOR_NAME || 'PBMM';
18+
const acceleratorPrefix = env.ACCELERATOR_PREFIX || 'PBMMAccel-';
19+
const stateMachineName = env.ACCELERATOR_STATE_MACHINE_NAME || `${acceleratorPrefix}MainStateMachine_sm`;
20+
const stateMachineExecutionRole = env.ACCELERATOR_STATE_MACHINE_ROLE_NAME || `${acceleratorPrefix}PipelineRole`;
21+
22+
const configRepositoryName = env.CONFIG_REPOSITORY_NAME || `${acceleratorPrefix}Config-Repo`;
23+
const configBranchName = env.CONFIG_BRANCH_NAME || 'master';
24+
const configS3Bucket =
25+
env.CONFIG_S3_BUCKET || `${acceleratorPrefix.toLowerCase()}${cdk.Aws.ACCOUNT_ID}-${cdk.Aws.REGION}-config`;
26+
27+
const enablePrebuiltProject = 'ENABLE_PREBUILT_PROJECT' in env;
28+
const notificationEmail = env.NOTIFICATION_EMAIL || 'notify@example.com';
29+
30+
// Make Sure we change version in "package.json" with respect to code releases
31+
const acceleratorVersion = pkg.version;
32+
console.log(`Installing Accelerator with version: ${acceleratorVersion}`);
33+
34+
console.log(`Found accelerator context:`);
35+
console.log(` Name: ${acceleratorName}`);
36+
console.log(` Prefix: ${acceleratorPrefix}`);
37+
38+
// Find the root director of the solution
39+
const solutionRoot = path.join(__dirname, '..', '..', '..', '..');
40+
// Create the initial setup pipeline stack
41+
new InitialSetup(app, `${acceleratorPrefix}InitialSetup`, {
42+
configRepositoryName,
43+
configBranchName,
44+
configS3Bucket,
45+
acceleratorPrefix,
46+
acceleratorName,
47+
solutionRoot,
48+
stateMachineName,
49+
stateMachineExecutionRole,
50+
terminationProtection: true,
51+
enablePrebuiltProject,
52+
notificationEmail,
53+
acceleratorVersion,
54+
});
55+
}
56+
57+
// tslint:disable-next-line: no-floating-promises
58+
main();

0 commit comments

Comments
 (0)