-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
66 lines (62 loc) · 2.16 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
62
63
64
65
66
const { awscdk } = require('projen');
const {
NodeProject,
NpmAccess,
UpgradeDependenciesSchedule,
} = require('projen/lib/javascript');
const project = new awscdk.AwsCdkConstructLibrary({
author: 'Lars Fronius',
authorAddress: '[email protected]',
defaultReleaseBranch: 'main',
cdkVersion: '2.80.0',
name: '@larsfronius/commercetools-cdk-constructs',
repositoryUrl: 'https://github.com/larsfronius/commercetools-cdk-constructs.git',
constructsVersion: '10.3.0',
lambdaAutoDiscover: true,
devDeps: ['@aws-cdk/assert'],
excludeTypescript: ['src/commercetools-subscription-provider/**', 'src/commercetools-api-extension-provider/**'],
eslint: true,
depsUpgradeOptions: {
workflowOptions: {
schedule: UpgradeDependenciesSchedule.WEEKLY,
},
},
eslintOptions: {
ignorePatterns: ['src/commercetools-subscription-provider/**', 'src/commercetools-api-extension-provider/**'],
},
releaseToNpm: true,
npmAccess: NpmAccess.PUBLIC,
});
const ctSubscriptionProviderProject = new NodeProject({
name: 'commercetools-subscription-provider',
repositoryDirectory: 'src/commercetools-subscription-provider',
defaultReleaseBranch: 'main',
entrypoint: 'index.lambda.ts',
deps: ['@commercetools/platform-sdk', '@commercetools/sdk-client-v2', '@middy/core', '@middy/secrets-manager'],
devDeps: ['esbuild', 'typescript', '@types/aws-lambda'],
jest: false,
jestOptions: {
jestConfig: {
rootDir: 'src/commercetools-subscription-provider',
},
},
parent: project,
outdir: 'src/commercetools-subscription-provider',
});
const ctApiExtensionProviderProject = new NodeProject({
name: 'commercetools-api-extension-provider',
repositoryDirectory: 'src/commercetools-api-extension-provider',
defaultReleaseBranch: 'main',
entrypoint: 'index.lambda.ts',
deps: ['@commercetools/platform-sdk', '@commercetools/sdk-client-v2', '@middy/core', '@middy/secrets-manager'],
devDeps: ['esbuild', 'typescript', '@types/aws-lambda'],
jest: false,
jestOptions: {
jestConfig: {
rootDir: 'src/commercetools-api-extension-provider',
},
},
parent: project,
outdir: 'src/commercetools-api-extension-provider',
});
project.synth();