@toolsplus/nx-forge 2.1.0 → 2.3.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/README.md +36 -34
- package/executors.json +5 -0
- package/migrations.json +16 -0
- package/package.json +5 -1
- package/src/executors/build/executor.js +1 -1
- package/src/executors/build/executor.js.map +1 -1
- package/src/executors/build/lib/compile-webpack.js +3 -2
- package/src/executors/build/lib/compile-webpack.js.map +1 -1
- package/src/executors/build/lib/copy-forge-app-assets.js.map +1 -1
- package/src/executors/build/lib/generate-package-json.js.map +1 -1
- package/src/executors/build/lib/normalize-options.js.map +1 -1
- package/src/executors/build/lib/patch-manifest-yml.js +3 -6
- package/src/executors/build/lib/patch-manifest-yml.js.map +1 -1
- package/src/executors/build/lib/process-custom-ui-dependencies.js +5 -8
- package/src/executors/build/lib/process-custom-ui-dependencies.js.map +1 -1
- package/src/executors/build/schema.json +1 -3
- package/src/executors/deploy/executor.js.map +1 -1
- package/src/executors/deploy/schema.json +2 -8
- package/src/executors/install/executor.d.ts +4 -0
- package/src/executors/install/executor.js +30 -0
- package/src/executors/install/executor.js.map +1 -0
- package/src/executors/install/schema.d.ts +10 -0
- package/src/executors/install/schema.json +54 -0
- package/src/executors/register/executor.js +1 -1
- package/src/executors/register/executor.js.map +1 -1
- package/src/executors/register/lib/normalize-options.js.map +1 -1
- package/src/executors/register/lib/patch-manifest-yml.js +4 -9
- package/src/executors/register/lib/patch-manifest-yml.js.map +1 -1
- package/src/executors/register/schema.json +2 -5
- package/src/executors/tunnel/executor.js.map +1 -1
- package/src/executors/tunnel/lib/extract-custom-ui-projects.js +3 -7
- package/src/executors/tunnel/lib/extract-custom-ui-projects.js.map +1 -1
- package/src/executors/tunnel/lib/run-tunnel.js.map +1 -1
- package/src/executors/tunnel/lib/wait-until-server-is-listening.js.map +1 -1
- package/src/executors/tunnel/schema.json +1 -3
- package/src/generators/application/files/README.md +2 -8
- package/src/generators/application/generator.js +4 -2
- package/src/generators/application/generator.js.map +1 -1
- package/src/generators/application/lib/add-project.js +3 -0
- package/src/generators/application/lib/add-project.js.map +1 -1
- package/src/generators/application/lib/create-files.js.map +1 -1
- package/src/generators/application/lib/get-build-config.js.map +1 -1
- package/src/generators/application/lib/get-deploy-config.js.map +1 -1
- package/src/generators/application/lib/get-install-config.d.ts +3 -0
- package/src/generators/application/lib/get-install-config.js +14 -0
- package/src/generators/application/lib/get-install-config.js.map +1 -0
- package/src/generators/application/lib/get-register-config.js.map +1 -1
- package/src/generators/application/lib/get-serve-config.js.map +1 -1
- package/src/generators/application/lib/index.js.map +1 -1
- package/src/generators/application/lib/normalize-options.js +6 -4
- package/src/generators/application/lib/normalize-options.js.map +1 -1
- package/src/generators/application/schema.d.ts +3 -1
- package/src/generators/application/schema.json +3 -11
- package/src/generators/init/generator.js +15 -3
- package/src/generators/init/generator.js.map +1 -1
- package/src/generators/init/lib/add-dependencies.js.map +1 -1
- package/src/generators/init/lib/index.js.map +1 -1
- package/src/generators/init/lib/normalize-options.js.map +1 -1
- package/src/generators/init/schema.d.ts +1 -1
- package/src/generators/init/schema.json +1 -4
- package/src/graph/forge-project-graph.d.ts +2 -0
- package/src/graph/forge-project-graph.js +68 -0
- package/src/graph/forge-project-graph.js.map +1 -0
- package/src/index.d.ts +3 -0
- package/src/index.js +7 -0
- package/src/index.js.map +1 -1
- package/src/migrations/update-2-3-0/add-nx-forge-plugin.d.ts +2 -0
- package/src/migrations/update-2-3-0/add-nx-forge-plugin.js +14 -0
- package/src/migrations/update-2-3-0/add-nx-forge-plugin.js.map +1 -0
- package/src/migrations/update-2-3-0/remove-implicit-custom-ui-dependencies.d.ts +2 -0
- package/src/migrations/update-2-3-0/remove-implicit-custom-ui-dependencies.js +31 -0
- package/src/migrations/update-2-3-0/remove-implicit-custom-ui-dependencies.js.map +1 -0
- package/src/migrations/update-2-3-0/utils/manifest.d.ts +4 -0
- package/src/migrations/update-2-3-0/utils/manifest.js +23 -0
- package/src/migrations/update-2-3-0/utils/manifest.js.map +1 -0
- package/src/migrations/update-2-3-0/utils/yml.d.ts +20 -0
- package/src/migrations/update-2-3-0/utils/yml.js +36 -0
- package/src/migrations/update-2-3-0/utils/yml.js.map +1 -0
- package/src/utils/forge/async-commands.js.map +1 -1
- package/src/utils/forge/manifest-yml.d.ts +15 -0
- package/src/utils/forge/manifest-yml.js +56 -0
- package/src/utils/forge/manifest-yml.js.map +1 -0
- package/src/utils/versions.js.map +1 -1
- package/src/utils/forge/load-manifest-yml.d.ts +0 -2
- package/src/utils/forge/load-manifest-yml.js +0 -32
- package/src/utils/forge/load-manifest-yml.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Nx Forge
|
|
2
2
|
|
|
3
|
-
[Nx plugin](https://nx.dev) for [Atlassian Forge](https://developer.atlassian.com/platform/forge/) that aims to assist in efficient, scalable app development and remove the mental overhead of how to set up a Forge project.
|
|
4
|
-
Building on top of Nx means shared code can easily be extracted into libraries, and [Custom UI](https://developer.atlassian.com/platform/forge/custom-ui/) can be integrated into the app and dev workflow without having to break with the monorepo structure that Nx provides.
|
|
3
|
+
[Nx plugin](https://nx.dev) for [Atlassian Forge](https://developer.atlassian.com/platform/nx-forge/) that aims to assist in efficient, scalable app development and remove the mental overhead of how to set up a Forge project.
|
|
4
|
+
Building on top of Nx means shared code can easily be extracted into libraries, and [Custom UI](https://developer.atlassian.com/platform/nx-forge/custom-ui/) can be integrated into the app and dev workflow without having to break with the monorepo structure that Nx provides.
|
|
5
5
|
|
|
6
6
|
## Prerequisites
|
|
7
7
|
|
|
@@ -26,13 +26,13 @@ npm install --save-dev @nx/node
|
|
|
26
26
|
Add the plugin to your Nx workspace using
|
|
27
27
|
|
|
28
28
|
```shell
|
|
29
|
-
npm install --save-dev @toolsplus/nx-forge
|
|
29
|
+
npm install --save-dev @toolsplus/nx-nx-forge
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
or
|
|
33
33
|
|
|
34
34
|
```shell
|
|
35
|
-
yarn add --dev @toolsplus/nx-forge
|
|
35
|
+
yarn add --dev @toolsplus/nx-nx-forge
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
### Generate a Forge app
|
|
@@ -40,12 +40,12 @@ yarn add --dev @toolsplus/nx-forge
|
|
|
40
40
|
Once installed, run the Forge app generator to generate a Forge app.
|
|
41
41
|
|
|
42
42
|
```shell
|
|
43
|
-
nx g @toolsplus/nx-forge:app <forge-app-name>
|
|
43
|
+
nx g @toolsplus/nx-nx-forge:app <nx-forge-app-name>
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
> Hint: You can use the `--dry-run` flag to see what will be generated.
|
|
47
47
|
|
|
48
|
-
Replacing `<forge-app-name>` with the name of the app you're wanting to create.
|
|
48
|
+
Replacing `<nx-forge-app-name>` with the name of the app you're wanting to create.
|
|
49
49
|
|
|
50
50
|
### Add a Custom UI module
|
|
51
51
|
|
|
@@ -57,7 +57,7 @@ Forge apps require at least one module before they can be deployed. Let's start
|
|
|
57
57
|
|
|
58
58
|
Replacing `<custom-ui-app-name>` with the name of the Custom UI project you're wanting to create.
|
|
59
59
|
|
|
60
|
-
To get this React app working as a Forge Custom UI update the `apps/<custom-ui-app-name>/project.json` file by replacing the `baseHref` value in the build options with `.` instead of `/` ([refer to the Forge docs for additional details](https://developer.atlassian.com/platform/forge/custom-ui/#accessing-static-assets)):
|
|
60
|
+
To get this React app working as a Forge Custom UI update the `apps/<custom-ui-app-name>/project.json` file by replacing the `baseHref` value in the build options with `.` instead of `/` ([refer to the Forge docs for additional details](https://developer.atlassian.com/platform/nx-forge/custom-ui/#accessing-static-assets)):
|
|
61
61
|
|
|
62
62
|
```
|
|
63
63
|
{
|
|
@@ -111,43 +111,29 @@ app:
|
|
|
111
111
|
id: ari:cloud:ecosystem::app/to-be-generated
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
The most important bit to note here is that the `path` property of the `project-page` resource should refer to the Custom UI project name from the previous step. This tells the Nx Forge plugin which Nx app project corresponds to `project-page` resource. The plugin will replace this path with the actual Custom UI build artifact during the Forge app build.
|
|
115
|
-
|
|
116
|
-
Finally, update the `apps/<forge-app-name>/project.json` file in the generated Forge app project to define an implicit dependency to the Custom UI project.
|
|
117
|
-
|
|
118
|
-
```json
|
|
119
|
-
{
|
|
120
|
-
"root": "apps/<forge-app-name>",
|
|
121
|
-
"sourceRoot": "apps/<forge-app-name>/src",
|
|
122
|
-
"projectType": "application",
|
|
123
|
-
"targets": {...},
|
|
124
|
-
"implicitDependencies": ["<custom-ui-app-name>"]
|
|
125
|
-
}
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
This tells Nx that each time we build our Forge app, it needs to build the Custom UI project first.
|
|
114
|
+
The most important bit to note here is that the `path` property of the `project-page` resource should refer to the Custom UI project name from the previous step. This tells the Nx Forge plugin which Nx app project corresponds to the `project-page` resource. The plugin will replace this path with the path to the actual Custom UI build artifact during the Forge app build.
|
|
129
115
|
|
|
130
116
|
### Initial build, registration, deployment and installation
|
|
131
117
|
|
|
132
118
|
Before you can deploy the Forge app it needs to be registered with the Forge platform. To do this, initially build the Forge app using
|
|
133
119
|
|
|
134
|
-
nx build <forge-app-name>
|
|
120
|
+
nx build <nx-forge-app-name>
|
|
135
121
|
|
|
136
122
|
Once that's finished, run
|
|
137
123
|
|
|
138
|
-
nx register <forge-app-name>
|
|
124
|
+
nx register <nx-forge-app-name>
|
|
139
125
|
|
|
140
|
-
This will use `<forge-app-name>` by default as the app name on the Forge platform. If you would like to use a different name add the app name flag as follows: `--appName="My Forge App"`.
|
|
126
|
+
This will use `<nx-forge-app-name>` by default as the app name on the Forge platform. If you would like to use a different name add the app name flag as follows: `--appName="My Forge App"`.
|
|
141
127
|
|
|
142
128
|
Then run
|
|
143
129
|
|
|
144
|
-
nx deploy <forge-app-name>
|
|
130
|
+
nx deploy <nx-forge-app-name>
|
|
145
131
|
|
|
146
132
|
to deploy the Forge app to the default development environment.
|
|
147
133
|
|
|
148
|
-
Finally
|
|
149
|
-
|
|
150
|
-
forge
|
|
134
|
+
Finally, install the app in any of your sites with the following command
|
|
135
|
+
|
|
136
|
+
nx install <nx-forge-app-name> --site <my-atlassian-site.atlassian.net> --product <jira|confluence|compass> --no-interactive
|
|
151
137
|
|
|
152
138
|
The Forge app is now registered, deployed and installed with the Forge platform.
|
|
153
139
|
|
|
@@ -155,21 +141,37 @@ That's it for the setup steps. You can now generate additional Custom UI resourc
|
|
|
155
141
|
|
|
156
142
|
## Using the Nx Forge plugin
|
|
157
143
|
|
|
144
|
+
For any of the plugin targets below append `--help` or `-h` to explore all available options.
|
|
145
|
+
|
|
158
146
|
### Register
|
|
159
147
|
|
|
160
|
-
Run `nx register <forge-app-name>` to register the Forge app with the Forge platform.
|
|
148
|
+
Run `nx register <nx-forge-app-name>` to register the Forge app with the Forge platform.
|
|
161
149
|
|
|
162
150
|
### Build
|
|
163
151
|
|
|
164
|
-
Run `nx build <forge-app-name>` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
152
|
+
Run `nx build <nx-forge-app-name>` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
165
153
|
|
|
166
154
|
### Deploy
|
|
167
155
|
|
|
168
|
-
Run `nx deploy <forge-app-name>` to deploy the project. The build artifacts will be deployed using the Forge CLI deploy command.
|
|
156
|
+
Run `nx deploy <nx-forge-app-name>` to deploy the project. The build artifacts will be deployed using the Forge CLI deploy command.
|
|
157
|
+
|
|
158
|
+
### Install
|
|
159
|
+
|
|
160
|
+
Run `nx install <nx-forge-app-name>` to install the Forge app. The CLI will prompt for site, product if they are not provided as parameters.
|
|
161
|
+
|
|
162
|
+
### Tunnel (experimental)
|
|
163
|
+
|
|
164
|
+
Run `nx serve <nx-forge-app-name>` to serve the project. This will start the `serve` target for all Custom UI projects defined in the app `manifest.yml` on their specified tunnel port. After that, it will start a build process in watch mode for the Forge app itself, before ultimately, starting the `nx-forge tunnel` process for the Forge app.
|
|
165
|
+
|
|
166
|
+
## Migrate to a newer plugin version
|
|
167
|
+
|
|
168
|
+
As of plugin version 2.2.0 the plugin ships with migration scripts that allow you to use the [`nx migrate`](https://nx.dev/packages/nx/documents/migrate) to update your workspace to a newer version of `nx-forge`.
|
|
169
|
+
|
|
170
|
+
To update to the latest nx-forge version run the command below and then follow the instructions in the terminal output.
|
|
169
171
|
|
|
170
|
-
|
|
172
|
+
nx migrate @toolsplus/nx-forge@latest
|
|
171
173
|
|
|
172
|
-
|
|
174
|
+
Refer to the [Nx migrate docs](https://nx.dev/packages/nx/documents/migrate) for more details on how to use `nx migrate`.
|
|
173
175
|
|
|
174
176
|
## Further help on how to develop with Nx
|
|
175
177
|
|
package/executors.json
CHANGED
|
@@ -20,6 +20,11 @@
|
|
|
20
20
|
"implementation": "./src/executors/tunnel/executor",
|
|
21
21
|
"schema": "./src/executors/tunnel/schema.json",
|
|
22
22
|
"description": "tunnel executor"
|
|
23
|
+
},
|
|
24
|
+
"install": {
|
|
25
|
+
"implementation": "./src/executors/install/executor",
|
|
26
|
+
"schema": "./src/executors/install/schema.json",
|
|
27
|
+
"description": "install executor"
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
30
|
}
|
package/migrations.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generators": {
|
|
3
|
+
"update-2-3-0-add-nx-forge-plugin": {
|
|
4
|
+
"version": "2.3.0-beta.0",
|
|
5
|
+
"description": "Adds @toolsplus/nx-forge plugin to workspace",
|
|
6
|
+
"cli": "nx",
|
|
7
|
+
"implementation": "./src/migrations/update-2-3-0/add-nx-forge-plugin"
|
|
8
|
+
},
|
|
9
|
+
"update-2-3-0-remove-implicit-custom-ui-dependencies": {
|
|
10
|
+
"version": "2.3.0-beta.0",
|
|
11
|
+
"description": "Removes implicit Custom UI dependencies from Forge app projects",
|
|
12
|
+
"cli": "nx",
|
|
13
|
+
"implementation": "./src/migrations/update-2-3-0/remove-implicit-custom-ui-dependencies"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolsplus/nx-forge",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Atlassian Forge plugin for Nx",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"generators": "./generators.json",
|
|
7
7
|
"executors": "./executors.json",
|
|
8
8
|
"peerDependencies": {
|
|
9
9
|
"@nx/node": "^16.0.0",
|
|
10
|
+
"@nx/webpack": "^16.0.0",
|
|
10
11
|
"@nx/workspace": "^16.0.0"
|
|
11
12
|
},
|
|
13
|
+
"nx-migrations": {
|
|
14
|
+
"migrations": "./migrations.json"
|
|
15
|
+
},
|
|
12
16
|
"dependencies": {
|
|
13
17
|
"@forge/manifest": "^4.4.1",
|
|
14
18
|
"fs-extra": "^10.0.1",
|
|
@@ -11,7 +11,7 @@ const copy_forge_app_assets_1 = require("./lib/copy-forge-app-assets");
|
|
|
11
11
|
function runExecutor(rawOptions, context) {
|
|
12
12
|
var _a, e_1, _b, _c;
|
|
13
13
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
const { root, sourceRoot } = context.
|
|
14
|
+
const { root, sourceRoot } = context.projectsConfigurations.projects[context.projectName];
|
|
15
15
|
if (!sourceRoot) {
|
|
16
16
|
throw new Error(`${context.projectName} does not have a sourceRoot.`);
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/executors/build/executor.ts"],"names":[],"mappings":";;;AACA,uCAAoC;AAEpC,+DAA2D;AAC3D,yFAAmF;AACnF,iEAA4D;AAC5D,uEAAkE;AAClE,2DAAuD;AACvD,uEAAiE;AAEjE,SAA8B,WAAW,CACvC,UAAgC,EAChC,OAAwB;;;QAExB,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"executor.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OAAO,CAAC,YAAa,EACrB,iBAAiB,EACjB,OAAO,CACR,CAAC;QAEF,eAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;QACtC,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;;CACH;AAxCD,8BAwCC"}
|
|
@@ -4,8 +4,9 @@ exports.compileWebpack = void 0;
|
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const webpack_1 = require("@nx/webpack");
|
|
6
6
|
function compileWebpack(options, context) {
|
|
7
|
-
const
|
|
7
|
+
const webpackOptions = {
|
|
8
8
|
target: 'node',
|
|
9
|
+
compiler: 'tsc',
|
|
9
10
|
outputPath: (0, devkit_1.joinPathFragments)(options.outputPath, 'src'),
|
|
10
11
|
outputFileName: 'index.js',
|
|
11
12
|
tsConfig: `${options.projectRoot}/tsconfig.app.json`,
|
|
@@ -18,7 +19,7 @@ function compileWebpack(options, context) {
|
|
|
18
19
|
extractLicenses: false,
|
|
19
20
|
externalDependencies: 'all',
|
|
20
21
|
};
|
|
21
|
-
return (0, webpack_1.webpackExecutor)(
|
|
22
|
+
return (0, webpack_1.webpackExecutor)(webpackOptions, context);
|
|
22
23
|
}
|
|
23
24
|
exports.compileWebpack = compileWebpack;
|
|
24
25
|
//# sourceMappingURL=compile-webpack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile-webpack.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/build/lib/compile-webpack.ts"],"names":[],"mappings":";;;AAAA,uCAAgE;AAEhE,yCAAoE;AAGpE,SAAgB,cAAc,CAC5B,OAA0B,EAC1B,OAAwB;IAExB,MAAM,cAAc,GAA2B;QAC7C,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,IAAA,0BAAiB,EAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC;QACxD,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,GAAG,OAAO,CAAC,WAAW,oBAAoB;QACpD,IAAI,EAAE,GAAG,OAAO,CAAC,WAAW,eAAe;QAC3C,mBAAmB,EAAE,KAAK;QAC1B,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,YAAY,EAAE,EAAE;QAChB,gBAAgB,EAAE,EAAE;QACpB,eAAe,EAAE,KAAK;QACtB,oBAAoB,EAAE,KAAK;KAC5B,CAAC;IAEF,OAAO,IAAA,yBAAe,EAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC;
|
|
1
|
+
{"version":3,"file":"compile-webpack.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/executors/build/lib/compile-webpack.ts"],"names":[],"mappings":";;;AAAA,uCAAgE;AAEhE,yCAAoE;AAGpE,SAAgB,cAAc,CAC5B,OAA0B,EAC1B,OAAwB;IAExB,MAAM,cAAc,GAA2B;QAC7C,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,KAAK;QACf,UAAU,EAAE,IAAA,0BAAiB,EAAC,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC;QACxD,cAAc,EAAE,UAAU;QAC1B,QAAQ,EAAE,GAAG,OAAO,CAAC,WAAW,oBAAoB;QACpD,IAAI,EAAE,GAAG,OAAO,CAAC,WAAW,eAAe;QAC3C,mBAAmB,EAAE,KAAK;QAC1B,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,YAAY,EAAE,EAAE;QAChB,gBAAgB,EAAE,EAAE;QACpB,eAAe,EAAE,KAAK;QACtB,oBAAoB,EAAE,KAAK;KAC5B,CAAC;IAEF,OAAO,IAAA,yBAAe,EAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC;AArBD,wCAqBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"copy-forge-app-assets.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/build/lib/copy-forge-app-assets.ts"],"names":[],"mappings":";;;AAAA,2BAA6C;AAC7C,+BAA4B;AAC5B,uCAAoC;AACpC,qEAAwE;AAGxE,SAAgB,kBAAkB,CAAC,OAA0B;IAC3D,eAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IAE3C,IAAI,CAAC,IAAA,2BAAe,EAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QACxC,IAAA,cAAS,EAAC,OAAO,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;KACpD;IAED,8EAA8E;IAC9E,0BAA0B;IAC1B,IAAA,iBAAY,EACV,IAAA,WAAI,EAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,cAAc,CAAC,EACvD,IAAA,WAAI,EAAC,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC,CACzC,CAAC;IAEF,eAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;AAChD,CAAC;AAfD,gDAeC"}
|
|
1
|
+
{"version":3,"file":"copy-forge-app-assets.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/executors/build/lib/copy-forge-app-assets.ts"],"names":[],"mappings":";;;AAAA,2BAA6C;AAC7C,+BAA4B;AAC5B,uCAAoC;AACpC,qEAAwE;AAGxE,SAAgB,kBAAkB,CAAC,OAA0B;IAC3D,eAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IAE3C,IAAI,CAAC,IAAA,2BAAe,EAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QACxC,IAAA,cAAS,EAAC,OAAO,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;KACpD;IAED,8EAA8E;IAC9E,0BAA0B;IAC1B,IAAA,iBAAY,EACV,IAAA,WAAI,EAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,cAAc,CAAC,EACvD,IAAA,WAAI,EAAC,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC,CACzC,CAAC;IAEF,eAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;AAChD,CAAC;AAfD,gDAeC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-package-json.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/build/lib/generate-package-json.ts"],"names":[],"mappings":";;;AACA,uCAAyE;AACzE,0DAA4D;AAI5D;;;;;;;;GAQG;AACH,SAAgB,mBAAmB,CACjC,WAAmB,EACnB,KAAmB,EACnB,iBAA4B,EAC5B,OAA0B;;IAE1B,MAAM,WAAW,GAAG,iBAAiB,CACnC,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,OAAO,CACR,CAAC;IACF,WAAW,CAAC,IAAI,GAAG,MAAA,WAAW,CAAC,IAAI,mCAAI,OAAO,CAAC,cAAc,CAAC;IAC9D,OAAO,WAAW,CAAC,eAAe,CAAC;IACnC,IAAA,sBAAa,EAAC,GAAG,OAAO,CAAC,UAAU,eAAe,EAAE,WAAW,CAAC,CAAC;AACnE,CAAC;AAfD,kDAeC;AAED;;;;;;;;;GASG;AACH,SAAS,iBAAiB,CACxB,WAAmB,EACnB,KAAmB,EACnB,iBAA4B,EAC5B,OAGC;IAED,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAClE,MAAM,OAAO,GAAG,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAC;IACzE,6CAA6C;IAC7C,IAAI,WAAW,GAAG;QAChB,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,OAAO;QAChB,YAAY,EAAE,EAAE;QAChB,eAAe,EAAE,EAAE;KACpB,CAAC;IACF,IAAI;QACF,WAAW,GAAG,IAAA,qBAAY,EAAC,GAAG,OAAO,CAAC,WAAW,eAAe,CAAC,CAAC;QAClE,IAAI,CAAC,WAAW,CAAC,YAAY,EAAE;YAC7B,WAAW,CAAC,YAAY,GAAG,EAAE,CA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GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;aACpD,MAAM,CAAC,OAAO,CAAC;aACf,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;;YAChB,IACE,CAAC,CAAA,MAAA,MAAA,WAAW,CAAC,oBAAoB,0CAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,0CAAE,QAAQ,CAAA,EACpE;gBACA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;gBAChD,kCAAkC,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;aAClE;QACH,CAAC,CAAC,CAAC;QACL,OAAO,IAAI,CAAC;KACb;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,IAAI,CAAC;KACb;AACH,CAAC"}
|
|
1
|
+
{"version":3,"file":"generate-package-json.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/executors/build/lib/generate-package-json.ts"],"names":[],"mappings":";;;AACA,uCAAyE;AACzE,0DAA4D;AAI5D;;;;;;;;GAQG;AACH,SAAgB,mBAAmB,CACjC,WAAmB,EACnB,KAAmB,EACnB,iBAA4B,EAC5B,OAA0B;;IAE1B,MAAM,WAAW,GAAG,iBAAiB,CACnC,WAAW,EACX,KAAK,EACL,iBAAiB,EACjB,OAAO,CACR,CAAC;IACF,WAAW,CAAC,IAAI,GAAG,MAAA,WAAW,CAAC,IAAI,mCAAI,OAAO,CAAC,cAAc,CAAC;IAC9D,OAAO,WAAW,CAAC,eAAe,CAAC;IACnC,IAAA,sBAAa,EAAC,GAAG,OAAO,CAAC,UAAU,eAAe,EAAE,WAAW,CAAC,CAAC;AACnE,CAAC;AAfD,kDAeC;AAED;;;;;;;;;GASG;AACH,SAAS,iBAAiB,CACxB,WAAmB,EACnB,KAAmB,EACnB,iBAA4B,EAC5B,OA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CAAC;IACpD,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;QACxC,OAAO,IAAI,CAAC;KACb;IAED,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACtB,MAAM,WAAW,GAAG,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC;IAChD,IAAI;QACF,8DAA8D;QAC9D,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,WAAW,eAAe,CAAC,CAAC;QAC3D,IAAI,CAAC,WAAW,CAAC,gBAAgB,EAAE;YACjC,OAAO,IAAI,CAAC;SACb;QAED,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC;aACtC,GAAG,CAAC,CAAC,cAAc,EAAE,EAAE,CAAC,OAAO,cAAc,EAAE,CAAC;aAChD,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;aACpD,MAAM,CAAC,OAAO,CAAC;aACf,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;;YAChB,IACE,CAAC,CAAA,MAAA,MAAA,WAAW,CAAC,oBAAoB,0CAAG,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,0CAAE,QAAQ,CAAA,EACpE;gBACA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;gBAChD,kCAAkC,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;aAClE;QACH,CAAC,CAAC,CAAC;QACL,OAAO,IAAI,CAAC;KACb;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,IAAI,CAAC;KACb;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/build/lib/normalize-options.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAG/B,SAAgB,gBAAgB,CAC9B,OAA6B,EAC7B,IAAY,EACZ,UAAkB,EAClB,WAAmB;;IAEnB,uCACK,OAAO,KACV,IAAI;QACJ,UAAU;QACV,WAAW,EACX,YAAY,EAAE,MAAA,OAAO,CAAC,YAAY,mCAAI,UAAU,EAChD,UAAU,EAAE,IAAA,cAAO,EAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,EAC7C,cAAc,EAAE,UAAU,EAC1B,KAAK,EAAE,MAAA,OAAO,CAAC,KAAK,mCAAI,KAAK,IAC7B;AACJ,CAAC;AAhBD,4CAgBC"}
|
|
1
|
+
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/executors/build/lib/normalize-options.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAG/B,SAAgB,gBAAgB,CAC9B,OAA6B,EAC7B,IAAY,EACZ,UAAkB,EAClB,WAAmB;;IAEnB,uCACK,OAAO,KACV,IAAI;QACJ,UAAU;QACV,WAAW,EACX,YAAY,EAAE,MAAA,OAAO,CAAC,YAAY,mCAAI,UAAU,EAChD,UAAU,EAAE,IAAA,cAAO,EAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,EAC7C,cAAc,EAAE,UAAU,EAC1B,KAAK,EAAE,MAAA,OAAO,CAAC,KAAK,mCAAI,KAAK,IAC7B;AACJ,CAAC;AAhBD,4CAgBC"}
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.patchManifestYml = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const fs_1 = require("fs");
|
|
6
|
-
const js_yaml_1 = require("js-yaml");
|
|
7
5
|
const devkit_1 = require("@nx/devkit");
|
|
8
|
-
const
|
|
6
|
+
const manifest_yml_1 = require("../../../utils/forge/manifest-yml");
|
|
9
7
|
/**
|
|
10
8
|
* Patches the output manifest.yml file to replace resource path parameters to point to the actual Custom UI build
|
|
11
9
|
* artifacts instead of the Nx project reference.
|
|
@@ -18,11 +16,10 @@ function patchManifestYml(options) {
|
|
|
18
16
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19
17
|
const manifestPath = (0, devkit_1.joinPathFragments)(options.outputPath, 'manifest.yml');
|
|
20
18
|
devkit_1.logger.info(`Patching ${manifestPath}...`);
|
|
21
|
-
const manifestSchema = yield (0,
|
|
19
|
+
const manifestSchema = yield (0, manifest_yml_1.readManifestYml)(manifestPath);
|
|
22
20
|
const resources = manifestSchema.resources || [];
|
|
23
21
|
const patchedManifest = Object.assign(Object.assign({}, manifestSchema), { resources: resources.map((r) => patchResource(options.customUIPath, r)) });
|
|
24
|
-
|
|
25
|
-
(0, fs_1.writeFileSync)(manifestPath, patchedManifestContent, { encoding: 'utf8' });
|
|
22
|
+
(0, manifest_yml_1.writeManifestYml)(manifestPath, patchedManifest);
|
|
26
23
|
devkit_1.logger.info(`Done patching ${manifestPath}.`);
|
|
27
24
|
});
|
|
28
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-manifest-yml.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/build/lib/patch-manifest-yml.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"patch-manifest-yml.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/executors/build/lib/patch-manifest-yml.ts"],"names":[],"mappings":";;;;AAAA,uCAAuD;AAIvD,oEAG2C;AAE3C;;;;;;;GAOG;AACH,SAAsB,gBAAgB,CAAC,OAA0B;;QAC/D,MAAM,YAAY,GAAG,IAAA,0BAAiB,EAAC,OAAO,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAE3E,eAAM,CAAC,IAAI,CAAC,YAAY,YAAY,KAAK,CAAC,CAAC;QAE3C,MAAM,cAAc,GAAG,MAAM,IAAA,8BAAe,EAAC,YAAY,CAAC,CAAC;QAE3D,MAAM,SAAS,GAAc,cAAc,CAAC,SAAS,IAAI,EAAE,CAAC;QAC5D,MAAM,eAAe,mCAChB,cAAc,KACjB,SAAS,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,GACxE,CAAC;QAEF,IAAA,+BAAgB,EAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAEhD,eAAM,CAAC,IAAI,CAAC,iBAAiB,YAAY,GAAG,CAAC,CAAC;IAChD,CAAC;CAAA;AAhBD,4CAgBC;AAED,SAAS,aAAa,CACpB,YAAoB,EACpB,QAA+B;IAE/B,uCACK,QAAQ,KACX,IAAI,EAAE,GAAG,YAAY,IAAI,QAAQ,CAAC,IAAI,EAAE,IACxC;AACJ,CAAC"}
|
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const fs_extra_1 = require("fs-extra");
|
|
6
6
|
const fs_1 = require("fs");
|
|
7
7
|
const devkit_1 = require("@nx/devkit");
|
|
8
|
-
const
|
|
8
|
+
const manifest_yml_1 = require("../../../utils/forge/manifest-yml");
|
|
9
9
|
/**
|
|
10
10
|
* Verifies that Custom UI projects are correctly linked to the Nx Forge app and copies build artifacts into the app's
|
|
11
11
|
* output directory.
|
|
@@ -22,7 +22,7 @@ function processCustomUIDependencies(options, context) {
|
|
|
22
22
|
var _a;
|
|
23
23
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
const manifestPath = (0, devkit_1.joinPathFragments)(context.root, context.projectsConfigurations.projects[context.projectName].root, 'manifest.yml');
|
|
25
|
-
const manifestSchema = yield (0,
|
|
25
|
+
const manifestSchema = yield (0, manifest_yml_1.readManifestYml)(manifestPath);
|
|
26
26
|
const resources = (_a = manifestSchema.resources) !== null && _a !== void 0 ? _a : [];
|
|
27
27
|
resources.forEach((r) => verifyAndCopyCustomUIDependency(r, context, options));
|
|
28
28
|
return resources;
|
|
@@ -30,16 +30,13 @@ function processCustomUIDependencies(options, context) {
|
|
|
30
30
|
}
|
|
31
31
|
exports.processCustomUIDependencies = processCustomUIDependencies;
|
|
32
32
|
const verifyAndCopyCustomUIDependency = (resource, context, options) => {
|
|
33
|
-
var _a, _b
|
|
33
|
+
var _a, _b;
|
|
34
34
|
const customUIProjectName = resource.path;
|
|
35
|
-
const customUIProjectConfiguration = context.
|
|
35
|
+
const customUIProjectConfiguration = context.projectsConfigurations.projects[customUIProjectName];
|
|
36
36
|
if (!customUIProjectConfiguration) {
|
|
37
37
|
throw new Error(`Nx workspace is missing project for Custom UI path ${customUIProjectName}. Make sure the Custom UI resource path references a project in your Nx workspace.`);
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
throw new Error(`Project ${customUIProjectName} is configured as Forge Custom UI resource but not listed as implicit dependency of the Forge project (${context.projectName}). Add ${customUIProjectName} to the 'implicitDependencies' array in this project's 'project.json', or remove the Custom UI resource from the app's manifest.yml.`);
|
|
41
|
-
}
|
|
42
|
-
const customUIBuildTargetOutputPath = (_c = (_b = customUIProjectConfiguration.targets['build']) === null || _b === void 0 ? void 0 : _b.options) === null || _c === void 0 ? void 0 : _c.outputPath;
|
|
39
|
+
const customUIBuildTargetOutputPath = (_b = (_a = customUIProjectConfiguration.targets['build']) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.outputPath;
|
|
43
40
|
const absoluteCustomUIBuildTargetOutputPath = (0, devkit_1.joinPathFragments)(context.root, customUIBuildTargetOutputPath);
|
|
44
41
|
if (!customUIBuildTargetOutputPath ||
|
|
45
42
|
!(0, fs_1.existsSync)(absoluteCustomUIBuildTargetOutputPath) ||
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-custom-ui-dependencies.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/build/lib/process-custom-ui-dependencies.ts"],"names":[],"mappings":";;;;AAAA,uCAAoC;AACpC,2BAA6C;AAE7C,uCAAuD;AAIvD,
|
|
1
|
+
{"version":3,"file":"process-custom-ui-dependencies.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/executors/build/lib/process-custom-ui-dependencies.ts"],"names":[],"mappings":";;;;AAAA,uCAAoC;AACpC,2BAA6C;AAE7C,uCAAuD;AAIvD,oEAAoE;AAEpE;;;;;;;;;;;GAWG;AACH,SAAsB,2BAA2B,CAC/C,OAA0B,EAC1B,OAAwB;;;QAExB,MAAM,YAAY,GAAG,IAAA,0BAAiB,EACpC,OAAO,CAAC,IAAI,EACZ,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,EACjE,cAAc,CACf,CAAC;QACF,MAAM,cAAc,GAAG,MAAM,IAAA,8BAAe,EAAC,YAAY,CAAC,CAAC;QAC3D,MAAM,SAAS,GAAG,MAAA,cAAc,CAAC,SAAS,mCAAI,EAAE,CAAC;QAEjD,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CACtB,+BAA+B,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CACrD,CAAC;QAEF,OAAO,SAAS,CAAC;;CAClB;AAjBD,kEAiBC;AAED,MAAM,+BAA+B,GAAG,CACtC,QAA+B,EAC/B,OAAwB,EACxB,OAA0B,EACpB,EAAE;;IACR,MAAM,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CAAC;IAE1C,MAAM,4BAA4B,GAChC,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAE/D,IAAI,CAAC,4BAA4B,EAAE;QACjC,MAAM,IAAI,KAAK,CACb,sDAAsD,mBAAmB,oFAAoF,CAC9J,CAAC;KACH;IAED,MAAM,6BAA6B,GACjC,MAAA,MAAA,4BAA4B,CAAC,OAAO,CAAC,OAAO,CAAC,0CAAE,OAAO,0CAAE,UAAU,CAAC;IACrE,MAAM,qCAAqC,GAAG,IAAA,0BAAiB,EAC7D,OAAO,CAAC,IAAI,EACZ,6BAA6B,CAC9B,CAAC;IAEF,IACE,CAAC,6BAA6B;QAC9B,CAAC,IAAA,eAAU,EAAC,qCAAqC,CAAC;QAClD,IAAA,gBAAW,EAAC,qCAAqC,CAAC,CAAC,MAAM,KAAK,CAAC,EAC/D;QACA,MAAM,IAAI,KAAK,CACb,WAAW,mBAAmB,mGAAmG,CAClI,CAAC;KACH;IAED,eAAM,CAAC,IAAI,CAAC,WAAW,mBAAmB,+BAA+B,CAAC,CAAC;IAC3E,IAAA,mBAAQ,EACN,qCAAqC,EACrC,IAAA,0BAAiB,EACf,OAAO,CAAC,UAAU,EAClB,OAAO,CAAC,YAAY,EACpB,mBAAmB,CACpB,EACD,EAAE,SAAS,EAAE,IAAI,EAAE,CACpB,CAAC;IACF,eAAM,CAAC,IAAI,CAAC,gBAAgB,mBAAmB,6BAA6B,CAAC,CAAC;AAChF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/executors/deploy/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,qEAAwE;AAExE,SAA8B,WAAW,CAAC,OAA8B;;QACtE,MAAM,IAAI,GAAG;YACX,QAAQ;YACR,iBAAiB,OAAO,CAAC,WAAW,EAAE;YACtC,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAClD,GAAG,CAAC,OAAO,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACpD,GAAG,CAAC,OAAO,CAAC,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SAChE,CAAC;QAEF,eAAM,CAAC,GAAG,CAAC,kBAAkB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAE/C,MAAM,IAAA,qCAAoB,EAAC,IAAI,EAAE;YAC/B,GAAG,EAAE,OAAO,CAAC,UAAU;SACxB,CAAC,CAAC;QAEH,eAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QACnC,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA;AAnBD,8BAmBC"}
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/executors/deploy/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,qEAAwE;AAExE,SAA8B,WAAW,CAAC,OAA8B;;QACtE,MAAM,IAAI,GAAG;YACX,QAAQ;YACR,iBAAiB,OAAO,CAAC,WAAW,EAAE;YACtC,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAClD,GAAG,CAAC,OAAO,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YACpD,GAAG,CAAC,OAAO,CAAC,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SAChE,CAAC;QAEF,eAAM,CAAC,GAAG,CAAC,kBAAkB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAE/C,MAAM,IAAA,qCAAoB,EAAC,IAAI,EAAE;YAC/B,GAAG,EAAE,OAAO,CAAC,UAAU;SACxB,CAAC,CAAC;QAEH,eAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QACnC,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA;AAnBD,8BAmBC"}
|
|
@@ -13,11 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"environment": {
|
|
15
15
|
"type": "string",
|
|
16
|
-
"enum": [
|
|
17
|
-
"development",
|
|
18
|
-
"staging",
|
|
19
|
-
"production"
|
|
20
|
-
],
|
|
16
|
+
"enum": ["development", "staging", "production"],
|
|
21
17
|
"description": "Environment to deploy to: development, staging, production.",
|
|
22
18
|
"alias": "e",
|
|
23
19
|
"default": "development"
|
|
@@ -39,7 +35,5 @@
|
|
|
39
35
|
"default": false
|
|
40
36
|
}
|
|
41
37
|
},
|
|
42
|
-
"required": [
|
|
43
|
-
"outputPath"
|
|
44
|
-
]
|
|
38
|
+
"required": ["outputPath"]
|
|
45
39
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const async_commands_1 = require("../../utils/forge/async-commands");
|
|
6
|
+
function runExecutor(options) {
|
|
7
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
|
+
// https://developer.atlassian.com/platform/forge/cli-reference/install/
|
|
9
|
+
const args = [
|
|
10
|
+
'install',
|
|
11
|
+
`--site=${options.site}`,
|
|
12
|
+
`--product=${options.product}`,
|
|
13
|
+
`--environment=${options.environment}`,
|
|
14
|
+
...(options.upgrade === true ? ['--upgrade'] : []),
|
|
15
|
+
...(options.confirmScopes === true ? ['--confirm-scopes'] : []),
|
|
16
|
+
...(options.interactive === false ? ['--non-interactive'] : []),
|
|
17
|
+
...(options.verbose === true ? ['--verbose'] : []),
|
|
18
|
+
];
|
|
19
|
+
devkit_1.logger.log(`Running: forge ${args.join(' ')}`);
|
|
20
|
+
yield (0, async_commands_1.runForgeCommandAsync)(args, {
|
|
21
|
+
cwd: options.outputPath,
|
|
22
|
+
});
|
|
23
|
+
devkit_1.logger.info('✅ Forge app installed');
|
|
24
|
+
return {
|
|
25
|
+
success: true,
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
exports.default = runExecutor;
|
|
30
|
+
//# sourceMappingURL=executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/executors/install/executor.ts"],"names":[],"mappings":";;;AACA,uCAAoC;AACpC,qEAAwE;AAExE,SAA8B,WAAW,CAAC,OAA+B;;QACvE,wEAAwE;QACxE,MAAM,IAAI,GAAG;YACX,SAAS;YACT,UAAU,OAAO,CAAC,IAAI,EAAE;YACxB,aAAa,OAAO,CAAC,OAAO,EAAE;YAC9B,iBAAiB,OAAO,CAAC,WAAW,EAAE;YACtC,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAClD,GAAG,CAAC,OAAO,CAAC,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/D,GAAG,CAAC,OAAO,CAAC,WAAW,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC/D,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SACnD,CAAC;QAEF,eAAM,CAAC,GAAG,CAAC,kBAAkB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAE/C,MAAM,IAAA,qCAAoB,EAAC,IAAI,EAAE;YAC/B,GAAG,EAAE,OAAO,CAAC,UAAU;SACxB,CAAC,CAAC;QAEH,eAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QAErC,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA;AAxBD,8BAwBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface InstallExecutorOptions {
|
|
2
|
+
outputPath: string;
|
|
3
|
+
site: string;
|
|
4
|
+
product: 'jira' | 'confluence' | 'compass';
|
|
5
|
+
environment: 'development' | 'staging' | 'production';
|
|
6
|
+
upgrade: boolean;
|
|
7
|
+
confirmScopes: boolean;
|
|
8
|
+
interactive: boolean;
|
|
9
|
+
verbose: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"version": 2,
|
|
4
|
+
"title": "Forge application install target",
|
|
5
|
+
"description": "Manage app installations",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"outputPath": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The output path of the Forge app files.",
|
|
11
|
+
"visible": false
|
|
12
|
+
},
|
|
13
|
+
"site": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Atlassian site URL (example.atlassian.net)",
|
|
16
|
+
"alias": "s"
|
|
17
|
+
},
|
|
18
|
+
"product": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Atlassian product: jira, confluence, compass",
|
|
21
|
+
"enum": ["jira", "confluence", "compass"],
|
|
22
|
+
"alias": "p"
|
|
23
|
+
},
|
|
24
|
+
"environment": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["development", "staging", "production"],
|
|
27
|
+
"description": "Environment to install to: development, staging, production.",
|
|
28
|
+
"alias": "e",
|
|
29
|
+
"default": "development"
|
|
30
|
+
},
|
|
31
|
+
"upgrade": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"description": "Upgrade an existing installation.",
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
36
|
+
"confirmScopes": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"description": "Skip confirmation of scopes for the app before installing or upgrading the app.",
|
|
39
|
+
"default": false
|
|
40
|
+
},
|
|
41
|
+
"interactive": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "Run installation with or without input prompts.",
|
|
44
|
+
"default": true
|
|
45
|
+
},
|
|
46
|
+
"verbose": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "Run installation in verbose mode.",
|
|
49
|
+
"alias": "v",
|
|
50
|
+
"default": false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": ["outputPath", "site", "product"]
|
|
54
|
+
}
|
|
@@ -7,7 +7,7 @@ const patch_manifest_yml_1 = require("./lib/patch-manifest-yml");
|
|
|
7
7
|
const async_commands_1 = require("../../utils/forge/async-commands");
|
|
8
8
|
function runExecutor(rawOptions, context) {
|
|
9
9
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10
|
-
const { root, sourceRoot } = context.
|
|
10
|
+
const { root, sourceRoot } = context.projectsConfigurations.projects[context.projectName];
|
|
11
11
|
if (!sourceRoot) {
|
|
12
12
|
throw new Error(`${context.projectName} does not have a sourceRoot.`);
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/executors/register/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAErD,+DAA2D;AAC3D,iEAA4D;AAC5D,qEAAwE;AAExE,SAA8B,WAAW,CACvC,UAAmC,EACnC,OAAwB;;QAExB,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/executors/register/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAErD,+DAA2D;AAC3D,iEAA4D;AAC5D,qEAAwE;AAExE,SAA8B,WAAW,CACvC,UAAmC,EACnC,OAAwB;;QAExB,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GACxB,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAE/D,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,CAAC,WAAW,8BAA8B,CAAC,CAAC;SACvE;QAED,IAAI,CAAC,IAAI,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,CAAC,WAAW,wBAAwB,CAAC,CAAC;SACjE;QAED,MAAM,OAAO,GAAG,IAAA,oCAAgB,EAAC,UAAU,EAAE,OAAO,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;QAE7E,yEAAyE;QACzE,MAAM,IAAI,GAAG;YACX,UAAU;YACV,GAAG,CAAC,OAAO,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAClD,OAAO,CAAC,OAAO;SAChB,CAAC;QAEF,eAAM,CAAC,GAAG,CAAC,kBAAkB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAE/C,MAAM,IAAA,qCAAoB,EAAC,IAAI,EAAE;YAC/B,GAAG,EAAE,OAAO,CAAC,UAAU;SACxB,CAAC,CAAC;QAEH,MAAM,IAAA,qCAAgB,EAAC,OAAO,CAAC,CAAC;QAEhC,eAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;QAEtC,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA;AArCD,8BAqCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/register/lib/normalize-options.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAG/B,SAAgB,gBAAgB,CAC9B,OAAgC,EAChC,IAAY,EACZ,UAAkB,EAClB,WAAmB;IAEnB,uCACK,OAAO,KACV,IAAI;QACJ,UAAU;QACV,WAAW,EACX,UAAU,EAAE,IAAA,cAAO,EAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAC7C;AACJ,CAAC;AAbD,4CAaC"}
|
|
1
|
+
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/executors/register/lib/normalize-options.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAG/B,SAAgB,gBAAgB,CAC9B,OAAgC,EAChC,IAAY,EACZ,UAAkB,EAClB,WAAmB;IAEnB,uCACK,OAAO,KACV,IAAI;QACJ,UAAU;QACV,WAAW,EACX,UAAU,EAAE,IAAA,cAAO,EAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAC7C;AACJ,CAAC;AAbD,4CAaC"}
|
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.patchManifestYml = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const fs_1 = require("fs");
|
|
6
|
-
const js_yaml_1 = require("js-yaml");
|
|
7
5
|
const devkit_1 = require("@nx/devkit");
|
|
8
|
-
const
|
|
6
|
+
const manifest_yml_1 = require("../../../utils/forge/manifest-yml");
|
|
9
7
|
/**
|
|
10
8
|
* Copies the Forge app id generated by `forge register` from the manifest.yml in the output path to
|
|
11
9
|
* the project manifest.yml in the project root directory.
|
|
@@ -15,16 +13,13 @@ const load_manifest_yml_1 = require("../../../utils/forge/load-manifest-yml");
|
|
|
15
13
|
function patchManifestYml(options) {
|
|
16
14
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
15
|
const outputManifestPath = (0, devkit_1.joinPathFragments)(options.outputPath, 'manifest.yml');
|
|
18
|
-
const outputManifestSchema = yield (0,
|
|
16
|
+
const outputManifestSchema = yield (0, manifest_yml_1.readManifestYml)(outputManifestPath);
|
|
19
17
|
const appId = outputManifestSchema.app.id;
|
|
20
18
|
const projectManifestPath = (0, devkit_1.joinPathFragments)(options.projectRoot, 'manifest.yml');
|
|
21
|
-
const projectManifestSchema = yield (0,
|
|
19
|
+
const projectManifestSchema = yield (0, manifest_yml_1.readManifestYml)(projectManifestPath);
|
|
22
20
|
devkit_1.logger.info(`Patching project manifest ${projectManifestPath} with app id ${appId}...`);
|
|
23
21
|
const patchedProjectManifest = Object.assign(Object.assign({}, projectManifestSchema), { app: Object.assign(Object.assign({}, projectManifestSchema.app), { id: appId }) });
|
|
24
|
-
|
|
25
|
-
(0, fs_1.writeFileSync)(projectManifestPath, patchedProjectManifestContent, {
|
|
26
|
-
encoding: 'utf8',
|
|
27
|
-
});
|
|
22
|
+
(0, manifest_yml_1.writeManifestYml)(projectManifestPath, patchedProjectManifest);
|
|
28
23
|
devkit_1.logger.info(`Done patching ${projectManifestPath}.`);
|
|
29
24
|
});
|
|
30
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-manifest-yml.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/register/lib/patch-manifest-yml.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"patch-manifest-yml.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/executors/register/lib/patch-manifest-yml.ts"],"names":[],"mappings":";;;;AAAA,uCAAuD;AAEvD,oEAG2C;AAE3C;;;;;GAKG;AACH,SAAsB,gBAAgB,CAAC,OAA0B;;QAC/D,MAAM,kBAAkB,GAAG,IAAA,0BAAiB,EAC1C,OAAO,CAAC,UAAU,EAClB,cAAc,CACf,CAAC;QACF,MAAM,oBAAoB,GAAG,MAAM,IAAA,8BAAe,EAAC,kBAAkB,CAAC,CAAC;QAEvE,MAAM,KAAK,GAAW,oBAAoB,CAAC,GAAG,CAAC,EAAE,CAAC;QAElD,MAAM,mBAAmB,GAAG,IAAA,0BAAiB,EAC3C,OAAO,CAAC,WAAW,EACnB,cAAc,CACf,CAAC;QACF,MAAM,qBAAqB,GAAG,MAAM,IAAA,8BAAe,EAAC,mBAAmB,CAAC,CAAC;QAEzE,eAAM,CAAC,IAAI,CACT,6BAA6B,mBAAmB,gBAAgB,KAAK,KAAK,CAC3E,CAAC;QACF,MAAM,sBAAsB,mCACvB,qBAAqB,KACxB,GAAG,kCACE,qBAAqB,CAAC,GAAG,KAC5B,EAAE,EAAE,KAAK,MAEZ,CAAC;QAEF,IAAA,+BAAgB,EAAC,mBAAmB,EAAE,sBAAsB,CAAC,CAAC;QAE9D,eAAM,CAAC,IAAI,CAAC,iBAAiB,mBAAmB,GAAG,CAAC,CAAC;IACvD,CAAC;CAAA;AA7BD,4CA6BC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"version": 2,
|
|
4
4
|
"title": "Forge application register target",
|
|
5
|
-
"description": "",
|
|
5
|
+
"description": "Register an app you didn't create so you can run commands for it",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"outputPath": {
|
|
@@ -24,8 +24,5 @@
|
|
|
24
24
|
"default": false
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
"required": [
|
|
28
|
-
"outputPath",
|
|
29
|
-
"appName"
|
|
30
|
-
]
|
|
27
|
+
"required": ["outputPath", "appName"]
|
|
31
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/executors/tunnel/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;AAClE,wEAA4E;AAE5E,iDAAyC;AACzC,iFAAuE;AAEvE;;;;;;;;;;GAUG;AACH,SAA8B,iBAAiB,CAC7C,OAA8B,EAC9B,OAAwB;;;QAExB,MAAM,sBAAsB,GAAG,MAAM,IAAA,gDAAmB,EAAC,OAAO,CAAC,CAAC;QAClE,IAAI,mBAAmB,GAAG,SAAS,CAAC;QAEpC,IAAI,sBAAsB,CAAC,MAAM,GAAG,CAAC,EAAE;YACrC,MAAM,CAAC,kBAAkB,EAAE,GAAG,kBAAkB,CAAC,GAA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AAG,EAAE,CAAC,CAAC;YACnD,MAAM,GAAG,CAAC;SACX;QAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;CAC1B;AA1DD,oCA0DC;AAED,SAAgB,iBAAiB,CAC/B,CAAa;;QAEb,4BAAM,sBAAM,CAAC,CAAA,CAAA,CAAC;IAChB,CAAC;CAAA"}
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/executors/tunnel/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;AAClE,wEAA4E;AAE5E,iDAAyC;AACzC,iFAAuE;AAEvE;;;;;;;;;;GAUG;AACH,SAA8B,iBAAiB,CAC7C,OAA8B,EAC9B,OAAwB;;;QAExB,MAAM,sBAAsB,GAAG,MAAM,IAAA,gDAAmB,EAAC,OAAO,CAAC,CAAC;QAClE,IAAI,mBAAmB,GAAG,SAAS,CAAC;QAEpC,IAAI,sBAAsB,CAAC,MAAM,GAAG,CAAC,EAAE;YACrC,MAAM,CAAC,kBAAkB,EAAE,GAAG,kBAAkB,CAAC,GAAG,sBAAsB,CAAC;YAE3E,iDAAiD;YACjD,mBAAmB,GAAG,MAAM,IAAA,oBAAW,EACrC,EAAE,OAAO,EAAE,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,EAC5D,EAAE,IAAI,EAAE,kBAAkB,CAAC,IAAI,EAAE,EACjC,OAAO,CACR,CAAC;YAEF,KAAK,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,EAAE,EAAE;gBAC5D,mBAAmB,GAAG,IAAA,sCAAqB,EACzC,mBAAmB,EACnB,MAAM,IAAA,oBAAW,EACf,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,EACzC,EAAE,IAAI,EAAE,EACR,OAAO,CACR,CACF,CAAC;aACH;SACF;QAED,MAAM,gBAAgB,GAAG,MA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