Skip to content

Commit

Permalink
chore: migrate to TypeScript for projen configuration (cdklabs#383)
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions <[email protected]>
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
mrgrain and github-actions authored Jun 13, 2023
1 parent fbd348c commit 53f6c82
Show file tree
Hide file tree
Showing 18 changed files with 129 additions and 38 deletions.
11 changes: 7 additions & 4 deletions .eslintrc.json

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

2 changes: 1 addition & 1 deletion .gitattributes

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

2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/build.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/pull-request-lint.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/release.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/upgrade-main.yml

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

2 changes: 1 addition & 1 deletion .gitignore

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

2 changes: 1 addition & 1 deletion .mergify.yml

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

2 changes: 1 addition & 1 deletion .npmignore

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

2 changes: 1 addition & 1 deletion .prettierignore

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

6 changes: 5 additions & 1 deletion .projen/deps.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/files.json

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

6 changes: 3 additions & 3 deletions .projen/tasks.json

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

20 changes: 6 additions & 14 deletions .projenrc.js → .projenrc.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const { awscdk, javascript, DependencyType } = require("projen");
const { workflows } = require("projen/lib/github");
import { awscdk, javascript, github, DependencyType } from "projen";

const CDK_VERSION = "2.65.0";

const project = new awscdk.AwsCdkConstructLibrary({
name: "cdk-monitoring-constructs",
projenrcTs: true,
repositoryUrl: "https://github.com/cdklabs/cdk-monitoring-constructs",
author: "CDK Monitoring Constructs Team",
authorAddress: "[email protected]",
Expand Down Expand Up @@ -66,14 +66,6 @@ _By submitting this pull request, I confirm that my contribution is made under t

// Code linting config
prettier: true,
prettierOptions: {
arrowParens: "always",
bracketSpacing: false,
printWidth: 140,
semi: true,
tabWidth: 4,
trailingComma: "all",
},
});

// Experimental modules
Expand All @@ -95,7 +87,7 @@ _By submitting this pull request, I confirm that my contribution is made under t
project.deps.addDependency("@types/[email protected]", DependencyType.DEVENV);

// Add some other eslint rules followed across this project
project.eslint.addRules({
project.eslint?.addRules({
"no-case-declarations": "off",
"no-bitwise": "off",
"no-shadow": "off",
Expand All @@ -112,12 +104,12 @@ project.eslint.addRules({
project.addPackageIgnore("*.ts");
project.addPackageIgnore("!*.d.ts");

project.release.addJobs({
project.release?.addJobs({
notify_slack: {
name: "Send Slack notification",
runsOn: "ubuntu-latest",
runsOn: ["ubuntu-latest"],
permissions: {
actions: workflows.JobPermission.READ,
actions: github.workflows.JobPermission.READ,
},
needs: [
"release",
Expand Down
3 changes: 2 additions & 1 deletion package.json

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

6 changes: 4 additions & 2 deletions tsconfig.dev.json

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

Loading

0 comments on commit 53f6c82

Please sign in to comment.