Skip to content

Commit

Permalink
refactor: 💡 update with projen build
Browse files Browse the repository at this point in the history
  • Loading branch information
uid10804 committed Mar 3, 2023
1 parent d649fd3 commit 9be57ec
Show file tree
Hide file tree
Showing 15 changed files with 301 additions and 313 deletions.
102 changes: 6 additions & 96 deletions .eslintrc.json

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

2 changes: 2 additions & 0 deletions .gitattributes

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

2 changes: 2 additions & 0 deletions .gitignore

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

1 change: 1 addition & 0 deletions .prettierignore

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

3 changes: 3 additions & 0 deletions .prettierrc.json

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

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

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

2 changes: 2 additions & 0 deletions .projen/files.json

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

63 changes: 33 additions & 30 deletions .projenrc.js
Original file line number Diff line number Diff line change
@@ -1,56 +1,59 @@
const { awscdk } = require('projen');
const { Stability } = require('projen/lib/cdk/jsii-project');
const { awscdk } = require("projen");
const { Stability } = require("projen/lib/cdk/jsii-project");
const project = new awscdk.AwsCdkConstructLibrary({
author: 'Florian Fuß',
author: "Florian Fuß",
stability: Stability.EXPERIMENTAL,
cdkVersion: '2.46.0',
defaultReleaseBranch: 'main',
name: 'cdk-internal-gateway',
repositoryUrl: 'https://github.com/pharindoko/cdk-internal-gateway.git',
license: 'Apache-2.0',
description: 'CDK construct to create to create internal serverless applications.',
cdkVersion: "2.46.0",
defaultReleaseBranch: "main",
name: "cdk-internal-gateway",
repositoryUrl: "https://github.com/pharindoko/cdk-internal-gateway.git",
license: "Apache-2.0",
description:
"CDK construct to create to create internal serverless applications.",
sampleCode: false,
keywords: ['cdk', 'apigateway', 'internal', 'private', 'gateway', 'vpc', 'network', 'api', 'website', 'application', 'company', 'enterprise'],
gitignore: [
'cdk.out',
'cdk.context.json',
'/.idea',
'status.json',
keywords: [
"cdk",
"apigateway",
"internal",
"private",
"gateway",
"vpc",
"network",
"api",
"website",
"application",
"company",
"enterprise",
],
gitignore: ["cdk.out", "cdk.context.json", "/.idea", "status.json"],
releaseToNpm: true,
publishToPypi: {
distName: 'pharindoko.cdk-internal-gateway',
module: 'pharindoko.cdk_internal_gateway',
distName: "pharindoko.cdk-internal-gateway",
module: "pharindoko.cdk_internal_gateway",
},
sampleCode: false,
compat: true,
depsUpgradeOptions: {
workflowOptions: {
labels: ['auto-approve'],
labels: ["auto-approve"],
schedule: {
cron: ['0 0 * * 1'],
cron: ["0 0 * * 1"],
},
},
},
githubOptions: {
pullRequestLintOptions: {
semanticTitleOptions: {
types: [
'feat',
'fix',
'chore',
'docs',
],
types: ["feat", "fix", "chore", "docs"],
},
},
},
pullRequestTemplate: false,
prettier: true
prettier: true,
});


// disable automatic releases, but keep workflow that can be triggered manually
const releaseWorkflow = project.github.tryFindWorkflow('release');
releaseWorkflow.file.addDeletionOverride('on.push');
const releaseWorkflow = project.github.tryFindWorkflow("release");
releaseWorkflow.file.addDeletionOverride("on.push");

project.synth();
project.synth();
3 changes: 3 additions & 0 deletions package.json

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

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './internal-apigateway';
export * from './internal-service';
export * from "./internal-apigateway";
export * from "./internal-service";
Loading

0 comments on commit 9be57ec

Please sign in to comment.