-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.projenrc.js
73 lines (60 loc) · 1.64 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
67
68
69
70
71
72
73
const { awscdk, github, TextFile, javascript } = require('projen');
const nodejsVersion = '14.17.6';
const project = new awscdk.AwsCdkConstructLibrary({
// Metadata
stability: 'experimental',
authorName: 'Alma Media',
authorOrganization: true,
authorAddress: '[email protected]',
name: '@alma-cdk/origin-verify',
description: 'Enforce origin traffic via CloudFront.',
repositoryUrl: 'https://github.com/alma-cdk/origin-verify.git',
keywords: ['cdk', 'aws-cdk', 'awscdk', 'aws', 'cloudfront', 'api-gateway', 'application-load-balancer'],
// Publish configuration
defaultReleaseBranch: 'main',
majorVersion: 0,
releaseBranches: {
beta: {
majorVersion: 1,
prerelease: 'beta',
npmDistTag: 'beta',
},
},
packageManager: javascript.NodePackageManager.NPM,
npmAccess: javascript.NpmAccess.PUBLIC,
// python: {
// distName: 'alma-cdk.origin-verify',
// module: 'alma_cdk.origin_verify',
// },
publishToGo: {
moduleName: 'github.com/alma-cdk/origin-verify-go',
},
// Dependencies
minNodeVersion: nodejsVersion,
cdkVersion: '2.24.1',
constructsVersion: '10.0.0',
peerDeps: ['constructs', 'aws-cdk-lib'],
devDeps: [
'aws-cdk-lib',
'constructs',
],
bundledDeps: [
],
// Gitignore
gitignore: [
'.DS_Store',
'/examples/**/cdk.context.json',
'/examples/**/node_modules',
'/examples/**/cdk.out',
'/examples/**/.git',
'**/*.drawio.bkp',
],
});
new TextFile(project, '.nvmrc', {
lines: [nodejsVersion],
});
new TextFile(project, '.python-version', {
lines: ['3.11.8'],
});
project.addPackageIgnore('/examples/');
project.synth();