Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use jsii-struct-builder to produce RoleProps #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .eslintrc.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .projen/files.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const { ProjenStruct, Struct } = require('@mrgrain/jsii-struct-builder');
const { awscdk, github, TextFile, javascript } = require('projen');

const nodejsVersion = '16.20.0';
Expand Down Expand Up @@ -32,7 +33,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
cdkVersion: '2.89.0',
constructsVersion: '10.0.0',
peerDeps: ['constructs', 'aws-cdk-lib'],
devDeps: ['@types/github-username-regex', 'constructs'],
devDeps: ['@types/github-username-regex', 'constructs', '@mrgrain/jsii-struct-builder'],
bundledDeps: [],

// Gitignore
Expand All @@ -51,12 +52,20 @@ const project = new awscdk.AwsCdkConstructLibrary({
},
},


eslintOptions: {
ignorePatterns: ['src/generated/*.ts'], // ignore generated files
},
codeCov: true,
});

new TextFile(project, '.nvmrc', {
lines: [nodejsVersion],
});

new ProjenStruct(project, { name: 'RoleProps', filePath: 'src/generated/iam-role-props.ts' }).mixin(
Struct.fromFqn('aws-cdk-lib.aws_iam.RoleProps')
.omit('assumedBy')
.withoutDeprecated(),
);

project.synth();
7 changes: 1 addition & 6 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

99 changes: 99 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading