@react-native-windows/codegen 0.0.0-canary.2 → 0.0.0-canary.23

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 (44) hide show
  1. package/CHANGELOG.md +213 -8
  2. package/bin.js +0 -0
  3. package/lib-commonjs/Cli.d.ts +7 -0
  4. package/lib-commonjs/Cli.js +199 -0
  5. package/lib-commonjs/Cli.js.map +1 -0
  6. package/lib-commonjs/generators/AliasGen.d.ts +11 -0
  7. package/lib-commonjs/generators/AliasGen.js +72 -0
  8. package/lib-commonjs/generators/AliasGen.js.map +1 -0
  9. package/lib-commonjs/generators/AliasManaging.d.ts +15 -0
  10. package/lib-commonjs/generators/AliasManaging.js +49 -0
  11. package/lib-commonjs/generators/AliasManaging.js.map +1 -0
  12. package/lib-commonjs/generators/GenerateNM2.d.ts +11 -0
  13. package/lib-commonjs/generators/GenerateNM2.js +94 -0
  14. package/lib-commonjs/generators/GenerateNM2.js.map +1 -0
  15. package/lib-commonjs/generators/ObjectTypes.d.ts +8 -0
  16. package/lib-commonjs/generators/ObjectTypes.js +53 -0
  17. package/lib-commonjs/generators/ObjectTypes.js.map +1 -0
  18. package/lib-commonjs/generators/ParamTypes.d.ts +11 -0
  19. package/lib-commonjs/generators/ParamTypes.js +114 -0
  20. package/lib-commonjs/generators/ParamTypes.js.map +1 -0
  21. package/lib-commonjs/generators/ReturnTypes.d.ts +9 -0
  22. package/lib-commonjs/generators/ReturnTypes.js +63 -0
  23. package/lib-commonjs/generators/ReturnTypes.js.map +1 -0
  24. package/lib-commonjs/generators/ValidateConstants.d.ts +8 -0
  25. package/lib-commonjs/generators/ValidateConstants.js +38 -0
  26. package/lib-commonjs/generators/ValidateConstants.js.map +1 -0
  27. package/lib-commonjs/generators/ValidateMethods.d.ts +8 -0
  28. package/lib-commonjs/generators/ValidateMethods.js +70 -0
  29. package/lib-commonjs/generators/ValidateMethods.js.map +1 -0
  30. package/package.json +25 -14
  31. package/src/Cli.ts +130 -34
  32. package/src/generators/AliasGen.ts +105 -0
  33. package/src/generators/AliasManaging.ts +75 -0
  34. package/src/generators/GenerateNM2.ts +62 -296
  35. package/src/generators/ObjectTypes.ts +70 -0
  36. package/src/generators/ParamTypes.ts +220 -0
  37. package/src/generators/ReturnTypes.ts +92 -0
  38. package/src/generators/ValidateConstants.ts +50 -0
  39. package/src/generators/ValidateMethods.ts +135 -0
  40. package/.eslintrc.js +0 -4
  41. package/.vscode/launch.json +0 -23
  42. package/CHANGELOG.json +0 -426
  43. package/jest.config.js +0 -1
  44. package/tsconfig.json +0 -5
