Skip to content

Commit

Permalink
feat: Support Go
Browse files Browse the repository at this point in the history
  • Loading branch information
lym953 committed Jul 31, 2024
1 parent 56cf543 commit a10c530
Show file tree
Hide file tree
Showing 25 changed files with 1,451 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitattributes

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

4 changes: 2 additions & 2 deletions .gitignore

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

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

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

15 changes: 14 additions & 1 deletion .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const project = new awscdk.AwsCdkConstructLibrary({
distName: "datadog-cdk-constructs-v2",
module: "datadog_cdk_constructs_v2",
},
publishToGo: {
moduleName: "github.com/DataDog/datadog-cdk-constructs",
packageName: "ddcdkconstruct",
},
peerDeps: [],
cdkVersion: "2.134.0",
deps: ["loglevel"],
Expand Down Expand Up @@ -48,7 +52,6 @@ const project = new awscdk.AwsCdkConstructLibrary({
"integration_tests/testlib",
"bin",
"obj",
"dist",
"__pycache__",
],
npmignore: [
Expand Down Expand Up @@ -106,6 +109,16 @@ eslintConfig.addOverride("rules", {

project.addGitIgnore("!integration_tests/tsconfig.json");

// Remove the auto-added "dist" folder
project.gitignore.removePatterns("/dist/");
// The two lines below makes git track "dist/go" and ignore all other folders
// under "dist/"
project.gitignore.addPatterns("dist/*");
project.gitignore.include("!dist/go");

// Collapse the generated Go package on GitHub
project.gitattributes.addAttributes("/dist/go/** linguist-generated");

eslintConfig.addDeletionOverride("rules.quotes");
/*
TODO: tasks.json & package.json DeletionOverrides can be simplified to 5
Expand Down
202 changes: 202 additions & 0 deletions dist/go/ddcdkconstruct/Datadog.go

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

45 changes: 45 additions & 0 deletions dist/go/ddcdkconstruct/DatadogProps.go

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

31 changes: 31 additions & 0 deletions dist/go/ddcdkconstruct/DatadogStrictProps.go

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

Loading

0 comments on commit a10c530

Please sign in to comment.