Skip to content

Commit

Permalink
Reorganize Examples into Language Folders (#255)
Browse files Browse the repository at this point in the history
* Move typescript-aws -> typescript/aws

* Adapt monorepo config to new structure

* Add tsconfig to backend examples so we're able to build them

* Move typescript-aws-cloudfront-proxy into typescript folder

* Move typescript-azure into typescript folder

* Move typescript-docker into typescript folder

* Move typescript-google into typescript folder

* Move typescript-kubernetes into typescript folder

* Move typescript-vault into typescript folder

* Move python-kubernetes into python folder

* Move python-aws into python folder

* Move  python-docker into python folder

* Update readme

* Adapt pip reference

* Update pip lockfile to reference new relative path
  • Loading branch information
skorfmann authored Jul 28, 2020
1 parent 8a5d26b commit fa19d37
Show file tree
Hide file tree
Showing 79 changed files with 205 additions and 47 deletions.
29 changes: 22 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,28 @@ Choose a language:

## Examples

* [typescript-aws](./examples/typescript-aws)
* [typescript-aws-cloudfront-proxy](./examples/typescript-aws-cloudfront-proxy)
* [python-aws](./examples/python-aws)
* [python-kubernetes](./examples/python-kubernetes)
* [typescript-docker](./examples/typescript-docker)
* [typescript-google](./examples/typescript-google)
* [typescript-azure](./examples/typescript-azure)
### Typescript

* [aws](./examples/typescript/aws)
* [aws-cloudfront-proxy](./examples/typescript/aws-cloudfront-proxy)
* [azure](./examples/typescript/azure)
* [docker](./examples/typescript/docker)
* [google](./examples/typescript/google)
* [kubernetes](./examples/typescript/kubernetes)
* [vault](./examples/typescript/vault)

#### Backends

* [azurerm](./examples/typescript/backends/azurerm)
* [gcs](./examples/typescript/backends/gcs)
* [remote](./examples/typescript/backends/remote)
* [s3](./examples/typescript/backends/s3)

### Python

* [aws](./examples/python/aws)
* [docker](./examples/python/docker)
* [kubernetes](./examples/python/kubernetes)

## Documentation

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ verify_ssl = true
python_version = "3.7"

[packages]
cdktf = {path = "./../../dist/python/cdktf-0.0.0-py3-none-any.whl"}
cdktf = {path = "./../../../dist/python/cdktf-0.0.0-py3-none-any.whl"}

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

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ verify_ssl = true
python_version = "3.7"

[packages]
cdktf = {path = "./../../dist/python/cdktf-0.0.0-py3-none-any.whl"}
cdktf = {path = "./../../../dist/python/cdktf-0.0.0-py3-none-any.whl"}

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

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ verify_ssl = true
python_version = "3.7"

[packages]
cdktf = {path = "./../../dist/python/cdktf-0.0.0-py3-none-any.whl"}
cdktf = {path = "./../../../dist/python/cdktf-0.0.0-py3-none-any.whl"}

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

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "hello-cdktf",
"name": "aws",
"version": "0.0.0",
"main": "index.js",
"license": "MPL-2.0",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion examples/typescript/backends/azurerm/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules
cdktf.out
terraform.tfstate*
.gen
.terraform
.terraform
!tsconfig.json
4 changes: 2 additions & 2 deletions examples/typescript/backends/azurerm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript-backends-azurerm",
"version": "1.0.0",
"version": "0.0.0",
"main": "main.js",
"types": "main.ts",
"license": "MPL-2.0",
Expand All @@ -23,7 +23,7 @@
"constructs": "^3.0.0"
},
"devDependencies": {
"@types/node": "^14.0.23",
"@types/node": "^14.0.26",
"cdktf-cli": "0.0.0",
"typescript": "^3.9.7"
}
Expand Down
33 changes: 33 additions & 0 deletions examples/typescript/backends/azurerm/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"compilerOptions": {
"alwaysStrict": true,
"charset": "utf8",
"declaration": true,
"experimentalDecorators": true,
"inlineSourceMap": true,
"inlineSources": true,
"lib": [
"es2018"
],
"module": "CommonJS",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"stripInternal": true,
"target": "ES2018"
},
"include": [
"**/*.ts"
],
"exclude": [
"node_modules"
]
}
3 changes: 2 additions & 1 deletion examples/typescript/backends/gcs/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules
cdktf.out
terraform.tfstate*
.gen
.terraform
.terraform
!tsconfig.json
33 changes: 33 additions & 0 deletions examples/typescript/backends/gcs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"compilerOptions": {
"alwaysStrict": true,
"charset": "utf8",
"declaration": true,
"experimentalDecorators": true,
"inlineSourceMap": true,
"inlineSources": true,
"lib": [
"es2018"
],
"module": "CommonJS",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"stripInternal": true,
"target": "ES2018"
},
"include": [
"**/*.ts"
],
"exclude": [
"node_modules"
]
}
3 changes: 2 additions & 1 deletion examples/typescript/backends/remote/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules
cdktf.out
terraform.tfstate*
.gen
.terraform
.terraform
!tsconfig.json
33 changes: 33 additions & 0 deletions examples/typescript/backends/remote/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"compilerOptions": {
"alwaysStrict": true,
"charset": "utf8",
"declaration": true,
"experimentalDecorators": true,
"inlineSourceMap": true,
"inlineSources": true,
"lib": [
"es2018"
],
"module": "CommonJS",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"strict": true,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"stripInternal": true,
"target": "ES2018"
},
"include": [
"**/*.ts"
],
"exclude": [
"node_modules"
]
}
3 changes: 2 additions & 1 deletion examples/typescript/backends/s3/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ node_modules
cdktf.out
terraform.tfstate*
.gen
.terraform
.terraform
!tsconfig.json
Loading

0 comments on commit fa19d37

Please sign in to comment.