package/CHANGELOG.json DELETED
@@ -1,426 +0,0 @@
1
- {
2
- "name": "@react-native-windows/codegen",
3
- "entries": [
4
- {
5
- "date": "Tue, 09 Feb 2021 05:05:49 GMT",
6
- "tag": "@react-native-windows/codegen_v0.0.0-canary.2",
7
- "version": "0.0.0-canary.2",
8
- "comments": {
9
- "prerelease": [
10
- {
11
- "comment": "Bump just-scripts from 1.3.2 to 1.3.3",
12
- "author": "dannyvv@microsoft.com",
13
- "commit": "ef4046c6a798446b6404dc26d0dd39224a0d7274",
14
- "package": "@react-native-windows/codegen"
15
- }
16
- ],
17
- "patch": [
18
- {
19
- "comment": "Bump @rnw-scripts/just-task to v2.0.2",
20
- "author": "dannyvv@microsoft.com",
21
- "commit": "ef4046c6a798446b6404dc26d0dd39224a0d7274",
22
- "package": "@react-native-windows/codegen"
23
- }
24
- ]
25
- }
26
- },
27
- {
28
- "date": "Fri, 05 Feb 2021 05:05:05 GMT",
29
- "tag": "@react-native-windows/codegen_v0.0.0-canary.1",
30
- "version": "0.0.0-canary.1",
31
- "comments": {
32
- "none": [
33
- {
34
- "comment": "Bump @rnw-scripts/just-task to v2.0.1",
35
- "author": "ngerlem@microsoft.com",
36
- "commit": "22ee9e8c47a0c794e7d509a471547ba873578e31",
37
- "package": "@react-native-windows/codegen"
38
- }
39
- ]
40
- }
41
- },
42
- {
43
- "date": "Wed, 03 Feb 2021 05:05:12 GMT",
44
- "tag": "@react-native-windows/codegen_v0.0.0-canary.1",
45
- "version": "0.0.0-canary.1",
46
- "comments": {
47
- "prerelease": [
48
- {
49
- "comment": "Move `react-native-windows-codegen` to `@react-native-windows/codegen`",
50
- "author": "ngerlem@microsoft.com",
51
- "commit": "b34311f6ee86fd8ade1b9132f08109f8a5dcdf6d",
52
- "package": "@react-native-windows/codegen"
53
- }
54
- ]
55
- }
56
- },
57
- {
58
- "date": "Thu, 28 Jan 2021 05:06:47 GMT",
59
- "tag": "react-native-windows-codegen_v1.1.14",
60
- "version": "1.1.14",
61
- "comments": {
62
- "patch": [
63
- {
64
- "comment": "Leverage default config support in Just library and factor out common tasks",
65
- "author": "dannyvv@microsoft.com",
66
- "commit": "54fb284afaf1b12ab51f1c29bb7ca67eddab8db1",
67
- "package": "react-native-windows-codegen"
68
- }
69
- ]
70
- }
71
- },
72
- {
73
- "date": "Wed, 27 Jan 2021 05:06:36 GMT",
74
- "tag": "react-native-windows-codegen_v1.1.13",
75
- "version": "1.1.13",
76
- "comments": {
77
- "patch": [
78
- {
79
- "comment": "Show TS Stack Traces on Uncaught CLI Exception",
80
- "author": "ngerlem@microsoft.com",
81
- "commit": "ed5cbe4de1abac005e94ddc3564af4bb60b804f0",
82
- "package": "react-native-windows-codegen"
83
- }
84
- ]
85
- }
86
- },
87
- {
88
- "date": "Tue, 26 Jan 2021 05:06:39 GMT",
89
- "tag": "react-native-windows-codegen_v1.1.12",
90
- "version": "1.1.12",
91
- "comments": {
92
- "patch": [
93
- {
94
- "comment": "Update @types package versions in package.json from dependabot updates to yarn.lock",
95
- "author": "dannyvv@microsoft.com",
96
- "commit": "b8f2beec9851dffe3188156c859cb123de926ba0",
97
- "package": "react-native-windows-codegen"
98
- }
99
- ],
100
- "none": [
101
- {
102
- "comment": "Update just-scripts to remove yargs-parser resolution",
103
- "author": "ngerlem@microsoft.com",
104
- "commit": "3d41c761d18cdc771a635bf9f5ef1259db9a27be",
105
- "package": "react-native-windows-codegen"
106
- }
107
- ]
108
- }
109
- },
110
- {
111
- "date": "Wed, 20 Jan 2021 01:45:54 GMT",
112
- "tag": "react-native-windows-codegen_v1.1.11",
113
- "version": "1.1.11",
114
- "comments": {
115
- "none": [
116
- {
117
- "comment": "Bump internally published packages to 1.0",
118
- "author": "ngerlem@microsoft.com",
119
- "commit": "982fb19448d7c9ed3f12fa27182fa69be83478c7",
120
- "package": "react-native-windows-codegen"
121
- }
122
- ]
123
- }
124
- },
125
- {
126
- "date": "Wed, 13 Jan 2021 05:05:37 GMT",
127
- "tag": "react-native-windows-codegen_v0.1.11",
128
- "version": "0.1.11",
129
- "comments": {
130
- "none": [
131
- {
132
- "comment": "remove excessive change files",
133
- "author": "lehon@microsoft.com",
134
- "commit": "8c4a518552899dbacc7d9133e2e480c8f55df85d",
135
- "package": "react-native-windows-codegen"
136
- }
137
- ]
138
- }
139
- },
140
- {
141
- "date": "Tue, 08 Dec 2020 03:20:37 GMT",
142
- "tag": "react-native-windows-codegen_v0.1.11",
143
- "version": "0.1.11",
144
- "comments": {
145
- "patch": [
146
- {
147
- "comment": "Bump yargs to 15.4.1",
148
- "author": "ngerlem@microsoft.com",
149
- "commit": "fa34591ac86ea25e1e92a807864ba71480046a27",
150
- "package": "react-native-windows-codegen"
151
- }
152
- ]
153
- }
154
- },
155
- {
156
- "date": "Tue, 24 Nov 2020 05:08:17 GMT",
157
- "tag": "react-native-windows-codegen_v0.1.10",
158
- "version": "0.1.10",
159
- "comments": {
160
- "patch": [
161
- {
162
- "comment": "Add more eslint rules",
163
- "author": "ngerlem@microsoft.com",
164
- "commit": "adc0617836a0fba4112646595645e65f93e0106f",
165
- "package": "react-native-windows-codegen"
166
- }
167
- ]
168
- }
169
- },
170
- {
171
- "date": "Fri, 20 Nov 2020 05:08:43 GMT",
172
- "tag": "react-native-windows-codegen_v0.1.9",
173
- "version": "0.1.9",
174
- "comments": {
175
- "none": [
176
- {
177
- "comment": "Integrate 11/18 RN Nightly Build 🎉",
178
- "author": "ngerlem@microsoft.com",
179
- "commit": "aba9483ea47b6d992877b325cc858a7e6309ead4",
180
- "package": "react-native-windows-codegen"
181
- }
182
- ]
183
- }
184
- },
185
- {
186
- "date": "Sat, 07 Nov 2020 05:04:58 GMT",
187
- "tag": "react-native-windows-codegen_v0.1.8",
188
- "version": "0.1.8",
189
- "comments": {
190
- "patch": [
191
- {
192
- "comment": "Create codegen directory if not present",
193
- "author": "ngerlem@microsoft.com",
194
- "commit": "f120ea9ab98de1a625573ec4d2a38c25ada83769",
195
- "package": "react-native-windows-codegen"
196
- }
197
- ]
198
- }
199
- },
200
- {
201
- "date": "Fri, 09 Oct 2020 05:06:32 GMT",
202
- "tag": "react-native-windows-codegen_v0.1.7",
203
- "version": "0.1.7",
204
- "comments": {
205
- "none": [
206
- {
207
- "comment": "Update just-scipts (remove npm-registry-fetch)",
208
- "author": "ngerlem@microsoft.com",
209
- "commit": "00b2d84b8effce0b7405a67bd4903eed88cb9aaf",
210
- "package": "react-native-windows-codegen"
211
- }
212
- ]
213
- }
214
- },
215
- {
216
- "date": "Thu, 01 Oct 2020 05:08:11 GMT",
217
- "tag": "react-native-windows-codegen_v0.1.7",
218
- "version": "0.1.7",
219
- "comments": {
220
- "patch": [
221
- {
222
- "comment": "ESLint Fixup",
223
- "author": "ngerlem@microsoft.com",
224
- "commit": "98c072069c9d9e0d495bfd6f3bdc386b1362f377",
225
- "package": "react-native-windows-codegen"
226
- }
227
- ]
228
- }
229
- },
230
- {
231
- "date": "Thu, 24 Sep 2020 05:06:21 GMT",
232
- "tag": "react-native-windows-codegen_v0.1.6",
233
- "version": "0.1.6",
234
- "comments": {
235
- "patch": [
236
- {
237
- "comment": "Zero-Config Tests for CLI, react-native-windows-init, react-native-windows-codegen",
238
- "author": "ngerlem@microsoft.com",
239
- "commit": "5a96480f422aa7c731d7febb900a3962e1265c08",
240
- "package": "react-native-windows-codegen"
241
- }
242
- ]
243
- }
244
- },
245
- {
246
- "date": "Mon, 21 Sep 2020 05:06:22 GMT",
247
- "tag": "react-native-windows-codegen_v0.1.5",
248
- "version": "0.1.5",
249
- "comments": {
250
- "patch": [
251
- {
252
- "comment": "Fixup eslint config",
253
- "author": "ngerlem@microsoft.com",
254
- "commit": "2df3273449486de9e663e26f708fd9bb2cd37c91",
255
- "package": "react-native-windows-codegen"
256
- }
257
- ]
258
- }
259
- },
260
- {
261
- "date": "Mon, 14 Sep 2020 22:03:37 GMT",
262
- "tag": "react-native-windows-codegen_v0.1.4",
263
- "version": "0.1.4",
264
- "comments": {
265
- "patch": [
266
- {
267
- "comment": "Reconcile package versions",
268
- "author": "ngerlem@microsoft.com",
269
- "commit": "8adedcfb2ce6492a4a7ede59e0f9188dc205d659",
270
- "package": "react-native-windows-codegen"
271
- }
272
- ]
273
- }
274
- },
275
- {
276
- "date": "Fri, 21 Aug 2020 05:04:58 GMT",
277
- "tag": "react-native-windows-codegen_v0.1.0",
278
- "version": "0.1.0",
279
- "comments": {
280
- "none": [
281
- {
282
- "comment": "Upgrade to eslint 6.8.0",
283
- "author": "ngerlem@microsoft.com",
284
- "commit": "68f7ba47793f4f1638be59ee9cb8ba68a70ae0cb",
285
- "package": "react-native-windows-codegen"
286
- }
287
- ]
288
- }
289
- },
290
- {
291
- "date": "Fri, 14 Aug 2020 05:05:34 GMT",
292
- "tag": "react-native-windows-codegen_v0.1.0",
293
- "version": "0.1.0",
294
- "comments": {
295
- "minor": [
296
- {
297
- "comment": "Integrate new version of codegen that has changes from react-native",
298
- "author": "acoates-ms@noreply.github.com",
299
- "commit": "68f81d2689aa55140f1ff9edd5ec95fd4f658a40",
300
- "package": "react-native-windows-codegen"
301
- }
302
- ]
303
- }
304
- },
305
- {
306
- "date": "Mon, 06 Jul 2020 23:11:46 GMT",
307
- "tag": "react-native-windows-codegen_v0.0.9",
308
- "version": "0.0.9",
309
- "comments": {
310
- "none": [
311
- {
312
- "comment": "Add watch script",
313
- "author": "ngerlem@microsoft.com",
314
- "commit": "805f69dd9e566185d27890bc852abe766f035dfd",
315
- "package": "react-native-windows-codegen"
316
- }
317
- ]
318
- }
319
- },
320
- {
321
- "date": "Wed, 01 Jul 2020 05:06:19 GMT",
322
- "tag": "react-native-windows-codegen_v0.0.8",
323
- "version": "0.0.8",
324
- "comments": {
325
- "patch": [
326
- {
327
- "comment": "Share eslint and Typescript configs across packages",
328
- "author": "ngerlem@microsoft.com",
329
- "commit": "623ac46c0ade7fb8564e3a0c9e8345768c18feb6",
330
- "package": "react-native-windows-codegen"
331
- }
332
- ]
333
- }
334
- },
335
- {
336
- "date": "Fri, 26 Jun 2020 23:59:27 GMT",
337
- "tag": "react-native-windows-codegen_v0.0.7",
338
- "version": "0.0.7",
339
- "comments": {
340
- "patch": [
341
- {
342
- "comment": "Upgrade React Native to 3/22 Nightly Build",
343
- "author": "ngerlem@microsoft.com",
344
- "commit": "0727ffcb907673749ddbf43e7a7c0922957c9e82",
345
- "package": "react-native-windows-codegen"
346
- }
347
- ]
348
- }
349
- },
350
- {
351
- "date": "Sun, 07 Jun 2020 00:05:23 GMT",
352
- "tag": "react-native-windows-codegen_v0.0.6",
353
- "version": "0.0.6",
354
- "comments": {
355
- "patch": [
356
- {
357
- "comment": "Update template gen to use mustache",
358
- "author": "dannyvv@microsoft.com",
359
- "commit": "1e39e42bc448117c4e981b41c7acdfd29f01417c",
360
- "package": "react-native-windows-codegen"
361
- }
362
- ]
363
- }
364
- },
365
- {
366
- "date": "Sat, 23 May 2020 00:04:45 GMT",
367
- "tag": "react-native-windows-codegen_v0.0.5",
368
- "version": "0.0.5",
369
- "comments": {
370
- "patch": [
371
- {
372
- "comment": "Include React namespace in more places",
373
- "author": "acoates@microsoft.com",
374
- "commit": "8dcf516f91d33a1a54818363f84e91b1b0da5e9b",
375
- "package": "react-native-windows-codegen"
376
- }
377
- ]
378
- }
379
- },
380
- {
381
- "date": "Thu, 30 Apr 2020 00:04:27 GMT",
382
- "tag": "react-native-windows-codegen_v0.0.4",
383
- "version": "0.0.4",
384
- "comments": {
385
- "patch": [
386
- {
387
- "comment": "Update tscodegen to version based on 0.62",
388
- "author": "acoates@microsoft.com",
389
- "commit": "36ca14d11d0ff8029664d5e77f6b434111c9a6db",
390
- "package": "react-native-windows-codegen"
391
- }
392
- ]
393
- }
394
- },
395
- {
396
- "date": "Fri, 24 Apr 2020 00:04:41 GMT",
397
- "tag": "react-native-windows-codegen_v0.0.3",
398
- "version": "0.0.3",
399
- "comments": {
400
- "patch": [
401
- {
402
- "comment": "Add files option",
403
- "author": "acoates@microsoft.com",
404
- "commit": "a5deb259266022af61129b636f84e3e81eaf46da",
405
- "package": "react-native-windows-codegen"
406
- }
407
- ]
408
- }
409
- },
410
- {
411
- "date": "Thu, 23 Apr 2020 00:04:37 GMT",
412
- "tag": "react-native-windows-codegen_v0.0.2",
413
- "version": "0.0.2",
414
- "comments": {
415
- "patch": [
416
- {
417
- "comment": "Initial react-native-windows-codegen",
418
- "author": "acoates@microsoft.com",
419
- "commit": "dcccb2c4d84ff530de5a80ac7e947c3287dff5ab",
420
- "package": "react-native-windows-codegen"
421
- }
422
- ]
423
- }
424
- }
425
- ]
426
- }
package/jest.config.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require('@rnw-scripts/jest-unittest-config');
package/tsconfig.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "extends": "@rnw-scripts/ts-config",
3
- "include": ["src"],
4
- "exclude": ["node_modules"]
5
- }