-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
61 lines (53 loc) · 1.38 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
const { AwsCdkConstructLibrary } = require('projen');
const project = new AwsCdkConstructLibrary({
authorAddress: '[email protected]',
authorName: 'Ken Winner',
name: 'cdk-bucket-deployment-expirator',
description: 'Opinionated CDK Bucket Deployment object pruner for maintaining N old versions',
repository: 'https://github.com/kcwinner/cdk-bucket-deployment-expirator.git',
catalog: {
twitter: 'KenWin0x539',
},
defaultReleaseBranch: 'main',
codeCov: true,
dependabotOptions: {
ignore: [
{ dependencyName: '@aws-cdk*' },
],
},
cdkVersion: '1.87.1',
cdkDependencies: [
'@aws-cdk/aws-iam',
'@aws-cdk/aws-lambda',
'@aws-cdk/aws-lambda-nodejs',
'@aws-cdk/aws-s3',
'@aws-cdk/aws-s3-deployment',
'@aws-cdk/core',
],
peerDeps: [
'constructs',
],
devDeps: [
'aws-sdk',
'aws-sdk-mock',
'esbuild',
'nock',
],
gitignore: [
'.build',
],
python: {
distName: 'cdk-bucket-deployment-expirator',
module: 'cdk_bucket_deployment_expirator',
},
});
project.addTask('clean', {
exec: 'rm -rf .build',
});
project.addTask('build:lambda', {
exec: 'yarn run clean && esbuild lambda/src/index.ts --bundle --outdir=.build/ --target=node12 --platform=node',
});
project.addTask('test', {
exec: 'yarn run build:lambda && jest --passWithNoTests --updateSnapshot && yarn run eslint',
});
project.synth();