-
Notifications
You must be signed in to change notification settings - Fork 1
/
.projenrc.js
42 lines (35 loc) · 1.32 KB
/
.projenrc.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
const { TypeScriptProject } = require('projen');
const dependencies = {
'cdk-pipeline-app': 'github:mmuller88/cdk-pipeline-app#master',
}
const devDependencies = {
"prettier": "^2.1.2",
};
const name = 'alfresco-ocr';
const project = new TypeScriptProject({
name: "alfresco-ocr",
authorAddress: "[email protected]",
authorName: "Martin Müller",
repository: `https://github.com/mmuller88/${name}`,
keywords: [
"cdk",
"ec2",
"alfresco",
"ocr",
],
releaseWorkflow: false,
dependencies: dependencies,
devDependencies: devDependencies,
});
const stage = '${STAGE:-dev}';
project.addScripts({
'clean': 'rm -rf ./cdk.out && rm -rf ./cdk.out ./build',
// skip test in build: yarn run test
'build': 'yarn run clean && yarn install && yarn run compile',
'cdkdeploy': `yarn run build && cdk deploy ${name}-${stage} --profile damadden88 --require-approval never`,
'cdksynth': `yarn run build && cdk synth ${name}-${stage} --profile damadden88`,
'cdkdestroy': `yarn run build && yes | cdk destroy ${name}-${stage} --profile damadden88`,
'cdkpipelinediff': `yarn run build && cdk diff ${name}-pipeline --profile damadden88 || true`,
'cdkpipelinedeploy': `yarn run build && cdk deploy ${name}-pipeline --profile damadden88 --require-approval never`,
});
project.synth();