Skip to content

Commit

Permalink
Merge pull request #86 from cdklabs/rmuller/discovery-function
Browse files Browse the repository at this point in the history
Updates to the discovery function draft PR
  • Loading branch information
RomainMuller committed Jun 15, 2021
2 parents 29ee913 + a771dee commit 843cab2
Show file tree
Hide file tree
Showing 21 changed files with 2,739 additions and 2,355 deletions.
5 changes: 4 additions & 1 deletion .gitattributes

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

22 changes: 22 additions & 0 deletions .github/workflows/auto-approve.yml

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

1 change: 1 addition & 0 deletions .github/workflows/upgrade-dependencies.yml

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

105 changes: 0 additions & 105 deletions .github/workflows/upgrade-projen.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore

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

1 change: 0 additions & 1 deletion .projen/deps.json

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

25 changes: 2 additions & 23 deletions .projen/tasks.json

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

28 changes: 22 additions & 6 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { basename, join, dirname, relative } = require('path');
const glob = require('glob');
const { pascalCase } = require('pascal-case');
const { SourceCode, FileBase, JsonFile, JsiiProject } = require('projen');
const { SourceCode, FileBase, JsonFile, JsiiProject, DependenciesUpgradeMechanism } = require('projen');

const cdkDeps = [
'@aws-cdk/aws-certificatemanager',
Expand All @@ -26,6 +26,9 @@ const cdkDeps = [
'constructs',
];

const cdkAssert = '@aws-cdk/assert';
const cdkCli = 'aws-cdk';

const project = new JsiiProject({
name: 'construct-hub',
description: 'A construct library that model Construct Hub instances.',
Expand All @@ -37,19 +40,16 @@ const project = new JsiiProject({
homepage: 'https://github.com/cdklabs',
defaultReleaseBranch: 'main',
mergify: false,
dependabot: false,

author: 'Amazon Web Services, Inc.',
authorAddress: 'construct-ecosystem-team@amazon.com',
authorOrganization: true,

cdkVersion: '1.100.0',

devDeps: [
'@aws-cdk/assert',
cdkAssert,
'@types/aws-lambda',
'@types/fs-extra',
'aws-cdk',
cdkCli,
'aws-sdk-mock',
'aws-sdk',
'esbuild',
Expand Down Expand Up @@ -103,6 +103,22 @@ const project = new JsiiProject({

// Exclude handler images from TypeScript compier path
excludeTypescript: ['resources/**'],
autoApproveOptions: {
allowedUsernames: ['aws-cdk-automation'],
secret: 'GITHUB_TOKEN',
},
autoApproveUpgrades: true,
depsUpgrade: DependenciesUpgradeMechanism.githubWorkflow({
exclude: [...cdkDeps, cdkAssert, cdkCli],
ignoreProjen: false,
workflowOptions: {
labels: ['auto-approve'],
secret: 'CDK_AUTOMATION_GITHUB_TOKEN',
container: {
image: 'jsii/superchain',
},
},
}),
});

// Required while we vendor-in jsii-rosetta to a pre-release version
Expand Down
Loading

0 comments on commit 843cab2

Please sign in to comment.