@cdk8s/projen-common 0.0.237 → 0.0.238

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.
Files changed (85) hide show
  1. package/.jsii +166 -70
  2. package/.projenrc.ts +17 -0
  3. package/API.md +6745 -54
  4. package/git-hooks/prepare-commit-msg +0 -0
  5. package/git-hooks/setup.sh +0 -0
  6. package/lib/index.d.ts +1 -37
  7. package/lib/index.js +12 -86
  8. package/lib/projects/index.d.ts +2 -0
  9. package/lib/projects/index.js +7 -0
  10. package/lib/projects/jsii.d.ts +48 -0
  11. package/lib/projects/jsii.js +71 -0
  12. package/lib/projects/typescript.d.ts +34 -0
  13. package/lib/projects/typescript.js +89 -0
  14. package/node_modules/codemaker/LICENSE +202 -0
  15. package/node_modules/codemaker/NOTICE +2 -0
  16. package/node_modules/codemaker/README.md +120 -0
  17. package/node_modules/codemaker/jest.config.mjs +3 -0
  18. package/node_modules/codemaker/lib/case-utils.d.ts +4 -0
  19. package/node_modules/codemaker/lib/case-utils.js +29 -0
  20. package/node_modules/codemaker/lib/codemaker.d.ts +107 -0
  21. package/node_modules/codemaker/lib/codemaker.js +164 -0
  22. package/node_modules/codemaker/lib/filebuff.d.ts +11 -0
  23. package/node_modules/codemaker/lib/filebuff.js +26 -0
  24. package/node_modules/codemaker/lib/index.d.ts +3 -0
  25. package/node_modules/codemaker/lib/index.js +19 -0
  26. package/node_modules/codemaker/node_modules/camelcase/index.d.ts +103 -0
  27. package/node_modules/codemaker/node_modules/camelcase/index.js +113 -0
  28. package/node_modules/codemaker/node_modules/camelcase/license +9 -0
  29. package/node_modules/codemaker/node_modules/camelcase/package.json +44 -0
  30. package/node_modules/codemaker/node_modules/camelcase/readme.md +144 -0
  31. package/node_modules/codemaker/package.json +41 -0
  32. package/node_modules/decamelize/index.d.ts +59 -0
  33. package/node_modules/decamelize/index.js +65 -0
  34. package/node_modules/decamelize/license +9 -0
  35. package/node_modules/decamelize/package.json +40 -0
  36. package/node_modules/decamelize/readme.md +92 -0
  37. package/node_modules/fs-extra/LICENSE +15 -0
  38. package/node_modules/fs-extra/README.md +262 -0
  39. package/node_modules/fs-extra/lib/copy/copy-sync.js +169 -0
  40. package/node_modules/fs-extra/lib/copy/copy.js +235 -0
  41. package/node_modules/fs-extra/lib/copy/index.js +7 -0
  42. package/node_modules/fs-extra/lib/empty/index.js +39 -0
  43. package/node_modules/fs-extra/lib/ensure/file.js +69 -0
  44. package/node_modules/fs-extra/lib/ensure/index.js +23 -0
  45. package/node_modules/fs-extra/lib/ensure/link.js +64 -0
  46. package/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
  47. package/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
  48. package/node_modules/fs-extra/lib/ensure/symlink.js +82 -0
  49. package/node_modules/fs-extra/lib/fs/index.js +128 -0
  50. package/node_modules/fs-extra/lib/index.js +16 -0
  51. package/node_modules/fs-extra/lib/json/index.js +16 -0
  52. package/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
  53. package/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
  54. package/node_modules/fs-extra/lib/json/output-json.js +12 -0
  55. package/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
  56. package/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
  57. package/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
  58. package/node_modules/fs-extra/lib/move/index.js +7 -0
  59. package/node_modules/fs-extra/lib/move/move-sync.js +54 -0
  60. package/node_modules/fs-extra/lib/move/move.js +75 -0
  61. package/node_modules/fs-extra/lib/output-file/index.js +40 -0
  62. package/node_modules/fs-extra/lib/path-exists/index.js +12 -0
  63. package/node_modules/fs-extra/lib/remove/index.js +22 -0
  64. package/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
  65. package/node_modules/fs-extra/lib/util/stat.js +154 -0
  66. package/node_modules/fs-extra/lib/util/utimes.js +26 -0
  67. package/node_modules/fs-extra/package.json +67 -0
  68. package/node_modules/graceful-fs/LICENSE +15 -0
  69. package/node_modules/graceful-fs/README.md +143 -0
  70. package/node_modules/graceful-fs/clone.js +23 -0
  71. package/node_modules/graceful-fs/graceful-fs.js +448 -0
  72. package/node_modules/graceful-fs/legacy-streams.js +118 -0
  73. package/node_modules/graceful-fs/package.json +50 -0
  74. package/node_modules/graceful-fs/polyfills.js +355 -0
  75. package/node_modules/jsonfile/CHANGELOG.md +171 -0
  76. package/node_modules/jsonfile/LICENSE +15 -0
  77. package/node_modules/jsonfile/README.md +230 -0
  78. package/node_modules/jsonfile/index.js +88 -0
  79. package/node_modules/jsonfile/package.json +40 -0
  80. package/node_modules/jsonfile/utils.js +14 -0
  81. package/node_modules/universalify/LICENSE +20 -0
  82. package/node_modules/universalify/README.md +76 -0
  83. package/node_modules/universalify/index.js +24 -0
  84. package/node_modules/universalify/package.json +34 -0
  85. package/package.json +17 -9
