@wolsok/nx-aws-cdk-v2 2.0.0-beta → 2.0.0-beta8

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 (35) hide show
  1. package/README.md +96 -97
  2. package/executors.json +20 -20
  3. package/generators.json +19 -19
  4. package/package.json +5 -4
  5. package/src/executors/bootstrap/bootstrap.js +1 -1
  6. package/src/executors/bootstrap/bootstrap.js.map +1 -1
  7. package/src/executors/bootstrap/schema.d.ts +3 -3
  8. package/src/executors/bootstrap/schema.json +8 -8
  9. package/src/executors/deploy/deploy.js +2 -3
  10. package/src/executors/deploy/deploy.js.map +1 -1
  11. package/src/executors/deploy/schema.d.ts +3 -3
  12. package/src/executors/deploy/schema.json +13 -13
  13. package/src/executors/destroy/destroy.js +1 -1
  14. package/src/executors/destroy/destroy.js.map +1 -1
  15. package/src/executors/destroy/schema.d.ts +3 -3
  16. package/src/executors/destroy/schema.json +13 -13
  17. package/src/generators/application/application.js +8 -37
  18. package/src/generators/application/application.js.map +1 -1
  19. package/src/generators/application/files/cdk.json__template__ +36 -36
  20. package/src/generators/application/files/src/main.ts__template__ +4 -4
  21. package/src/generators/application/files/src/stacks/app-stack.ts__template__ +9 -9
  22. package/src/generators/application/files/tsconfig.app.json__template__ +9 -9
  23. package/src/generators/application/files/tsconfig.json__template__ +15 -15
  24. package/src/generators/application/jest-files/src/main.test.ts__template__ +13 -13
  25. package/src/generators/application/schema.d.ts +8 -11
  26. package/src/generators/application/schema.json +44 -58
  27. package/src/generators/init/init.js +1 -3
  28. package/src/generators/init/init.js.map +1 -1
  29. package/src/generators/init/schema.d.ts +4 -4
  30. package/src/generators/init/schema.json +20 -23
  31. package/src/utils/cdk-shared.d.ts +0 -1
  32. package/src/utils/cdk-shared.js +1 -2
  33. package/src/utils/cdk-shared.js.map +1 -1
  34. package/src/utils/testing.js +3 -1
  35. package/src/utils/testing.js.map +1 -1
