-
Notifications
You must be signed in to change notification settings - Fork 4
/
.projenrc.ts
38 lines (37 loc) · 1.35 KB
/
.projenrc.ts
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
import { awscdk } from 'projen';
import { NodePackageManager } from 'projen/lib/javascript';
const project = new awscdk.AwsCdkConstructLibrary({
projenrcTs: true,
author: 'tmokmss',
authorAddress: '[email protected]',
cdkVersion: '2.38.0', // For using @aws-cdk/integ-runner
defaultReleaseBranch: 'main',
jsiiVersion: '~5.5.0',
name: 'deploy-time-build',
license: 'MIT',
repositoryUrl: 'https://github.com/tmokmss/deploy-time-build.git',
publishToPypi: {
distName: 'deploy-time-build',
module: 'deploy_time_build',
},
packageManager: NodePackageManager.NPM,
eslintOptions: {
dirs: [],
ignorePatterns: ['example/**/*', 'lambda/**/*', 'test/assets/**/*', 'test/*.snapshot/**/*', '*.d.ts'],
},
gitignore: ['*.js', '*.d.ts', '!test/*.integ.snapshot/**/*'],
keywords: ['aws', 'cdk', 'lambda', 'aws-cdk', 'ecr', 'ecs'],
tsconfigDev: {
compilerOptions: {},
exclude: ['example', 'test/*.integ.snapshot'],
},
devDeps: ['@aws-cdk/[email protected]', '@aws-cdk/[email protected]'],
description: 'Build during CDK deployment.',
});
// Bundle custom resource handler Lambda code
project.projectBuild.compileTask.prependExec('npm ci && npm run build', {
cwd: 'lambda/trigger-codebuild',
});
// Run integ-test
project.projectBuild.testTask.exec('npx tsc -p tsconfig.dev.json && npx integ-runner');
project.synth();