package/.jsii CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "author": {
3
- "email": "rybickic@amazon.com",
4
- "name": "Christopher Rybicki",
3
+ "email": "https://aws.amazon.com",
4
+ "name": "Amazon Web Services",
5
5
  "roles": [
6
6
  "author"
7
- ]
7
+ ],
8
+ "url": "https://aws.amazon.com"
9
+ },
10
+ "bundled": {
11
+ "codemaker": "^1.74.0"
8
12
  },
9
13
  "dependencies": {
10
14
  "projen": "^0.67.50"
@@ -50,11 +54,11 @@
50
54
  }
51
55
  }
52
56
  },
53
- "description": "Common projen configuration shared between cdk8s org projects.",
57
+ "description": "Common projen configuration shared between cdk8s-team org projects.",
54
58
  "docs": {
55
59
  "stability": "stable"
56
60
  },
57
- "homepage": "https://github.com/rybickic/cdk8s-projen-common.git",
61
+ "homepage": "https://github.com/cdk8s-team/cdk8s-projen-common",
58
62
  "jsiiVersion": "1.74.0 (build 6d08790)",
59
63
  "license": "Apache-2.0",
60
64
  "metadata": {
@@ -71,7 +75,7 @@
71
75
  },
72
76
  "repository": {
73
77
  "type": "git",
74
- "url": "https://github.com/rybickic/cdk8s-projen-common.git"
78
+ "url": "https://github.com/cdk8s-team/cdk8s-projen-common"
75
79
  },
76
80
  "schema": "jsii/0.10.0",
77
81
  "targets": {
@@ -80,116 +84,208 @@
80
84
  }
81
85
  },
