-
Notifications
You must be signed in to change notification settings - Fork 6
/
.projenrc.js
83 lines (71 loc) · 1.79 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
74
75
76
77
78
79
80
81
82
83
const { awscdk, 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/openapix',
description: 'Combine the power of AWS CDK & OpenAPI YAML Schema Definitions',
repositoryUrl: 'https://github.com/alma-cdk/openapix.git',
keywords: ['cdk', 'aws-cdk', 'awscdk', 'aws', 'cloudfront', 'api-gateway', 'rest-api', 'open-api', 'swagger'],
// 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.openapix',
// module: 'alma_cdk.openapix',
// },
publishToGo: {
moduleName: 'github.com/alma-cdk/openapix-go',
},
// Dependencies
minNodeVersion: nodejsVersion,
cdkVersion: '2.32.1',
constructsVersion: '10.0.0',
peerDeps: [
'constructs',
'aws-cdk-lib',
],
devDeps: [
'constructs',
'aws-cdk-lib',
'semver',
'@types/lodash',
'@types/js-yaml',
'@types/omit-deep-lodash',
'@types/[email protected]',
'@types/semver',
],
bundledDeps: [
'change-case',
'lodash',
'js-yaml',
'omit-deep-lodash',
'semver',
],
// Gitignore
gitignore: [
'.DS_Store',
'/examples/**/cdk.context.json',
'/examples/**/node_modules',
'/examples/**/cdk.out',
'/examples/**/.git',
'.vscode',
],
});
new TextFile(project, '.nvmrc', {
lines: [nodejsVersion],
});
project.addPackageIgnore('/examples/');
project.synth();