package/README.md CHANGED
@@ -1,97 +1,96 @@
1
- [![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
2
- [![@wolsok/nx-aws-cdk-v2](https://img.shields.io/badge/%40adrian--goe-nx--aws--cdk-green)](https://github.com/WolfSoko/nx-aws-cdk-v2/tree/main/packages/aws-cdk-v2)
3
- [![Typescript](https://badgen.net/badge/icon/typescript?icon=typescript&label)](https://www.typescriptlang.org/)
4
- [![LICENSE](https://img.shields.io/npm/l/@wolsok/nx-aws-cdk-v2.svg)](https://www.npmjs.com/package/@wolsok/nx-aws-cdk-v2)
5
- [![npm version](https://img.shields.io/npm/v/@wolsok/nx-aws-cdk-v2.svg)](https://www.npmjs.com/package/@wolsok/nx-aws-cdk-v2)
6
- [![Downloads](https://img.shields.io/npm/dm/@wolsok/nx-aws-cdk-v2.svg)](https://www.npmjs.com/package/@wolsok/nx-aws-cdk-v2)
7
-
8
- <hr>
9
-
10
- # @wolsok/nx-aws-cdk-v2
11
-
12
- An Nx plugin for developing [aws-cdk](https://docs.aws.amazon.com/cdk/latest/guide/home.html)
13
-
14
- ## Table of Contents
15
-
16
- - [Install](#install)
17
- - [Usage](#usage)
18
- - [Generate Application](#generate-application)
19
- - [Targets](#targets)
20
- - [Maintainers](#maintainers)
21
- - [Contributing](#contributing)
22
- - [License](#license)
23
-
24
- ## Install
25
-
26
- ```shell
27
- # npm
28
- npm install --save-dev @wolsok/nx-aws-cdk-v2
29
-
30
- # yarn
31
- yarn add --dev @wolsok/nx-aws-cdk-v2
32
- ```
33
-
34
- ## Usage
35
-
36
- ### Generate Application
37
-
38
- Create AWS CDK v2 Application
39
-
40
- More details on AWS CDK v2 can be found on https://docs.aws.amazon.com/cdk/v2/guide/home.html
41
-
42
- ```shell
43
- nx generate @wolsok/nx-aws-cdk-v2:application myApp
44
- ```
45
-
46
- you can customize it further by passing these options:
47
-
48
- ```
49
- nx generate @wolsok/nx-aws-cdk-v2:application [name] [options,...]
50
-
51
- Options:
52
- --name
53
- --tags Add tags to the project (used for linting)
54
- --directory A directory where the project is placed
55
- --skipFormat Skip formatting files
56
- --unitTestRunner Adds the specified unit test runner (default: jest)
57
- --linter The tool to use for running lint checks. (default: eslint)
58
- --setParserOptionsProject Whether or not to configure the ESLint "parserOptions.project" option. We do not do this by default for lint performance reasons.
59
- --dryRun Runs through and reports activity without writing to disk.
60
- --skip-nx-cache Skip the use of Nx cache.
61
- --help Show available options for project target.
62
- ```
63
-
64
- ### Targets
65
-
66
- Generated applications expose several functions to the CLI that allow users to deploy, destroy and bootstrap.
67
-
68
- ```shell
69
- nx deploy myApp
70
- nx destroy myApp
71
- nx bootstrap myApp --profile=profile
72
- #see how to use aws environments https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html#bootstrapping-howto-cli
73
- nx bootstrap myApp aws://123456789012/us-east-1
74
- ```
75
-
76
- ## Maintainers
77
-
78
- [@WolfSoko](https://github.com/WolfSoko)
79
-
80
- ## Contributing
81
-
82
- See [the contributing file](../../CONTRIBUTING.md)!
83
-
84
- PRs accepted.
85
-
86
- If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
87
-
88
- ## License
89
-
90
- This project is MIT licensed 2022 Wolfram Sokollek
91
-
92
- ## Special thanks
93
-
94
- This Project is based on [@tienne](https://github.com/tienne)'s
95
- [nx-plugins](https://github.com/codebrewlab/nx-plugins).
96
-
97
- Also thanks to [@therk](https://github.com/therk) for his work on migrating to cdk v2.
1
+ [![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
2
+ [![@wolsok/nx-aws-cdk-v2](https://img.shields.io/badge/%40adrian--goe-nx--aws--cdk-green)](https://github.com/WolfSoko/nx-aws-cdk-v2/tree/main/packages/aws-cdk-v2)
3
+ [![Typescript](https://badgen.net/badge/icon/typescript?icon=typescript&label)](https://www.typescriptlang.org/)
4
+ [![LICENSE](https://img.shields.io/npm/l/@wolsok/nx-aws-cdk-v2.svg)](https://www.npmjs.com/package/@wolsok/nx-aws-cdk-v2)
5
+ [![npm version](https://img.shields.io/npm/v/@wolsok/nx-aws-cdk-v2.svg)](https://www.npmjs.com/package/@wolsok/nx-aws-cdk-v2)
6
+ [![Downloads](https://img.shields.io/npm/dm/@wolsok/nx-aws-cdk-v2.svg)](https://www.npmjs.com/package/@wolsok/nx-aws-cdk-v2)
7
+
8
+ <hr>
9
+
10
+ # @wolsok/nx-aws-cdk-v2
11
+
12
+ An Nx plugin for developing [aws-cdk](https://docs.aws.amazon.com/cdk/latest/guide/home.html)
13
+
14
+ ## Table of Contents
15
+
16
+ - [Install](#install)
17
+ - [Usage](#usage)
18
+ - [Generate Application](#generate-application)
19
+ - [Targets](#targets)
20
+ - [Maintainers](#maintainers)
21
+ - [Contributing](#contributing)
22
+ - [License](#license)
23
+
24
+ ## Install
25
+
26
+ ```shell
27
+ # npm
28
+ npm install --save-dev @wolsok/nx-aws-cdk-v2
29
+
30
+ # yarn
31
+ yarn add --dev @wolsok/nx-aws-cdk-v2
32
+ ```
33
+
34
+ ## Usage
35
+
36
+ ### Generate Application
37
+
38
+ Create AWS CDK v2 Application
39
+
40
+ More details on AWS CDK v2 can be found on https://docs.aws.amazon.com/cdk/v2/guide/home.html
41
+
42
+ ```shell
43
+ nx generate @wolsok/nx-aws-cdk-v2:application myApp
44
+ ```
45
+
46
+ you can customize it further by passing these options:
47
+
48
+ ```
49
+ nx generate @wolsok/nx-aws-cdk-v2:application [name] [options,...]
50
+
51
+ Options:
52
+ --name
53
+ --tags Add tags to the project (used for linting)
54
+ --directory A directory where the project is placed
55
+ --skipFormat Skip formatting files
56
+ --unitTestRunner Adds the specified unit test runner (default: jest)
57
+ --setParserOptionsProject Whether or not to configure the ESLint "parserOptions.project" option. We do not do this by default for lint performance reasons.
58
+ --dryRun Runs through and reports activity without writing to disk.
59
+ --skip-nx-cache Skip the use of Nx cache.
60
+ --help Show available options for project target.
61
+ ```
62
+
63
+ ### Targets
64
+
65
+ Generated applications expose several functions to the CLI that allow users to deploy, destroy and bootstrap.
66
+
67
+ ```shell
68
+ nx deploy myApp
69
+ nx destroy myApp
70
+ nx bootstrap myApp --profile=profile
71
+ #see how to use aws environments https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html#bootstrapping-howto-cli
72
+ nx bootstrap myApp aws://123456789012/us-east-1
73
+ ```
74
+
75
+ ## Maintainers
76
+
77
+ [@WolfSoko](https://github.com/WolfSoko)
78
+
79
+ ## Contributing
80
+
81
+ See [the contributing file](../../CONTRIBUTING.md)!
82
+
83
+ PRs accepted.
84
+
85
+ If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
86
+
87
+ ## License
88
+
89
+ This project is MIT licensed 2022 Wolfram Sokollek
90
+
91
+ ## Special thanks
92
+
93
+ This Project is based on [@tienne](https://github.com/tienne)'s
94
+ [nx-plugins](https://github.com/codebrewlab/nx-plugins).
95
+
96
+ Also thanks to [@therk](https://github.com/therk) for his work on migrating to cdk v2.
package/executors.json CHANGED
@@ -1,20 +1,20 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "executors": {
4
- "deploy": {
5
- "implementation": "./src/executors/deploy/deploy",
6
- "schema": "./src/executors/deploy/schema.json",
7
- "description": "build executor"
8
- },
9
- "destroy": {
10
- "implementation": "./src/executors/destroy/destroy",
11
- "schema": "./src/executors/destroy/schema.json",
12
- "description": "destroy executor"
13
- },
14
- "bootstrap": {
15
- "implementation": "./src/executors/bootstrap/bootstrap",
16
- "schema": "./src/executors/bootstrap/schema.json",
17
- "description": "bootstrap executor"
18
- }
19
- }
20
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "executors": {
4
+ "deploy": {
5
+ "implementation": "./src/executors/deploy/deploy",
6
+ "schema": "./src/executors/deploy/schema.json",
7
+ "description": "build executor"
8
+ },
9
+ "destroy": {
10
+ "implementation": "./src/executors/destroy/destroy",
11
+ "schema": "./src/executors/destroy/schema.json",
12
+ "description": "destroy executor"
13
+ },
14
+ "bootstrap": {
15
+ "implementation": "./src/executors/bootstrap/bootstrap",
16
+ "schema": "./src/executors/bootstrap/schema.json",
17
+ "description": "bootstrap executor"
18
+ }
19
+ }
20
+ }
package/generators.json CHANGED
@@ -1,19 +1,19 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "name": "aws-cdk-v2",
4
- "version": "0.0.1",
5
- "generators": {
6
- "init": {
7
- "factory": "./src/generators/init/init",
8
- "schema": "./src/generators/init/schema.json",
9
- "description": "init generator",
10
- "aliases": ["ng-add"],
11
- "hidden": true
12
- },
13
- "application": {
14
- "factory": "./src/generators/application/application",
15
- "schema": "./src/generators/application/schema.json",
16
- "description": "create aws-cdk application"
17
- }
18
- }
19
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "name": "aws-cdk-v2",
4
+ "version": "0.0.1",
5
+ "generators": {
6
+ "init": {
7
+ "factory": "./src/generators/init/init",
8
+ "schema": "./src/generators/init/schema.json",
9
+ "description": "init generator",
10
+ "aliases": ["ng-add"],
11
+ "hidden": true
12
+ },
13
+ "application": {
14
+ "factory": "./src/generators/application/application",
15
+ "schema": "./src/generators/application/schema.json",
16
+ "description": "create aws-cdk application"
17
+ }
18
+ }
19
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wolsok/nx-aws-cdk-v2",
3
- "version": "2.0.0-beta",
4
- "main": "./src/index.js",
3
+ "version": "2.0.0-beta8",
4
+ "main": "src/index.js",
5
5
  "generators": "./generators.json",
6
6
  "executors": "./executors.json",
7
7
  "keywords": [
@@ -21,5 +21,6 @@
21
21
  "url": "git@github.com:WolfSoko/nx-aws-cdk-v2"
22
22
  },
23
23
  "license": "MIT",
24
- "type": "commonjs"
25
- }
24
+ "type": "commonjs",
25
+ "types": "./src/index.d.ts"
26
+ }
@@ -24,7 +24,7 @@ function normalizeOptions(options, context) {
24
24
  profile = `--profile ${options.profile}`;
25
25
  }
26
26
  // eslint-disable-next-line no-unsafe-optional-chaining
27
- const { sourceRoot, root } = (_a = context === null || context === void 0 ? void 0 : context.workspace) === null || _a === void 0 ? void 0 : _a.projects[context.projectName];
27
+ const { sourceRoot, root } = (_a = context === null || context === void 0 ? void 0 : context.projectsConfigurations) === null || _a === void 0 ? void 0 : _a.projects[context.projectName];
28
28
  return Object.assign(Object.assign({}, options), { parseArgs: parsedArgs, profile,
29
29
  sourceRoot,
30
30
  root });
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../../../../../../packages/aws-cdk-v2/src/executors/bootstrap/bootstrap.ts"],"names":[],"mappings":";;AAYA,8BAOC;;AAlBD,6DAAwF;AAWxF,SAA8B,WAAW,CAAC,OAAgC,EAAE,OAAwB;;QAClG,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC7D,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAE9D,OAAO;YACL,OAAO,EAAE,MAAM;SAChB,CAAC;IACJ,CAAC;CAAA;AAED,SAAS,YAAY,CAAC,OAAsC,EAAE,OAAwB;IACpF,MAAM,OAAO,GAAG,IAAA,6BAAa,EAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IACpD,OAAO,IAAA,iCAAiB,EAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAgC,EAAE,OAAwB;;IAClF,MAAM,UAAU,GAAG,IAAA,yBAAS,EAAC,OAAO,CAAC,CAAC;IACtC,IAAI,OAAO,CAAC;IAEZ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;QAC7D,OAAO,GAAG,aAAa,OAAO,CAAC,OAAO,EAAE,CAAC;IAC3C,CAAC;IAED,uDAAuD;IACvD,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,MA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AAC,WAAW,CAAC,CAAC;IAE5F,uCACK,OAAO,KACV,SAAS,EAAE,UAAU,EACrB,OAAO;QACP,UAAU;QACV,IAAI,IACJ;AACJ,CAAC"}
@@ -1,3 +1,3 @@
1
- export interface BootstrapExecutorSchema {
2
- profile?: string;
3
- }
1
+ export interface BootstrapExecutorSchema {
2
+ profile?: string;
3
+ }
@@ -1,8 +1,8 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "title": "Bootstrap executor",
4
- "description": "",
5
- "type": "object",
6
- "properties": {},
7
- "required": []
8
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "title": "Bootstrap executor",
4
+ "description": "",
5
+ "type": "object",
6
+ "properties": {},
7
+ "required": []
8
+ }
@@ -19,14 +19,13 @@ function runDeploy(options, context) {
19
19
  });
20
20
  }
21
21
  function normalizeOptions(options, context) {
22
- var _a;
22
+ var _a, _b;
23
23
  const parsedArgs = (0, executor_util_1.parseArgs)(options);
24
24
  let stacks;
25
25
  if (Object.prototype.hasOwnProperty.call(options, 'stacks')) {
26
26
  stacks = options.stacks;
27
27
  }
28
- // eslint-disable-next-line no-unsafe-optional-chaining
29
- const { sourceRoot, root } = (_a = context === null || context === void 0 ? void 0 : context.workspace) === null || _a === void 0 ? void 0 : _a.projects[context.projectName];
28
+ const { sourceRoot, root } = (_b = (_a = context === null || context === void 0 ? void 0 : context.projectsConfigurations) === null || _a === void 0 ? void 0 : _a.projects[context.projectName]) !== null && _b !== void 0 ? _b : {};
30
29
  return Object.assign(Object.assign({}, options), { parseArgs: parsedArgs, stacks,
31
30
  sourceRoot,
32
31
  root });
@@ -1 +1 @@
1
- {"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../../../packages/aws-cdk-v2/src/executors/deploy/deploy.ts"],"names":[],"mappings":";;AAWA,8BAOC;;AAjBD,6DAAwF;AAUxF,SAA8B,WAAW,CAAC,OAA6B,EAAE,OAAwB;;QAC/F,MAAM,iBAAiB,GAAG,gBAAgB,CAA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AAE,OAAO,CAAC,CAAC;QAE3D,OAAO;YACL,OAAO,EAAE,MAAM;SAChB,CAAC;IACJ,CAAC;CAAA;AAED,SAAe,SAAS,CAAC,OAAmC,EAAE,OAAwB;;QACpF,MAAM,OAAO,GAAG,IAAA,6BAAa,EAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACjD,OAAO,IAAA,iCAAiB,EAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;CAAA;AAED,SAAS,gBAAgB,CAAC,OAA6B,EAAE,OAAwB;;IAC/E,MAAM,UAAU,GAAG,IAAA,yBAAS,EAAC,OAAO,CAAC,CAAC;IACtC,IAAI,MAAM,CAAC;IAEX,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC;QAC5D,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,sBAAsB,0CAAE,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,mCAAI,EAAE,CAAC;IAElG,uCACK,OAAO,KACV,SAAS,EAAE,UAAU,EACrB,MAAM;QACN,UAAU;QACV,IAAI,IACJ;AACJ,CAAC"}
@@ -1,3 +1,3 @@
1
- export interface DeployExecutorSchema {
2
- stacks?: string;
3
- }
1
+ export interface DeployExecutorSchema {
2
+ stacks?: string;
3
+ }
@@ -1,13 +1,13 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "title": "deploy executor",
4
- "description": "",
5
- "type": "object",
6
- "properties": {
7
- "stacks": {
8
- "type": "string",
9
- "description": "use deploy named STACKS"
10
- }
11
- },
12
- "required": []
13
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "title": "deploy executor",
4
+ "description": "",
5
+ "type": "object",
6
+ "properties": {
7
+ "stacks": {
8
+ "type": "string",
9
+ "description": "use deploy named STACKS"
10
+ }
11
+ },
12
+ "required": []
13
+ }
@@ -24,7 +24,7 @@ function normalizeOptions(options, context) {
24
24
  stacks = options.stacks;
25
25
  }
26
26
  // eslint-disable-next-line no-unsafe-optional-chaining
27
- const { sourceRoot, root } = (_a = context === null || context === void 0 ? void 0 : context.workspace) === null || _a === void 0 ? void 0 : _a.projects[context.projectName];
27
+ const { sourceRoot, root } = (_a = context === null || context === void 0 ? void 0 : context.projectsConfigurations) === null || _a === void 0 ? void 0 : _a.projects[context.projectName];
28
28
  return Object.assign(Object.assign({}, options), { parseArgs: parsedArgs, stacks,
29
29
  sourceRoot,
30
30
  root });
@@ -1 +1 @@
1
- {"version":3,"file":"destroy.js","sourceRoot":"","sources":["../../../../../../packages/aws-cdk-v2/src/executors/destroy/destroy.ts"],"names":[],"mappings":";;AAYA,8BAOC;;AAlBD,6DAAwF;AAWxF,SAA8B,WAAW,CAAC,OAA8B,EAAE,OAAwB;;QAChG,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC7D,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAE5D,OAAO;YACL,OAAO,EAAE,MAAM;SAChB,CAAC;IACJ,CAAC;CAAA;AAED,SAAS,UAAU,CAAC,OAAoC,EAAE,OAAwB;IAChF,MAAM,OAAO,GAAG,IAAA,6BAAa,EAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAClD,OAAO,IAAA,iCAAiB,EAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,SAAS,gBAAgB,CAAC,OAA8B,EAAE,OAAwB;;IAChF,MAAM,UAAU,GAAG,IAAA,yBAAS,EAAC,OAAO,CAAC,CAAC;IACtC,IAAI,MAAM,CAAC;IAEX,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,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AuD;IACvD,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,sBAAsB,0CAAE,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAE5F,uCACK,OAAO,KACV,SAAS,EAAE,UAAU,EACrB,MAAM;QACN,UAAU;QACV,IAAI,IACJ;AACJ,CAAC"}
@@ -1,3 +1,3 @@
1
- export interface DestroyExecutorSchema {
2
- stacks?: string;
3
- }
1
+ export interface DestroyExecutorSchema {
2
+ stacks?: string;
3
+ }
@@ -1,13 +1,13 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "title": "Destroy executor",
4
- "description": "",
5
- "type": "object",
6
- "properties": {
7
- "stacks": {
8
- "type": "string",
9
- "description": "use destroy named STACKS"
10
- }
11
- },
12
- "required": []
13
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "title": "Destroy executor",
4
+ "description": "",
5
+ "type": "object",
6
+ "properties": {
7
+ "stacks": {
8
+ "type": "string",
9
+ "description": "use destroy named STACKS"
10
+ }
11
+ },
12
+ "required": []
13
+ }
@@ -6,10 +6,9 @@ const tslib_1 = require("tslib");
6
6
  const path = require("path");
7
7
  const devkit_1 = require("@nx/devkit");
8
8
  const jest_1 = require("@nx/jest");
9
- const linter_1 = require("@nx/linter");
10
9
  const init_1 = require("../init/init");
11
10
  function normalizeOptions(host, options) {
12
- var _a, _b;
11
+ var _a;
13
12
  const name = (0, devkit_1.names)(options.name).fileName;
14
13
  const projectDirectory = options.directory ? `${(0, devkit_1.names)(options.directory).fileName}/${name}` : name;
15
14
  const projectName = projectDirectory.replace(new RegExp('/', 'g'), '-');
@@ -18,7 +17,7 @@ function normalizeOptions(host, options) {
18
17
  return Object.assign(Object.assign({}, options), { projectName,
19
18
  projectRoot,
20
19
  projectDirectory,
21
- parsedTags, linter: (_a = options.linter) !== null && _a !== void 0 ? _a : linter_1.Linter.EsLint, unitTestRunner: (_b = options.unitTestRunner) !== null && _b !== void 0 ? _b : 'jest' });
20
+ parsedTags, unitTestRunner: (_a = options.unitTestRunner) !== null && _a !== void 0 ? _a : 'jest' });
22
21
  }
23
22
  function addFiles(host, options) {
24
23
  const templateOptions = Object.assign(Object.assign(Object.assign({}, options), (0, devkit_1.names)(options.projectName)), { offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.projectRoot), template: '' });
@@ -28,29 +27,6 @@ function addJestFiles(host, options) {
28
27
  const templateOptions = Object.assign(Object.assign(Object.assign({}, options), (0, devkit_1.names)(options.projectName)), { offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.projectRoot), template: '' });
29
28
  (0, devkit_1.generateFiles)(host, path.join(__dirname, 'jest-files'), options.projectRoot, templateOptions);
30
29
  }
31
- function addLintingToApplication(tree, options) {
32
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
33
- return yield (0, linter_1.lintProjectGenerator)(tree, {
34
- linter: options.linter,
35
- project: options.projectName,
36
- tsConfigPaths: [(0, devkit_1.joinPathFragments)(options.projectRoot, 'tsconfig.*?.json')],
37
- eslintFilePatterns: [`${options.projectRoot}/**/*.ts`],
38
- skipFormat: true,
39
- setParserOptionsProject: options.setParserOptionsProject,
40
- });
41
- });
42
- }
43
- function updateLintConfig(tree, options) {
44
- (0, devkit_1.updateJson)(tree, `${options.projectRoot}/.eslintrc.json`, (json) => {
45
- json.plugins = (json === null || json === void 0 ? void 0 : json.plugins) || [];
46
- const plugins = json.plugins;
47
- const hasCdkPlugin = plugins.findIndex((row) => row === 'cdk') >= 0;
48
- if (!hasCdkPlugin) {
49
- plugins.push('cdk');
50
- }
51
- return json;
52
- });
53
- }
54
30
  function applicationGenerator(host, options) {
55
31
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
56
32
  const tasks = [];
@@ -63,31 +39,26 @@ function applicationGenerator(host, options) {
63
39
  sourceRoot: `${normalizedOptions.projectRoot}/src`,
64
40
  targets: {
65
41
  deploy: {
66
- executor: '@wolsok/nx-aws-cdk-v2:deploy',
42
+ executor: '@ago-dev/nx-aws-cdk-v2:deploy',
67
43
  options: {},
68
44
  },
69
45
  destroy: {
70
- executor: '@wolsok/nx-aws-cdk-v2:destroy',
46
+ executor: '@ago-dev/nx-aws-cdk-v2:destroy',
71
47
  options: {},
72
48
  },
73
49
  bootstrap: {
74
- executor: '@wolsok/nx-aws-cdk-v2:bootstrap',
50
+ executor: '@ago-dev/nx-aws-cdk-v2:bootstrap',
75
51
  options: {},
76
52
  },
77
53
  },
78
54
  tags: normalizedOptions.parsedTags,
79
55
  };
80
56
  (0, devkit_1.addProjectConfiguration)(host, normalizedOptions.projectName, project);
81
- const workspace = (0, devkit_1.readWorkspaceConfiguration)(host);
82
- (0, devkit_1.updateWorkspaceConfiguration)(host, workspace);
57
+ const workspace = (0, devkit_1.readProjectConfiguration)(host, normalizedOptions.projectName);
58
+ (0, devkit_1.updateProjectConfiguration)(host, normalizedOptions.projectName, workspace);
83
59
  addFiles(host, normalizedOptions);
84
- if (normalizedOptions.linter !== linter_1.Linter.None) {
85
- const lintTask = yield addLintingToApplication(host, normalizedOptions);
86
- tasks.push(lintTask);
87
- updateLintConfig(host, normalizedOptions);
88
- }
89
60
  if (normalizedOptions.unitTestRunner === 'jest') {
90
- const jestTask = yield (0, jest_1.jestProjectGenerator)(host, {
61
+ const jestTask = yield (0, jest_1.configurationGenerator)(host, {
91
62
  project: normalizedOptions.projectName,
92
63
  setupFile: 'none',
93
64
  skipSerializers: true,
@@ -1 +1 @@
1
- {"version":3,"file":"application.js","sourceRoot":"","sources":["../../../../../../packages/aws-cdk-v2/src/generators/application/application.ts"],"names":[],"mappings":";;;AA6FA,oDA6DC;;AA1JD,6BAA6B;AAC7B,uCAgBoB;AACpB,mCAAgD;AAChD,uCAA0D;AAG1D,uCAA6C;AAS7C,SAAS,gBAAgB,CAAC,IAAU,EAAE,OAA0B;;IAC9D,MAAM,IAAI,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAA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AAiB,CAAC,CAAC;YACxE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACrB,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAC5C,CAAC;QAED,IAAI,iBAAiB,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;YAChD,MAAM,QAAQ,GAAG,MAAM,IAAA,2BAAoB,EAAC,IAAI,EAAE;gBAChD,OAAO,EAAE,iBAAiB,CAAC,WAAW;gBACtC,SAAS,EAAE,MAAM;gBACjB,eAAe,EAAE,IAAI;gBACrB,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,KAAK;gBAChB,eAAe,EAAE,MAAM;gBACvB,UAAU,EAAE,IAAI;aACjB,CAAC,CAAC;YACH,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACrB,YAAY,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QACxC,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;YACxB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;QAED,OAAO,IAAA,yBAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACpC,CAAC;CAAA;AACD,kBAAe,oBAAoB,CAAC;AACvB,QAAA,oBAAoB,GAAG,IAAA,2BAAkB,EAAC,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"application.js","sourceRoot":"","sources":["../../../../../../packages/aws-cdk-v2/src/generators/application/application.ts"],"names":[],"mappings":";;;AAkEA,oDAuDC;;AAzHD,6BAA6B;AAC7B,uCAcoB;AACpB,mCAAkD;AAGlD,uCAA6C;AAS7C,SAAS,gBAAgB,CAAC,IAAU,EAAE,OAA0B;;IAC9D,MAAM,IAAI,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC;IAC1C,MAAM,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,IAAA,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CAAC;QAElC,IAAI,iBAAiB,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;YAChD,MAAM,QAAQ,GAAG,MAAM,IAAA,6BAAsB,EAAC,IAAI,EAAE;gBAClD,OAAO,EAAE,iBAAiB,CAAC,WAAW;gBACtC,SAAS,EAAE,MAAM;gBACjB,eAAe,EAAE,IAAI;gBACrB,UAAU,EAAE,KAAK;gBACjB,SAAS,EAAE,KAAK;gBAChB,eAAe,EAAE,MAAM;gBACvB,UAAU,EAAE,IAAI;aACjB,CAAC,CAAC;YACH,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACrB,YAAY,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QACxC,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;YACxB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;QAED,OAAO,IAAA,yBAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACpC,CAAC;CAAA;AAED,kBAAe,oBAAoB,CAAC;AACvB,QAAA,oBAAoB,GAAG,IAAA,2BAAkB,EAAC,oBAAoB,CAAC,CAAC"}
@@ -1,36 +1,36 @@
1
- {
2
- "app": "npx ts-node src/main.ts",
3
- "output": "<%= offsetFromRoot %>dist/apps/<%= projectName %>",
4
- "requireApproval": "never",
5
- "watch": {
6
- "include": [
7
- "**"
8
- ],
9
- "exclude": [
10
- "README.md",
11
- "cdk*.json",
12
- "**/*.d.ts",
13
- "**/*.js",
14
- "tsconfig.json",
15
- "package*.json",
16
- "yarn.lock",
17
- "node_modules",
18
- "test"
19
- ]
20
- },
21
- "context": {
22
- "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true,
23
- "@aws-cdk/core:stackRelativeExports": true,
24
- "@aws-cdk/aws-rds:lowercaseDbIdentifier": true,
25
- "@aws-cdk/aws-lambda:recognizeVersionProps": true,
26
- "@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021": true,
27
- "@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
28
- "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
29
- "@aws-cdk/core:checkSecretUsage": true,
30
- "@aws-cdk/aws-iam:minimizePolicies": true,
31
- "@aws-cdk/core:target-partitions": [
32
- "aws",
33
- "aws-cn"
34
- ]
35
- }
36
- }
1
+ {
2
+ "app": "npx ts-node src/main.ts",
3
+ "output": "<%= offsetFromRoot %>dist/apps/<%= projectName %>",
4
+ "requireApproval": "never",
5
+ "watch": {
6
+ "include": [
7
+ "**"
8
+ ],
9
+ "exclude": [
10
+ "README.md",
11
+ "cdk*.json",
12
+ "**/*.d.ts",
13
+ "**/*.js",
14
+ "tsconfig.json",
15
+ "package*.json",
16
+ "yarn.lock",
17
+ "node_modules",
18
+ "test"
19
+ ]
20
+ },
21
+ "context": {
22
+ "@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true,
23
+ "@aws-cdk/core:stackRelativeExports": true,
24
+ "@aws-cdk/aws-rds:lowercaseDbIdentifier": true,
25
+ "@aws-cdk/aws-lambda:recognizeVersionProps": true,
26
+ "@aws-cdk/aws-cloudfront:defaultSecurityPolicyTLSv1.2_2021": true,
27
+ "@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver": true,
28
+ "@aws-cdk/aws-ec2:uniqueImdsv2TemplateName": true,
29
+ "@aws-cdk/core:checkSecretUsage": true,
30
+ "@aws-cdk/aws-iam:minimizePolicies": true,
31
+ "@aws-cdk/core:target-partitions": [
32
+ "aws",
33
+ "aws-cn"
34
+ ]
35
+ }
36
+ }
@@ -1,5 +1,5 @@
1
- import { App } from 'aws-cdk-lib';
2
- import { AppStack } from './stacks/app-stack';
3
-
4
- const app = new App();
1
+ import { App } from 'aws-cdk-lib';
2
+ import { AppStack } from './stacks/app-stack';
3
+
4
+ const app = new App();
5
5
  new AppStack(app, '<%= projectName %>');
@@ -1,9 +1,9 @@
1
- import { Stack, App, StackProps } from 'aws-cdk-lib';
2
-
3
- export class AppStack extends Stack {
4
- constructor(scope: App, id: string, props?: StackProps) {
5
- super(scope, id, props);
6
-
7
- // defines your stack here
8
- }
9
- }
1
+ import { Stack, App, StackProps } from 'aws-cdk-lib';
2
+
3
+ export class AppStack extends Stack {
4
+ constructor(scope: App, id: string, props?: StackProps) {
5
+ super(scope, id, props);
6
+
7
+ // defines your stack here
8
+ }
9
+ }
@@ -1,9 +1,9 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "<%= offsetFromRoot %>dist/out-tsc",
5
- "types": ["node"]
6
- },
7
- "exclude": ["**/*.spec.ts", "**/*.test.ts"],
8
- "include": ["**/*.ts"]
9
- }
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "<%= offsetFromRoot %>dist/out-tsc",
5
+ "types": ["node"]
6
+ },
7
+ "exclude": ["**/*.spec.ts", "**/*.test.ts"],
8
+ "include": ["**/*.ts"]
9
+ }
@@ -1,15 +1,15 @@
1
- {
2
- "extends": "<%= offsetFromRoot %>tsconfig.base.json",
3
- "compilerOptions": {
4
- "module": "commonjs",
5
- "outDir": "<%= offsetFromRoot %>dist/out-tsc",
6
- "types": ["node", "jest"]
7
- },
8
- "include": [],
9
- "files": [],
10
- "references": [
11
- {
12
- "path": "./tsconfig.app.json"
13
- }
14
- ]
15
- }
1
+ {
2
+ "extends": "<%= offsetFromRoot %>tsconfig.base.json",
3
+ "compilerOptions": {
4
+ "module": "commonjs",
5
+ "outDir": "<%= offsetFromRoot %>dist/out-tsc",
6
+ "types": ["node", "jest"]
7
+ },
8
+ "include": [],
9
+ "files": [],
10
+ "references": [
11
+ {
12
+ "path": "./tsconfig.app.json"
13
+ }
14
+ ]
15
+ }
@@ -1,13 +1,13 @@
1
- import { Stack, App } from 'aws-cdk-lib';
2
- import { Template } from 'aws-cdk-lib/assertions';
3
- import { AppStack } from './stacks/app-stack';
4
-
5
- test('Empty Stack', () => {
6
- const app = new App();
7
- // WHEN
8
- const stack = new AppStack(app, '<%= projectName %>TestStack');
9
- // THEN
10
- Template.fromStack(stack as Stack).templateMatches({
11
- Resources: {}
12
- });
13
- });
1
+ import { Stack, App } from 'aws-cdk-lib';
2
+ import { Template } from 'aws-cdk-lib/assertions';
3
+ import { AppStack } from './stacks/app-stack';
4
+
5
+ test('Empty Stack', () => {
6
+ const app = new App();
7
+ // WHEN
8
+ const stack = new AppStack(app, '<%= projectName %>TestStack');
9
+ // THEN
10
+ Template.fromStack(stack as Stack).templateMatches({
11
+ Resources: {}
12
+ });
13
+ });
@@ -1,11 +1,8 @@
1
- import { Linter } from '@nx/linter';
2
-
3
- export interface ApplicationSchema {
4
- name: string;
5
- tags?: string;
6
- directory?: string;
7
- skipFormat?: boolean;
8
- linter?: Linter;
9
- unitTestRunner?: 'jest' | 'none';
10
- setParserOptionsProject?: boolean;
11
- }
1
+ export interface ApplicationSchema {
2
+ name: string;
3
+ tags?: string;
4
+ directory?: string;
5
+ skipFormat?: boolean;
6
+ unitTestRunner?: 'jest' | 'none';
7
+ setParserOptionsProject?: boolean;
8
+ }
@@ -1,58 +1,44 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "id": "AwsCdk",
4
- "title": "",
5
- "type": "object",
6
- "properties": {
7
- "name": {
8
- "type": "string",
9
- "description": "",
10
- "$default": {
11
- "$source": "argv",
12
- "index": 0
13
- },
14
- "x-prompt": "What name would you like to use?"
15
- },
16
- "tags": {
17
- "type": "string",
18
- "description": "Add tags to the project (used for linting)",
19
- "alias": "t"
20
- },
21
- "directory": {
22
- "type": "string",
23
- "description": "A directory where the project is placed",
24
- "alias": "d"
25
- },
26
- "skipFormat": {
27
- "description": "Skip formatting files",
28
- "type": "boolean",
29
- "default": false
30
- },
31
- "unitTestRunner": {
32
- "description": "Adds the specified unit test runner",
33
- "type": "string",
34
- "enum": [
35
- "jest",
36
- "none"
37
- ],
38
- "default": "jest"
39
- },
40
- "linter": {
41
- "description": "The tool to use for running lint checks.",
42
- "type": "string",
43
- "enum": [
44
- "eslint",
45
- "tslint"
46
- ],
47
- "default": "eslint"
48
- },
49
- "setParserOptionsProject": {
50
- "type": "boolean",
51
- "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
52
- "default": false
53
- }
54
- },
55
- "required": [
56
- "name"
57
- ]
58
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "id": "AwsCdk",
4
+ "title": "",
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "description": "",
10
+ "$default": {
11
+ "$source": "argv",
12
+ "index": 0
13
+ },
14
+ "x-prompt": "What name would you like to use?"
15
+ },
16
+ "tags": {
17
+ "type": "string",
18
+ "description": "Add tags to the project (used for linting)",
19
+ "alias": "t"
20
+ },
21
+ "directory": {
22
+ "type": "string",
23
+ "description": "A directory where the project is placed",
24
+ "alias": "d"
25
+ },
26
+ "skipFormat": {
27
+ "description": "Skip formatting files",
28
+ "type": "boolean",
29
+ "default": false
30
+ },
31
+ "unitTestRunner": {
32
+ "description": "Adds the specified unit test runner",
33
+ "type": "string",
34
+ "enum": ["jest", "none"],
35
+ "default": "jest"
36
+ },
37
+ "setParserOptionsProject": {
38
+ "type": "boolean",
39
+ "description": "Whether or not to configure the ESLint \"parserOptions.project\" option. We do not do this by default for lint performance reasons.",
40
+ "default": false
41
+ }
42
+ },
43
+ "required": ["name"]
44
+ }
@@ -21,9 +21,7 @@ function initGenerator(host, options) {
21
21
  'aws-cdk': cdk_shared_1.CDK_VERSION,
22
22
  'aws-cdk-lib': cdk_shared_1.CDK_VERSION,
23
23
  constructs: cdk_shared_1.CDK_CONSTRUCTS_VERSION,
24
- }, {
25
- 'eslint-plugin-cdk': cdk_shared_1.CDK_ESLINT_VERSION,
26
- });
24
+ }, {});
27
25
  if (!schema.skipFormat) {
28
26
  yield (0, devkit_1.formatFiles)(host);
29
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/aws-cdk-v2/src/generators/init/init.ts"],"names":[],"mappings":";;;AAaA,sCA8BC;;AA3CD,uCAAoH;AACpH,mCAA6C;AAG7C,uDAAiG;AAEjG,SAAS,gBAAgB,CAAC,MAA2B;;IACnD,uCACK,MAAM,KACT,cAAc,EAAE,MAAA,MAAM,CAAC,cAAc,mCAAI,MAAM,IAC/C;AACJ,CAAC;AAED,SAAsB,aAAa,CAAC,IAAU,EAAE,OAA4B;;QAC1E,IAAI,WAA8B,CAAC;QACnC,MAAM,MAAM,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAEzC,IAAI,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;YACrC,WAAW,GAAG,MAAM,IAAA,wBAAiB,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAClD,CAAC;QAED,MAAM,WAAW,GAAG,IAAA,qCAA4B,EAC9C,IAAI,EACJ;YACE,SAAS,EAAE,wBAAW;YACtB,aAAa,EAAE,wBAAW;YAC1B,UAAU,EAAE,mCAAsB;SACnC,EACD;YACE,mBAAmB,EAAE,+BAAkB;SACxC,CACF,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;QAED,OAAO,GAAS,EAAE;YAChB,IAAI,WAAW,EAAE,CAAC;gBAChB,MAAM,WAAW,EAAE,CAAC;YACtB,CAAC;YACD,MAAM,WAAW,EAAE,CAAC;QACtB,CAAC,CAAA,CAAC;IACJ,CAAC;CAAA;AAED,kBAAe,aAAa,CAAC;AAChB,QAAA,aAAa,GAAG,IAAA,2BAAkB,EAAC,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/aws-cdk-v2/src/generators/init/init.ts"],"names":[],"mappings":";;;AAaA,sCA4BC;;AAzCD,uCAAoH;AACpH,mCAA6C;AAG7C,uDAA6E;AAE7E,SAAS,gBAAgB,CAAC,MAA2B;;IACnD,uCACK,MAAM,KACT,cAAc,EAAE,MAAA,MAAM,CAAC,cAAc,mCAAI,MAAM,IAC/C;AACJ,CAAC;AAED,SAAsB,aAAa,CAAC,IAAU,EAAE,OAA4B;;QAC1E,IAAI,WAA8B,CAAC;QACnC,MAAM,MAAM,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAEzC,IAAI,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE,CAAC;YACrC,WAAW,GAAG,MAAM,IAAA,wBAAiB,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAClD,CAAC;QAED,MAAM,WAAW,GAAG,IAAA,qCAA4B,EAC9C,IAAI,EACJ;YACE,SAAS,EAAE,wBAAW;YACtB,aAAa,EAAE,wBAAW;YAC1B,UAAU,EAAE,mCAAsB;SACnC,EACD,EAAE,CACH,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;QAED,OAAO,GAAS,EAAE;YAChB,IAAI,WAAW,EAAE,CAAC;gBAChB,MAAM,WAAW,EAAE,CAAC;YACtB,CAAC;YACD,MAAM,WAAW,EAAE,CAAC;QACtB,CAAC,CAAA,CAAC;IACJ,CAAC;CAAA;AAED,kBAAe,aAAa,CAAC;AAChB,QAAA,aAAa,GAAG,IAAA,2BAAkB,EAAC,aAAa,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- export interface InitGeneratorSchema {
2
- unitTestRunner?: 'jest' | 'none';
3
- skipFormat?: boolean;
4
- }
1
+ export interface InitGeneratorSchema {
2
+ unitTestRunner?: 'jest' | 'none';
3
+ skipFormat?: boolean;
4
+ }
@@ -1,23 +1,20 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "id": "AwsCdkInit",
4
- "title": "Add AWS CDK Schematics",
5
- "type": "object",
6
- "properties": {
7
- "unitTestRunner": {
8
- "description": "Adds the specified unit test runner",
9
- "type": "string",
10
- "enum": [
11
- "jest",
12
- "none"
13
- ],
14
- "default": "jest"
15
- },
16
- "skipFormat": {
17
- "description": "Skip formatting files",
18
- "type": "boolean",
19
- "default": false
20
- }
21
- },
22
- "required": []
23
- }
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "id": "AwsCdkInit",
4
+ "title": "Add AWS CDK Schematics",
5
+ "type": "object",
6
+ "properties": {
7
+ "unitTestRunner": {
8
+ "description": "Adds the specified unit test runner",
9
+ "type": "string",
10
+ "enum": ["jest", "none"],
11
+ "default": "jest"
12
+ },
13
+ "skipFormat": {
14
+ "description": "Skip formatting files",
15
+ "type": "boolean",
16
+ "default": false
17
+ }
18
+ },
19
+ "required": []
20
+ }
@@ -1,3 +1,2 @@
1
1
  export declare const CDK_VERSION = "^2.77.0";
2
- export declare const CDK_ESLINT_VERSION = "^1.8.0";
3
2
  export declare const CDK_CONSTRUCTS_VERSION = "^10.2.10";
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CDK_CONSTRUCTS_VERSION = exports.CDK_ESLINT_VERSION = exports.CDK_VERSION = void 0;
3
+ exports.CDK_CONSTRUCTS_VERSION = exports.CDK_VERSION = void 0;
4
4
  exports.CDK_VERSION = '^2.77.0';
5
- exports.CDK_ESLINT_VERSION = '^1.8.0';
6
5
  exports.CDK_CONSTRUCTS_VERSION = '^10.2.10';
7
6
  //# sourceMappingURL=cdk-shared.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cdk-shared.js","sourceRoot":"","sources":["../../../../../packages/aws-cdk-v2/src/utils/cdk-shared.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,SAAS,CAAC;AACxB,QAAA,kBAAkB,GAAG,QAAQ,CAAC;AAC9B,QAAA,sBAAsB,GAAG,UAAU,CAAC"}
1
+ {"version":3,"file":"cdk-shared.js","sourceRoot":"","sources":["../../../../../packages/aws-cdk-v2/src/utils/cdk-shared.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,SAAS,CAAC;AACxB,QAAA,sBAAsB,GAAG,UAAU,CAAC"}
@@ -6,7 +6,8 @@ function mockExecutorContext(executorName, workspaceVersion = 2) {
6
6
  projectName: 'proj',
7
7
  root: '/root',
8
8
  cwd: '/root',
9
- workspace: {
9
+ nxJsonConfiguration: {},
10
+ projectsConfigurations: {
10
11
  version: workspaceVersion,
11
12
  projects: {
12
13
  proj: {
@@ -19,6 +20,7 @@ function mockExecutorContext(executorName, workspaceVersion = 2) {
19
20
  },
20
21
  },
21
22
  },
23
+ projectGraph: { nodes: {}, dependencies: {} },
22
24
  target: {
23
25
  executor: `@wolsok/nx-aws-cdk-v2:${executorName}`,
24
26
  },
@@ -1 +1 @@
1
- {"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../../../packages/aws-cdk-v2/src/utils/testing.ts"],"names":[],"mappings":";;AAEA,kDAuBC;AAvBD,SAAgB,mBAAmB,CAAC,YAAoB,EAAE,gBAAgB,GAAG,CAAC;IAC5E,OAAO;QACL,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,OAAO;QACb,GAAG,EAAE,OAAO;QACZ,SAAS,EAAE;YACT,OAAO,EAAE,gBAAgB;YACzB,QAAQ,EAAE;gBACR,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,QAAQ,EAAE,yBAAyB,YAAY,EAAE;yBAClD;qBACF;iBACF;aACF;SACF;QACD,MAAM,EAAE;YACN,QAAQ,EAAE,yBAAyB,YAAY,EAAE;SAClD;QACD,SAAS,EAAE,IAAI;KAChB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../../../packages/aws-cdk-v2/src/utils/testing.ts"],"names":[],"mappings":";;AAEA,kDAyBC;AAzBD,SAAgB,mBAAmB,CAAC,YAAoB,EAAE,gBAAgB,GAAG,CAAC;IAC5E,OAAO;QACL,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,OAAO;QACb,GAAG,EAAE,OAAO;QACZ,mBAAmB,EAAE,EAAE;QACvB,sBAAsB,EAAE;YACtB,OAAO,EAAE,gBAAgB;YACzB,QAAQ,EAAE;gBACR,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,QAAQ,EAAE,yBAAyB,YAAY,EAAE;yBAClD;qBACF;iBACF;aACF;SACF;QACD,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;QAC7C,MAAM,EAAE;YACN,QAAQ,EAAE,yBAAyB,YAAY,EAAE;SAClD;QACD,SAAS,EAAE,IAAI;KAChB,CAAC;AACJ,CAAC"}