-
Notifications
You must be signed in to change notification settings - Fork 6
/
.projenrc.js
60 lines (50 loc) · 1.78 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
const { NpmAccess } = require('projen');
const { ProjectType } = require('projen');
const { AwsCdkConstructLibrary } = require('projen');
const { DependabotScheduleInterval } = require('projen/lib/github');
const project = new AwsCdkConstructLibrary({
name: '@seeebiii/projen-test',
repositoryUrl: 'https://github.com/seeebiii/projen-test',
author: 'seeebiii',
authorName: 'Sebastian Hesse',
authorAddress: 'https://www.sebastianhesse.de',
jsiiFqn: 'projen.AwsCdkConstructLibrary',
cdkVersion: '1.97.0',
cdkAssert: true,
cdkDependencies: ['@aws-cdk/core', '@aws-cdk/aws-lambda'],
cdkVersionPinning: false, // see https://www.matthewbonig.com/2021/04/06/automating-construct-publishing/
devDeps: ['esbuild'],
npmAccess: NpmAccess.PUBLIC,
projectType: ProjectType.LIB,
docgen: true,
eslint: true,
mergify: true,
antitamper: true,
dependabot: true,
dependabotOptions: {
autoMerge: true,
ignoreProjen: true,
scheduleInterval: DependabotScheduleInterval.WEEKLY,
},
gitignore: ['.idea'],
defaultReleaseBranch: 'main',
releaseBranches: ['main'],
releaseToNpm: true,
releaseWorkflow: true,
publishToMaven: {
mavenGroupId: 'de.sebastianhesse.examples',
mavenArtifactId: 'projen-test',
javaPackage: 'de.sebastianhesse.examples.projen.test',
},
publishToNuget: {
dotNetNamespace: 'SebastianHesse.Examples',
packageId: 'Projen.Test',
},
publishToPypi: {
distName: 'projen-test',
module: 'projen_test',
},
});
// example to show how you can use your own esbuild task to bundle your Lambda function without using constructs like NodejsFunction
project.compileTask.exec('esbuild src/lambda-bundled/index.js --bundle --platform=node --target=node12 --external:aws-sdk --outfile=lib/lambda-bundled/index.js');
project.synth();