-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
43 lines (36 loc) · 1.36 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
43
const { TypeScriptProject } = require('projen');
const dependencies = {
'alf-cdk-app-pipeline': 'github:mmuller88/alf-cdk-app-pipeline#v0.0.10',
}
const devDeps = {
"prettier": "^2.1.2",
}
const name = 'alf-cdk-api-gw';
const project = new TypeScriptProject({
name: name,
authorAddress: "[email protected]",
authorName: "Martin Müller",
repository: `https://github.com/mmuller88/${name}`,
dependencies,
devDependencies: devDeps,
peerDependencies: dependencies,
keywords: [
"cdk",
"api-gw"
],
releaseWorkflow: false,
});
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.tsconfig.compilerOptions.rootDir=undefined;
project.gitignore.exclude(['cdk.out']);
project.synth();