-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
61 lines (52 loc) · 1.83 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
// https://github.com/projen/projen/blob/main/docs/awscdk-construct.md
const { AwsCdkConstructLibrary, ProjectType } = require('projen');
const project = new AwsCdkConstructLibrary({
// ProjectOptions
name: 'cdk-user-pool-identity-provider-github',
projectType: ProjectType.LIB,
// NodeProjectOptions
defaultReleaseBranch: 'main',
// TypeScriptProjectOptions
// docgen: true,
// JsiiProjectOptions
repositoryUrl: 'https://github.com/scenario-labs/cdk-user-pool-identity-provider-github.git',
// dotnet: {
// dotNetNamespace: 'Acme.HelloNamespace',
// packageId: 'Acme.HelloPackage',
// },
// java: {
// javaPackage: 'com.acme.hello',
// mavenArtifactId: 'hello-jsii',
// mavenGroupId: 'com.acme.hello',
// serverId: 'github',
// repositoryUrl: 'https://maven.pkg.github.com/example/hello-jsii',
// },
// python: {
// distName: 'acme.hello-jsii',
// module: 'acme.hello_jsii'
// },
// ConstructLibraryOptions
catalog: {
announce: true,
},
// AwsCdkConstructLibraryOptions
cdkVersion: '1.95.2',
cdkAssert: true,
cdkDependencies: ['@aws-cdk/core', '@aws-cdk/aws-apigateway', '@aws-cdk/aws-cognito', '@aws-cdk/aws-lambda'],
// NodePackageOptions
description: 'A CDK construct that adds GitHub as an identity provider to a Cognito user pool',
authorName: 'Scenario',
authorEmail: '[email protected]',
authorOrganization: true,
authorUrl: 'https://www.scenario3d.com',
license: 'MIT',
licensed: 'true',
copyrightOwner: 'Scenario',
copyrightPeriod: '2021',
repository: 'https://github.com/scenario-labs/cdk-user-pool-identity-provider-github.git',
keywords: ['Cognito user pool', 'Github', 'CDK construct'],
});
// The Dockerfile isn't interpreted by TypeScript
// We need to copy it manually
project.compileTask.exec('cp src/Dockerfile lib/');
project.synth();