terraform-cdk-serverless-github-actions-runner-controller 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json ADDED
@@ -0,0 +1,146 @@
1
+ {
2
+ "name": "terraform-cdk-serverless-github-actions-runner-controller",
3
+ "repository": {
4
+ "type": "git",
5
+ "url": "https://github.com/Hi-Fi/terraform-cdk-serverless-github-actions-runner-controller.git"
6
+ },
7
+ "scripts": {
8
+ "build": "npx projen build",
9
+ "bump": "npx projen bump",
10
+ "clobber": "npx projen clobber",
11
+ "compat": "npx projen compat",
12
+ "compile": "npx projen compile",
13
+ "default": "npx projen default",
14
+ "docgen": "npx projen docgen",
15
+ "eject": "npx projen eject",
16
+ "eslint": "npx projen eslint",
17
+ "package": "npx projen package",
18
+ "package-all": "npx projen package-all",
19
+ "package:js": "npx projen package:js",
20
+ "post-compile": "npx projen post-compile",
21
+ "post-upgrade": "npx projen post-upgrade",
22
+ "pre-compile": "npx projen pre-compile",
23
+ "release": "npx projen release",
24
+ "test": "npx projen test",
25
+ "test:watch": "npx projen test:watch",
26
+ "unbump": "npx projen unbump",
27
+ "upgrade": "npx projen upgrade",
28
+ "watch": "npx projen watch",
29
+ "projen": "npx projen",
30
+ "terraform:test": "./scripts/tf-module-test.sh"
31
+ },
32
+ "author": {
33
+ "name": "Hi-Fi",
34
+ "email": "juho.saarinen@gmail.com",
35
+ "organization": false
36
+ },
37
+ "devDependencies": {
38
+ "@cdktf/provider-azurerm": "13.26.0",
39
+ "@cdktf/provider-random": "11.1.1",
40
+ "@types/jest": "^29.5.14",
41
+ "@types/node": "ts5.6",
42
+ "@typescript-eslint/eslint-plugin": "^8",
43
+ "@typescript-eslint/parser": "^8",
44
+ "cdktf": "0.20.0",
45
+ "cdktf-cli": "~0.20.0",
46
+ "commit-and-tag-version": "^12",
47
+ "constructs": "10.4.2",
48
+ "eslint": "^9",
49
+ "eslint-config-prettier": "^10.1.2",
50
+ "eslint-import-resolver-typescript": "^4.3.4",
51
+ "eslint-plugin-import": "^2.31.0",
52
+ "eslint-plugin-prettier": "^5.2.6",
53
+ "jest": "^29.7.0",
54
+ "jest-junit": "^16",
55
+ "jsii": "~5.6.0",
56
+ "jsii-diff": "^1.111.0",
57
+ "jsii-docgen": "^10.0.0",
58
+ "jsii-pacmak": "^1.111.0",
59
+ "jsii-rosetta": "~5.6.0",
60
+ "prettier": "^3.5.3",
61
+ "projen": "^0.91.26",
62
+ "projen-cdktf-hybrid-construct": "^0.9.24",
63
+ "ts-jest": "^29.3.2",
64
+ "ts-node": ">=10.9.1",
65
+ "typescript": "~5.6.0"
66
+ },
67
+ "peerDependencies": {
68
+ "@cdktf/provider-azurerm": "^13.26.0",
69
+ "@cdktf/provider-random": "^11.1.1",
70
+ "cdktf": ">=0.20.0",
71
+ "constructs": ">=10.4.2"
72
+ },
73
+ "dependencies": {
74
+ "@cdktf/tf-module-stack": ">=5.0.0"
75
+ },
76
+ "keywords": [
77
+ "cdk",
78
+ "cdktf",
79
+ "cdktf-hybrid",
80
+ "terraform"
81
+ ],
82
+ "main": "lib/index.js",
83
+ "license": "MIT",
84
+ "publishConfig": {
85
+ "access": "public"
86
+ },
87
+ "version": "0.0.0",
88
+ "jest": {
89
+ "coverageProvider": "v8",
90
+ "testMatch": [
91
+ "<rootDir>/@(src|test)/**/*(*.)@(spec|test).ts?(x)",
92
+ "<rootDir>/@(src|test)/**/__tests__/**/*.ts?(x)",
93
+ "<rootDir>/@(projenrc)/**/*(*.)@(spec|test).ts?(x)",
94
+ "<rootDir>/@(projenrc)/**/__tests__/**/*.ts?(x)"
95
+ ],
96
+ "clearMocks": true,
97
+ "collectCoverage": true,
98
+ "coverageReporters": [
99
+ "json",
100
+ "lcov",
101
+ "clover",
102
+ "cobertura",
103
+ "text"
104
+ ],
105
+ "coverageDirectory": "coverage",
106
+ "coveragePathIgnorePatterns": [
107
+ "/node_modules/",
108
+ "dist"
109
+ ],
110
+ "testPathIgnorePatterns": [
111
+ "/node_modules/",
112
+ "dist"
113
+ ],
114
+ "watchPathIgnorePatterns": [
115
+ "/node_modules/"
116
+ ],
117
+ "reporters": [
118
+ "default",
119
+ [
120
+ "jest-junit",
121
+ {
122
+ "outputDirectory": "test-reports"
123
+ }
124
+ ]
125
+ ],
126
+ "transform": {
127
+ "^.+\\.[t]sx?$": [
128
+ "ts-jest",
129
+ {
130
+ "tsconfig": "tsconfig.dev.json"
131
+ }
132
+ ]
133
+ }
134
+ },
135
+ "types": "lib/index.d.ts",
136
+ "stability": "stable",
137
+ "jsii": {
138
+ "outdir": "dist",
139
+ "targets": {},
140
+ "tsc": {
141
+ "outDir": "lib",
142
+ "rootDir": "src"
143
+ }
144
+ },
145
+ "//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
146
+ }
@@ -0,0 +1,48 @@
1
+ #!/bin/bash
2
+ # This script is created by projen, do not edit it directly.
3
+ set -e
4
+
5
+ SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
6
+
7
+ # check if the module folder has been generated as expected
8
+ MODULES_FOLDER=$( cd -- "$SCRIPTPATH/../src/modules/stacks" >/dev/null 2>&1 ; pwd -P )
9
+ SRC_FOLDER=$( cd -- "$SCRIPTPATH/../src/" >/dev/null 2>&1 ; pwd -P )
10
+ TARGET_FOLDER="$SCRIPTPATH/../modules"
11
+
12
+ if [ ! -d "$MODULES_FOLDER" ]; then
13
+ echo "Expected module folder to exist at $MODULES_FOLDER"
14
+ exit 1
15
+ fi
16
+
17
+ cd "$MODULES_FOLDER"
18
+ for d in */ ; do
19
+ [ -L "${d%/}" ] && continue
20
+
21
+ dirname="${d%/}"
22
+
23
+
24
+ # Check if everything is in place
25
+ if [ ! -f "$MODULES_FOLDER/$dirname/cdk.tf.json" ]; then
26
+ echo "Expected code for $dirname at cdk.tf.json to exist at $MODULES_FOLDER/$dirname"
27
+ exit 1
28
+ fi
29
+
30
+ if [ ! -f "$SRC_FOLDER/$dirname.md" ]; then
31
+ echo "Expected Documentation for $dirname at $dirname.md to exist at $SRC_FOLDER/$dirname.md"
32
+ exit 1
33
+ fi
34
+
35
+ # Copy module and readme together
36
+ echo "Copying Code and README for module $dirname"
37
+ mkdir -p "$TARGET_FOLDER"
38
+ mkdir -p "$TARGET_FOLDER/$dirname"
39
+ cp "$MODULES_FOLDER/$dirname/cdk.tf.json" "$TARGET_FOLDER/$dirname/cdk.tf.json"
40
+ cp "$SRC_FOLDER/$dirname.md" "$TARGET_FOLDER/$dirname/README.md"
41
+
42
+ # Add README hcl docs
43
+ if which terraform-docs >/dev/null; then
44
+ terraform-docs markdown table --output-file "$TARGET_FOLDER/$dirname/README.md" "$TARGET_FOLDER/$dirname"
45
+ else
46
+ docker run --rm --volume "$SCRIPTPATH/../modules:/terraform-docs" -u $(id -u) quay.io/terraform-docs/terraform-docs:0.16.0 markdown table --output-file "/terraform-docs/$dirname/README.md" /terraform-docs/$dirname
47
+ fi
48
+ done