@aws/nx-plugin 1.0.0-rc.50 → 1.0.0-rc.51
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/generators.json +7 -0
- package/package.json +1 -1
- package/src/internal/test-matrix/generator.d.ts +29 -0
- package/src/internal/test-matrix/generator.js +660 -0
- package/src/internal/test-matrix/generator.js.map +1 -0
- package/src/internal/test-matrix/schema.d.js +6 -0
- package/src/internal/test-matrix/schema.d.js.map +1 -0
- package/src/internal/test-matrix/schema.d.ts +12 -0
- package/src/internal/test-matrix/schema.json +21 -0
- package/src/sdk/py.d.ts +2 -0
- package/src/sdk/py.js +1 -0
- package/src/sdk/py.js.map +1 -1
- package/src/sdk/ts.d.ts +2 -0
- package/src/sdk/ts.js +2 -0
- package/src/sdk/ts.js.map +1 -1
- package/src/sdk/utils/format.d.ts +1 -1
- package/src/sdk/utils/format.js.map +1 -1
- package/src/ts/rdb/generator.js +19 -1
- package/src/ts/rdb/generator.js.map +1 -1
- package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +66 -66
- package/src/ts/react-website/app/generator.js +10 -1
- package/src/ts/react-website/app/generator.js.map +1 -1
- package/src/utils/format.d.ts +11 -1
- package/src/utils/format.js +25 -2
- package/src/utils/format.js.map +1 -1
package/generators.json
CHANGED
|
@@ -495,6 +495,13 @@
|
|
|
495
495
|
"description": "Connect a py#mcp-server to a py#rdb project",
|
|
496
496
|
"metric": "g59",
|
|
497
497
|
"hidden": true
|
|
498
|
+
},
|
|
499
|
+
"internal#test-matrix": {
|
|
500
|
+
"factory": "./src/internal/test-matrix/generator",
|
|
501
|
+
"schema": "./src/internal/test-matrix/schema.json",
|
|
502
|
+
"description": "Scaffold every generator permutation for end to end tests",
|
|
503
|
+
"metric": "t1",
|
|
504
|
+
"hidden": true
|
|
498
505
|
}
|
|
499
506
|
}
|
|
500
507
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import type { GeneratorCallback, Tree } from '@nx/devkit';
|
|
6
|
+
import type { InternalTestMatrixGeneratorSchema } from './schema';
|
|
7
|
+
/**
|
|
8
|
+
* Scaffolds every generator, component and connection permutation the e2e tests
|
|
9
|
+
* cover, by composing the generators in-process on a single tree.
|
|
10
|
+
*
|
|
11
|
+
* This ships with the plugin so each released version carries the matrix of the
|
|
12
|
+
* generators *it* had. A test upgrading an old workspace scaffolds with the
|
|
13
|
+
* released version's own matrix and never has to reason about which generators
|
|
14
|
+
* existed when — driving the CLI from the test repo instead would couple the
|
|
15
|
+
* test to a generator list that only describes today's plugin.
|
|
16
|
+
*
|
|
17
|
+
* Hidden and undocumented: it exists for the e2e suite, not for users.
|
|
18
|
+
*
|
|
19
|
+
* Options are typed against each generator's schema, so adding a required option
|
|
20
|
+
* or changing an enum breaks the build here rather than silently reducing
|
|
21
|
+
* coverage.
|
|
22
|
+
*
|
|
23
|
+
* Projects are generated with `preferInstallDependencies: false` by default and
|
|
24
|
+
* the returned callback installs once. Nothing composed here reads the project
|
|
25
|
+
* graph (only `ts#sync` does, which is not part of the matrix), so no
|
|
26
|
+
* intermediate install is needed.
|
|
27
|
+
*/
|
|
28
|
+
export declare const internalTestMatrixGenerator: (tree: Tree, options?: InternalTestMatrixGeneratorSchema) => Promise<GeneratorCallback>;
|
|
29
|
+
export default internalTestMatrixGenerator;
|