forked from aws/constructs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.projenrc.js
81 lines (65 loc) · 1.99 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
const { cdk } = require('projen');
const project = new cdk.JsiiProject({
name: 'constructs',
description: 'A programming model for software-defined state',
repository: 'https://github.com/aws/constructs.git',
// release branches
defaultReleaseBranch: '10.x',
majorVersion: 10,
npmDistTag: 'latest',
releaseBranches: {
'3.x': { majorVersion: 3, npmDistTag: 'latest-3' },
},
// author
authorName: 'Amazon Web Services',
authorUrl: 'https://aws.amazon.com',
authorOrganization: true,
homepage: 'https://github.com/aws/constructs',
copyrightPeriod: `2018-${new Date().getFullYear()}`,
copyrightOwner: 'Amazon.com, Inc. or its affiliates. All Rights Reserved.',
keywords: [
'aws',
'constructs',
'cdk',
'jsii',
],
publishToMaven: {
javaPackage: 'software.constructs',
mavenGroupId: 'software.constructs',
mavenArtifactId: 'constructs',
mavenStagingProfileId: 'CONSTRUCTS_MAVEN_STAGING_PROFILE_ID',
mavenEndpoint: 'https://s01.oss.sonatype.org',
},
publishToPypi: {
distName: 'constructs',
module: 'constructs',
},
publishToNuget: {
dotNetNamespace: 'Constructs',
packageId: 'Constructs',
},
publishToGo: {
moduleName: 'github.com/aws/constructs-go',
gitUserName: 'AWS CDK Team',
gitUserEmail: 'aws-cdk-dev@amazon.com',
},
stability: 'stable',
minNodeVersion: '14.17.0',
compat: true,
projenUpgradeSecret: 'PROJEN_GITHUB_TOKEN',
autoApproveOptions: {
allowedUsernames: ['cdklabs-automation'],
secret: 'GITHUB_TOKEN',
},
autoApproveUpgrades: true,
});
// disable go sumdb so that go deps are resolved directly against github
project.tasks.tryFind('package').prependExec('go env -w GOSUMDB=off');
// Also check that our dependency closure is installable using NPM, not just yarn
// (Not just additional steps, make it separate job)
project.buildWorkflow?.addPostBuildJobCommands(
'installable_with_npm',
['npm --version && npm install'],
{ checkoutRepo: true },
);
project.synth();