82
86
  "types": {
83
- "@cdk8s/projen-common.Cdk8sCommon": {
87
+ "@cdk8s/projen-common.Cdk8sTeamJsiiProject": {
84
88
  "assembly": "@cdk8s/projen-common",
85
- "base": "projen.Component",
89
+ "base": "projen.cdk.JsiiProject",
86
90
  "docs": {
91
+ "custom": {
92
+ "pjid": "cdk8s-team-jsii-project"
93
+ },
87
94
  "stability": "stable"
88
95
  },
89
- "fqn": "@cdk8s/projen-common.Cdk8sCommon",
96
+ "fqn": "@cdk8s/projen-common.Cdk8sTeamJsiiProject",
90
97
  "initializer": {
91
98
  "docs": {
92
99
  "stability": "stable"
93
100
  },
94
101
  "locationInModule": {
95
- "filename": "src/index.ts",
96
- "line": 89
102
+ "filename": "src/projects/jsii.ts",
103
+ "line": 64
97
104
  },
98
105
  "parameters": [
99
106
  {
100
- "name": "project",
107
+ "name": "options",
101
108
  "type": {
102
- "fqn": "projen.Project"
109
+ "fqn": "@cdk8s/projen-common.Cdk8sTeamJsiiProjectOptions"
103
110
  }
104
111
  }
105
112
  ]
106
113
  },
107
114
  "kind": "class",
108
115
  "locationInModule": {
109
- "filename": "src/index.ts",
110
- "line": 58
116
+ "filename": "src/projects/jsii.ts",
117
+ "line": 62
118
+ },
119
+ "name": "Cdk8sTeamJsiiProject",
120
+ "symbolId": "src/projects/jsii:Cdk8sTeamJsiiProject"
121
+ },
122
+ "@cdk8s/projen-common.Cdk8sTeamJsiiProjectOptions": {
123
+ "assembly": "@cdk8s/projen-common",
124
+ "datatype": true,
125
+ "docs": {
126
+ "remarks": "Note that this extends `typescript.TypeScriptProjectOptions` and not `cdk.JsiiProjectOptions`\nbecause `cdk.JsiiProjectOptions` has required properties (namely 'author' and 'authorAddress')\nthat we want to hardcode and disallow customization of. This means that any jsii specific feature\ncannot be customized on the project level. This is ok because we don't expect much deviation\nwith those features between projects. If this turns out to not be the case, we will change appropriately.",
127
+ "stability": "stable",
128
+ "summary": "Options for `Cdk8sTeamJsiiProject`."
129
+ },
130
+ "fqn": "@cdk8s/projen-common.Cdk8sTeamJsiiProjectOptions",
131
+ "interfaces": [
132
+ "projen.typescript.TypeScriptProjectOptions"
133
+ ],
134
+ "kind": "interface",
135
+ "locationInModule": {
136
+ "filename": "src/projects/jsii.ts",
137
+ "line": 21
111
138
  },
112
- "methods": [
139
+ "name": "Cdk8sTeamJsiiProjectOptions",
140
+ "properties": [
113
141
  {
142
+ "abstract": true,
114
143
  "docs": {
115
- "remarks": "To mitigate this, we schedule upgrades so that if a project depends on any\nother upgrades, it will be assigned a different upgrade schedule.",
144
+ "default": "true",
116
145
  "stability": "stable",
117
- "summary": "Due to many cdk8s libraries depending on each other, errors often occur during scheduled dependency upgrade workflows because new package versions may become available in the middle of a workflow, and packages may get published to different package managers at different times."
146
+ "summary": "Publish Golang bindings to GitHub."
118
147
  },
148
+ "immutable": true,
119
149
  "locationInModule": {
120
- "filename": "src/index.ts",
121
- "line": 68
150
+ "filename": "src/projects/jsii.ts",
151
+ "line": 28
122
152
  },
123
- "name": "upgradeScheduleFor",
124
- "parameters": [
125
- {
126
- "name": "packageName",
127
- "type": {
128
- "primitive": "string"
129
- }
130
- }
131
- ],
132
- "returns": {
133
- "type": {
134
- "fqn": "projen.javascript.UpgradeDependenciesSchedule"
135
- }
153
+ "name": "golang",
154
+ "optional": true,
155
+ "type": {
156
+ "primitive": "boolean"
157
+ }
158
+ },
159
+ {
160
+ "abstract": true,
161
+ "docs": {
162
+ "default": "'main'",
163
+ "stability": "stable",
164
+ "summary": "Name of the branch in the golang repository to publish to."
136
165
  },
137
- "static": true
138
- }
139
- ],
140
- "name": "Cdk8sCommon",
141
- "properties": [
166
+ "immutable": true,
167
+ "locationInModule": {
168
+ "filename": "src/projects/jsii.ts",
169
+ "line": 35
170
+ },
171
+ "name": "golangBranch",
172
+ "optional": true,
173
+ "type": {
174
+ "primitive": "string"
175
+ }
176
+ },
142
177
  {
178
+ "abstract": true,
143
179
  "docs": {
144
- "stability": "stable"
180
+ "default": "true",
181
+ "stability": "stable",
182
+ "summary": "Publish Java bindings to Maven."
145
183
  },
146
184
  "immutable": true,
147
185
  "locationInModule": {
148
- "filename": "src/index.ts",
149
- "line": 79
186
+ "filename": "src/projects/jsii.ts",
187
+ "line": 49
150
188
  },
151
- "name": "props",
152
- "static": true,
189
+ "name": "maven",
190
+ "optional": true,
153
191
  "type": {
154
- "primitive": "any"
192
+ "primitive": "boolean"
155
193
  }
156
- }
157
- ],
158
- "symbolId": "src/index:Cdk8sCommon"
159
- },
160
- "@cdk8s/projen-common.Cdk8sCommonPropsOptions": {
161
- "assembly": "@cdk8s/projen-common",
162
- "datatype": true,
163
- "docs": {
164
- "stability": "stable"
165
- },
166
- "fqn": "@cdk8s/projen-common.Cdk8sCommonPropsOptions",
167
- "kind": "interface",
168
- "locationInModule": {
169
- "filename": "src/index.ts",
170
- "line": 54
171
- },
172
- "name": "Cdk8sCommonPropsOptions",
173
- "properties": [
194
+ },
174
195
  {
175
196
  "abstract": true,
176
197
  "docs": {
177
- "stability": "stable"
198
+ "default": "true",
199
+ "stability": "stable",
200
+ "summary": "Publish Dotnet bindings to Nuget."
178
201
  },
179
202
  "immutable": true,
180
203
  "locationInModule": {
181
- "filename": "src/index.ts",
182
- "line": 55
204
+ "filename": "src/projects/jsii.ts",
205
+ "line": 56
183
206
  },
184
- "name": "packageName",
207
+ "name": "nuget",
208
+ "optional": true,
185
209
  "type": {
186
- "primitive": "string"
210
+ "primitive": "boolean"
211
+ }
212
+ },
213
+ {
214
+ "abstract": true,
215
+ "docs": {
216
+ "default": "true",
217
+ "stability": "stable",
218
+ "summary": "Publish Python bindings to PyPI."
219
+ },
220
+ "immutable": true,
221
+ "locationInModule": {
222
+ "filename": "src/projects/jsii.ts",
223
+ "line": 42
224
+ },
225
+ "name": "pypi",
226
+ "optional": true,
227
+ "type": {
228
+ "primitive": "boolean"
187
229
  }
188
230
  }
189
231
  ],
190
- "symbolId": "src/index:Cdk8sCommonPropsOptions"
232
+ "symbolId": "src/projects/jsii:Cdk8sTeamJsiiProjectOptions"
233
+ },
234
+ "@cdk8s/projen-common.Cdk8sTeamTypeScriptProject": {
235
+ "assembly": "@cdk8s/projen-common",
236
+ "base": "projen.typescript.TypeScriptProject",
237
+ "docs": {
238
+ "custom": {
239
+ "pjid": "cdk8s-team-typescript-project"
240
+ },
241
+ "stability": "stable"
242
+ },
243
+ "fqn": "@cdk8s/projen-common.Cdk8sTeamTypeScriptProject",
244
+ "initializer": {
245
+ "docs": {
246
+ "stability": "stable"
247
+ },
248
+ "locationInModule": {
249
+ "filename": "src/projects/typescript.ts",
250
+ "line": 52
251
+ },
252
+ "parameters": [
253
+ {
254
+ "name": "options",
255
+ "type": {
256
+ "fqn": "@cdk8s/projen-common.Cdk8sTeamTypescriptProjectOptions"
257
+ }
258
+ }
259
+ ]
260
+ },
261
+ "kind": "class",
262
+ "locationInModule": {
263
+ "filename": "src/projects/typescript.ts",
264
+ "line": 50
265
+ },
266
+ "name": "Cdk8sTeamTypeScriptProject",
267
+ "symbolId": "src/projects/typescript:Cdk8sTeamTypeScriptProject"
268
+ },
269
+ "@cdk8s/projen-common.Cdk8sTeamTypescriptProjectOptions": {
270
+ "assembly": "@cdk8s/projen-common",
271
+ "datatype": true,
272
+ "docs": {
273
+ "stability": "stable",
274
+ "summary": "Options for `Cdk8sTeamTypescriptProject`."
275
+ },
276
+ "fqn": "@cdk8s/projen-common.Cdk8sTeamTypescriptProjectOptions",
277
+ "interfaces": [
278
+ "projen.typescript.TypeScriptProjectOptions"
279
+ ],
280
+ "kind": "interface",
281
+ "locationInModule": {
282
+ "filename": "src/projects/typescript.ts",
283
+ "line": 45
284
+ },
285
+ "name": "Cdk8sTeamTypescriptProjectOptions",
286
+ "symbolId": "src/projects/typescript:Cdk8sTeamTypescriptProjectOptions"
191
287
  }
192
288
  },
193
- "version": "0.0.237",
194
- "fingerprint": "lzHVX//spnn/bzg/lAZqgAv0MMBIln6w5HPpVnti19E="
289
+ "version": "0.0.238",
290
+ "fingerprint": "1ZDHTn31iHBtAPHYOBnmu1FdQXBN0RIlLA13qlx/vAw="
195
291
  }
package/.projenrc.ts ADDED
@@ -0,0 +1,17 @@
1
+ import * as src from './src';
2
+
3
+ const project = new src.Cdk8sTeamJsiiProject({
4
+ name: '@cdk8s/projen-common',
5
+ description: 'Common projen configuration shared between cdk8s-team org projects.',
6
+ peerDeps: ['projen'],
7
+ deps: ['codemaker'],
8
+ bundledDeps: ['codemaker'],
9
+ projenrcTs: true,
10
+ defaultReleaseBranch: 'main',
11
+ pypi: false,
12
+ maven: false,
13
+ nuget: false,
14
+ golang: false,
15
+ });
16
+
17
+ project.synth();