@toolsplus/nx-forge 1.5.0 → 2.0.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 +6 -9
- package/package.json +8 -9
- package/src/executors/build/executor.d.ts +1 -1
- package/src/executors/build/executor.js +14 -24
- package/src/executors/build/executor.js.map +1 -1
- package/src/executors/build/lib/compile-webpack.d.ts +3 -2
- package/src/executors/build/lib/compile-webpack.js +4 -3
- package/src/executors/build/lib/compile-webpack.js.map +1 -1
- package/src/executors/build/lib/copy-forge-app-assets.js +2 -2
- package/src/executors/build/lib/copy-forge-app-assets.js.map +1 -1
- package/src/executors/build/lib/generate-package-json.d.ts +1 -1
- package/src/executors/build/lib/generate-package-json.js +1 -1
- package/src/executors/build/lib/generate-package-json.js.map +1 -1
- package/src/executors/build/lib/patch-manifest-yml.js +1 -1
- package/src/executors/build/lib/patch-manifest-yml.js.map +1 -1
- package/src/executors/build/lib/process-custom-ui-dependencies.d.ts +1 -1
- package/src/executors/build/lib/process-custom-ui-dependencies.js +1 -1
- package/src/executors/build/lib/process-custom-ui-dependencies.js.map +1 -1
- package/src/executors/build/schema.json +3 -2
- package/src/executors/deploy/executor.js +1 -1
- package/src/executors/deploy/executor.js.map +1 -1
- package/src/executors/deploy/schema.json +8 -3
- package/src/executors/tunnel/executor.d.ts +1 -1
- package/src/executors/tunnel/executor.js +17 -10
- package/src/executors/tunnel/executor.js.map +1 -1
- package/src/executors/tunnel/lib/extract-custom-ui-projects.d.ts +1 -1
- package/src/executors/tunnel/lib/extract-custom-ui-projects.js +1 -1
- package/src/executors/tunnel/lib/extract-custom-ui-projects.js.map +1 -1
- package/src/executors/tunnel/lib/run-tunnel.d.ts +1 -1
- package/src/executors/tunnel/lib/run-tunnel.js +1 -1
- package/src/executors/tunnel/lib/run-tunnel.js.map +1 -1
- package/src/executors/tunnel/lib/wait-until-server-is-listening.d.ts +1 -1
- package/src/executors/tunnel/lib/wait-until-server-is-listening.js +1 -1
- package/src/executors/tunnel/lib/wait-until-server-is-listening.js.map +1 -1
- package/src/executors/tunnel/schema.json +3 -2
- package/src/generators/application/generator.d.ts +1 -1
- package/src/generators/application/generator.js +5 -5
- package/src/generators/application/generator.js.map +1 -1
- package/src/generators/application/lib/add-project.d.ts +1 -1
- package/src/generators/application/lib/add-project.js +1 -6
- package/src/generators/application/lib/add-project.js.map +1 -1
- package/src/generators/application/lib/create-files.d.ts +1 -1
- package/src/generators/application/lib/create-files.js +3 -3
- package/src/generators/application/lib/create-files.js.map +1 -1
- package/src/generators/application/lib/get-build-config.d.ts +1 -1
- package/src/generators/application/lib/get-build-config.js +1 -1
- package/src/generators/application/lib/get-build-config.js.map +1 -1
- package/src/generators/application/lib/get-deploy-config.d.ts +1 -1
- package/src/generators/application/lib/get-deploy-config.js +1 -1
- package/src/generators/application/lib/get-deploy-config.js.map +1 -1
- package/src/generators/application/lib/get-serve-config.d.ts +1 -1
- package/src/generators/application/lib/get-serve-config.js +1 -1
- package/src/generators/application/lib/get-serve-config.js.map +1 -1
- package/src/generators/application/lib/normalize-options.d.ts +1 -1
- package/src/generators/application/lib/normalize-options.js +2 -2
- package/src/generators/application/lib/normalize-options.js.map +1 -1
- package/src/generators/application/schema.json +11 -8
- package/src/generators/init/generator.d.ts +1 -1
- package/src/generators/init/generator.js +4 -5
- package/src/generators/init/generator.js.map +1 -1
- package/src/generators/init/lib/add-dependencies.d.ts +1 -1
- package/src/generators/init/lib/add-dependencies.js +1 -1
- package/src/generators/init/lib/add-dependencies.js.map +1 -1
- package/src/generators/init/schema.json +4 -2
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Nx Forge
|
|
2
2
|
|
|
3
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
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.
|
|
@@ -16,10 +16,9 @@ You will be asked if you would like to use Nx Cloud or not (either option is fin
|
|
|
16
16
|
Finally, make sure your workspace has the following packages (peer dependencies) installed
|
|
17
17
|
|
|
18
18
|
```shell
|
|
19
|
-
npm install --save-dev @
|
|
19
|
+
npm install --save-dev @nx/node
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
23
22
|
## Setting up
|
|
24
23
|
|
|
25
24
|
### Install the plugin
|
|
@@ -50,9 +49,9 @@ Replacing `<forge-app-name>` with the name of the app you're wanting to create.
|
|
|
50
49
|
|
|
51
50
|
### Add a Custom UI module
|
|
52
51
|
|
|
53
|
-
Forge apps require at least one module before they can be deployed. Let's start with a simple Custom UI module to get started. If you have not yet installed `@
|
|
52
|
+
Forge apps require at least one module before they can be deployed. Let's start with a simple Custom UI module to get started. If you have not yet installed `@nx/react` in your workspace call `npm i -D @nx/react`. This allows us to generate a React application for our Custom UI:
|
|
54
53
|
|
|
55
|
-
nx g @
|
|
54
|
+
nx g @nx/react:app <custom-ui-app-name>
|
|
56
55
|
|
|
57
56
|
> Hint: You can use the `--dry-run` flag to see what will be generated.
|
|
58
57
|
|
|
@@ -67,7 +66,7 @@ To get this React app working as a Forge Custom UI update the `apps/<custom-ui-a
|
|
|
67
66
|
"projectType": "application",
|
|
68
67
|
"targets": {
|
|
69
68
|
"build": {
|
|
70
|
-
"executor": "@
|
|
69
|
+
"executor": "@nx/webpack:webpack",
|
|
71
70
|
"outputs": ["{options.outputPath}"],
|
|
72
71
|
"defaultConfiguration": "production",
|
|
73
72
|
"options": {
|
|
@@ -121,9 +120,7 @@ Finally, update the `apps/<forge-app-name>/project.json` file in the generated F
|
|
|
121
120
|
"root": "apps/<forge-app-name>",
|
|
122
121
|
"sourceRoot": "apps/<forge-app-name>/src",
|
|
123
122
|
"projectType": "application",
|
|
124
|
-
"targets": {
|
|
125
|
-
|
|
126
|
-
},
|
|
123
|
+
"targets": {...},
|
|
127
124
|
"implicitDependencies": ["<custom-ui-app-name>"]
|
|
128
125
|
}
|
|
129
126
|
```
|
package/package.json
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolsplus/nx-forge",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.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
|
-
"@
|
|
10
|
-
"@
|
|
9
|
+
"@nx/node": "^16.0.0",
|
|
10
|
+
"@nx/workspace": "^16.0.0"
|
|
11
11
|
},
|
|
12
|
-
"types": "./src/index.d.ts",
|
|
13
12
|
"dependencies": {
|
|
14
|
-
"@
|
|
15
|
-
"
|
|
16
|
-
"js-yaml": "4.1.0"
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
"@forge/manifest": "^4.4.1",
|
|
14
|
+
"fs-extra": "^10.0.1",
|
|
15
|
+
"js-yaml": "^4.1.0"
|
|
16
|
+
},
|
|
17
|
+
"types": "./src/index.d.ts"
|
|
19
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExecutorContext } from '@
|
|
1
|
+
import type { ExecutorContext } from '@nx/devkit';
|
|
2
2
|
import { BuildExecutorOptions } from './schema';
|
|
3
3
|
export default function runExecutor(rawOptions: BuildExecutorOptions, context: ExecutorContext): Promise<{
|
|
4
4
|
success: boolean;
|
|
@@ -5,26 +5,10 @@ const normalize_options_1 = require("./lib/normalize-options");
|
|
|
5
5
|
const process_custom_ui_dependencies_1 = require("./lib/process-custom-ui-dependencies");
|
|
6
6
|
const patch_manifest_yml_1 = require("./lib/patch-manifest-yml");
|
|
7
7
|
const generate_package_json_1 = require("./lib/generate-package-json");
|
|
8
|
-
const project_graph_1 = require("@nrwl/workspace/src/core/project-graph");
|
|
9
8
|
const compile_webpack_1 = require("./lib/compile-webpack");
|
|
10
9
|
const copy_forge_app_assets_1 = require("./lib/copy-forge-app-assets");
|
|
11
|
-
const devkit_1 = require("@nrwl/devkit");
|
|
12
|
-
/**
|
|
13
|
-
* Try to read a cached project graph. If it does not exist
|
|
14
|
-
* trigger creation to ensure the project graph exists.
|
|
15
|
-
*/
|
|
16
|
-
function readOrCreateProjectGraph() {
|
|
17
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
18
|
-
try {
|
|
19
|
-
return (0, project_graph_1.readCachedProjectGraph)();
|
|
20
|
-
}
|
|
21
|
-
catch (e) {
|
|
22
|
-
return (0, devkit_1.createProjectGraphAsync)();
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
10
|
function runExecutor(rawOptions, context) {
|
|
27
|
-
var e_1,
|
|
11
|
+
var _a, e_1, _b, _c;
|
|
28
12
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
13
|
const { root, sourceRoot } = context.workspace.projects[context.projectName];
|
|
30
14
|
if (!sourceRoot) {
|
|
@@ -36,25 +20,31 @@ function runExecutor(rawOptions, context) {
|
|
|
36
20
|
const options = (0, normalize_options_1.normalizeOptions)(rawOptions, context.root, sourceRoot, root);
|
|
37
21
|
const compilation = (0, compile_webpack_1.compileWebpack)(options, context);
|
|
38
22
|
try {
|
|
39
|
-
for (var compilation_1 = tslib_1.__asyncValues(compilation), compilation_1_1; compilation_1_1 = yield compilation_1.next(),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
23
|
+
for (var _d = true, compilation_1 = tslib_1.__asyncValues(compilation), compilation_1_1; compilation_1_1 = yield compilation_1.next(), _a = compilation_1_1.done, !_a;) {
|
|
24
|
+
_c = compilation_1_1.value;
|
|
25
|
+
_d = false;
|
|
26
|
+
try {
|
|
27
|
+
const result = _c;
|
|
28
|
+
if (!result.success) {
|
|
29
|
+
throw new Error(`Failed to compile files for project ${context.projectName}.`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
finally {
|
|
33
|
+
_d = true;
|
|
43
34
|
}
|
|
44
35
|
}
|
|
45
36
|
}
|
|
46
37
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
47
38
|
finally {
|
|
48
39
|
try {
|
|
49
|
-
if (
|
|
40
|
+
if (!_d && !_a && (_b = compilation_1.return)) yield _b.call(compilation_1);
|
|
50
41
|
}
|
|
51
42
|
finally { if (e_1) throw e_1.error; }
|
|
52
43
|
}
|
|
53
44
|
(0, copy_forge_app_assets_1.copyForgeAppAssets)(options);
|
|
54
45
|
const customUIResources = yield (0, process_custom_ui_dependencies_1.processCustomUIDependencies)(options, context);
|
|
55
46
|
yield (0, patch_manifest_yml_1.patchManifestYml)(options);
|
|
56
|
-
|
|
57
|
-
(0, generate_package_json_1.generatePackageJson)(context.projectName, projectGraph, customUIResources, options);
|
|
47
|
+
(0, generate_package_json_1.generatePackageJson)(context.projectName, context.projectGraph, customUIResources, options);
|
|
58
48
|
console.log('Executor ran for build');
|
|
59
49
|
return {
|
|
60
50
|
success: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/executors/build/executor.ts"],"names":[],"mappings":";;;AAEA,+DAA2D;AAC3D,yFAAmF;AACnF,iEAA4D;AAC5D,uEAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/executors/build/executor.ts"],"names":[],"mappings":";;;AAEA,+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,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAE7E,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;QAC7E,MAAM,WAAW,GAAG,IAAA,gCAAc,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;;YAErD,KAA2B,eAAA,gBAAA,sBAAA,WAAW,CAAA,iBAAA;gBAAX,2BAAW;gBAAX,WAAW;;oBAA3B,MAAM,MAAM,KAAA,CAAA;oBACrB,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE;wBACnB,MAAM,IAAI,KAAK,CACb,uCAAuC,OAAO,CAAC,WAAW,GAAG,CAC9D,CAAC;qBACH;;;;;aACF;;;;;;;;;QAED,IAAA,0CAAkB,EAAC,OAAO,CAAC,CAAC;QAC5B,MAAM,iBAAiB,GAAG,MAAM,IAAA,4DAA2B,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC9E,MAAM,IAAA,qCAAgB,EAAC,OAAO,CAAC,CAAC;QAChC,IAAA,2CAAmB,EACjB,OAAO,CAAC,WAAW,EACnB,OAAO,CAAC,YAAY,EACpB,iBAAiB,EACjB,OAAO,CACR,CAAC;QAEF,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QACtC,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;;CACH;AAvCD,8BAuCC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { ExecutorContext } from '@
|
|
1
|
+
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
+
import { WebpackExecutorEvent } from '@nx/webpack';
|
|
2
3
|
import { NormalizedOptions } from '../schema';
|
|
3
|
-
export declare function compileWebpack(options: NormalizedOptions, context: ExecutorContext): AsyncGenerator<
|
|
4
|
+
export declare function compileWebpack(options: NormalizedOptions, context: ExecutorContext): AsyncGenerator<WebpackExecutorEvent>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.compileWebpack = void 0;
|
|
4
|
-
const devkit_1 = require("@
|
|
5
|
-
const
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const webpack_1 = require("@nx/webpack");
|
|
6
6
|
function compileWebpack(options, context) {
|
|
7
7
|
const builderOptions = {
|
|
8
|
+
target: 'node',
|
|
8
9
|
outputPath: (0, devkit_1.joinPathFragments)(options.outputPath, 'src'),
|
|
9
10
|
outputFileName: 'index.js',
|
|
10
11
|
tsConfig: `${options.projectRoot}/tsconfig.app.json`,
|
|
@@ -17,7 +18,7 @@ function compileWebpack(options, context) {
|
|
|
17
18
|
extractLicenses: false,
|
|
18
19
|
externalDependencies: 'all',
|
|
19
20
|
};
|
|
20
|
-
return (0,
|
|
21
|
+
return (0, webpack_1.webpackExecutor)(builderOptions, context);
|
|
21
22
|
}
|
|
22
23
|
exports.compileWebpack = compileWebpack;
|
|
23
24
|
//# 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,
|
|
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;AApBD,wCAoBC"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.copyForgeAppAssets = void 0;
|
|
4
4
|
const fs_1 = require("fs");
|
|
5
5
|
const path_1 = require("path");
|
|
6
|
-
const devkit_1 = require("@
|
|
7
|
-
const fileutils_1 = require("@
|
|
6
|
+
const devkit_1 = require("@nx/devkit");
|
|
7
|
+
const fileutils_1 = require("@nx/workspace/src/utilities/fileutils");
|
|
8
8
|
function copyForgeAppAssets(options) {
|
|
9
9
|
devkit_1.logger.info('Copying Forge app assets...');
|
|
10
10
|
if (!(0, fileutils_1.directoryExists)(options.outputPath)) {
|
|
@@ -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,
|
|
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,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.generatePackageJson = void 0;
|
|
4
|
-
const devkit_1 = require("@
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const object_sort_1 = require("nx/src/utils/object-sort");
|
|
6
6
|
/**
|
|
7
7
|
* Merges the existing package.json details with a generated package.json that includes
|
|
@@ -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,
|
|
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,EACj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D,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"}
|
|
@@ -4,7 +4,7 @@ exports.patchManifestYml = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fs_1 = require("fs");
|
|
6
6
|
const js_yaml_1 = require("js-yaml");
|
|
7
|
-
const devkit_1 = require("@
|
|
7
|
+
const devkit_1 = require("@nx/devkit");
|
|
8
8
|
const load_manifest_yml_1 = require("../../../utils/forge/load-manifest-yml");
|
|
9
9
|
/**
|
|
10
10
|
* Patches the output manifest.yml file to replace resource path parameters to point to the actual Custom UI build
|
|
@@ -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,2BAAmC;AACnC,qCAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"patch-manifest-yml.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/build/lib/patch-manifest-yml.ts"],"names":[],"mappings":";;;;AAAA,2BAAmC;AACnC,qCAA+B;AAC/B,uCAAuD;AAIvD,8EAAyE;AAEzE;;;;;;;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,mCAAe,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,MAAM,sBAAsB,GAAG,IAAA,cAAI,EAAC,eAAe,EAAE,EAAE,CAAC,CAAC;QACzD,IAAA,kBAAa,EAAC,YAAY,EAAE,sBAAsB,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;QAE1E,eAAM,CAAC,IAAI,CAAC,iBAAiB,YAAY,GAAG,CAAC,CAAC;IAChD,CAAC;CAAA;AAjBD,4CAiBC;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"}
|
|
@@ -4,7 +4,7 @@ exports.processCustomUIDependencies = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const fs_extra_1 = require("fs-extra");
|
|
6
6
|
const fs_1 = require("fs");
|
|
7
|
-
const devkit_1 = require("@
|
|
7
|
+
const devkit_1 = require("@nx/devkit");
|
|
8
8
|
const load_manifest_yml_1 = require("../../../utils/forge/load-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
|
|
@@ -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,
|
|
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;AAE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CAAqC,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"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"version": 2,
|
|
3
3
|
"outputCapture": "direct-nodejs",
|
|
4
4
|
"$schema": "http://json-schema.org/schema",
|
|
5
|
-
"cli": "nx",
|
|
6
5
|
"title": "Forge application build target",
|
|
7
6
|
"description": "Forge application build target options for Build Facade",
|
|
8
7
|
"type": "object",
|
|
@@ -21,5 +20,7 @@
|
|
|
21
20
|
"default": false
|
|
22
21
|
}
|
|
23
22
|
},
|
|
24
|
-
"required": [
|
|
23
|
+
"required": [
|
|
24
|
+
"outputPath"
|
|
25
|
+
]
|
|
25
26
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const child_process_1 = require("child_process");
|
|
5
|
-
const devkit_1 = require("@
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
function runExecutor(options) {
|
|
7
7
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
8
8
|
const args = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/executors/deploy/executor.ts"],"names":[],"mappings":";;;AAAA,iDAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/executors/deploy/executor.ts"],"names":[],"mappings":";;;AAAA,iDAAsC;AACtC,uCAAoC;AAGpC,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,MAAM,OAAO,GAAG,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1C,eAAM,CAAC,GAAG,CAAC,YAAY,OAAO,EAAE,CAAC,CAAC;QAElC,4FAA4F;QAC5F,MAAM,iBAAiB,GAAG,IAAA,qBAAK,EAAC,OAAO,EAAE,IAAI,EAAE;YAC7C,GAAG,EAAE,OAAO,CAAC,UAAU;YACvB,KAAK,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC;SACvD,CAAC,CAAC;QAEH,0GAA0G;QAC1G,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACpC,iBAAiB,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAY,EAAE,EAAE;gBAC9C,IAAI,IAAI,KAAK,CAAC,EAAE;oBACd,OAAO,CAAC,SAAS,CAAC,CAAC;iBACpB;qBAAM;oBACL,MAAM,CAAC,IAAI,KAAK,CAAC,wBAAwB,GAAG,IAAI,CAAC,CAAC,CAAC;iBACpD;YACH,CAAC,CAAC,CAAC;YACH,iBAAiB,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,GAAU,EAAE,EAAE;gBAC7C,MAAM,CAAC,GAAG,CAAC,CAAC;YACd,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,eAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;QACnC,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;IACJ,CAAC;CAAA;AApCD,8BAoCC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
"version": 2,
|
|
3
3
|
"outputCapture": "direct-nodejs",
|
|
4
4
|
"$schema": "http://json-schema.org/schema",
|
|
5
|
-
"cli": "nx",
|
|
6
5
|
"title": "Forge application deploy target",
|
|
7
6
|
"description": "Forge application deploy target",
|
|
8
7
|
"type": "object",
|
|
@@ -14,7 +13,11 @@
|
|
|
14
13
|
},
|
|
15
14
|
"environment": {
|
|
16
15
|
"type": "string",
|
|
17
|
-
"enum": [
|
|
16
|
+
"enum": [
|
|
17
|
+
"development",
|
|
18
|
+
"staging",
|
|
19
|
+
"production"
|
|
20
|
+
],
|
|
18
21
|
"description": "Environment to deploy to: development, staging, production.",
|
|
19
22
|
"alias": "e",
|
|
20
23
|
"default": "development"
|
|
@@ -36,5 +39,7 @@
|
|
|
36
39
|
"default": false
|
|
37
40
|
}
|
|
38
41
|
},
|
|
39
|
-
"required": [
|
|
42
|
+
"required": [
|
|
43
|
+
"outputPath"
|
|
44
|
+
]
|
|
40
45
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const devkit_1 = require("@
|
|
5
|
-
const async_iterable_1 = require("@
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const async_iterable_1 = require("@nx/devkit/src/utils/async-iterable");
|
|
6
6
|
const run_tunnel_1 = require("./lib/run-tunnel");
|
|
7
7
|
const extract_custom_ui_projects_1 = require("./lib/extract-custom-ui-projects");
|
|
8
8
|
/**
|
|
@@ -17,7 +17,7 @@ const extract_custom_ui_projects_1 = require("./lib/extract-custom-ui-projects")
|
|
|
17
17
|
* @see https://github.com/nrwl/nx/blob/cded83b2c5bf3e4252c03d4dbcbb5b203b0faed0/packages/webpack/src/executors/ssr-dev-server/ssr-dev-server.impl.ts
|
|
18
18
|
*/
|
|
19
19
|
function runTunnelExecutor(options, context) {
|
|
20
|
-
var e_1,
|
|
20
|
+
var _a, e_1, _b, _c;
|
|
21
21
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
22
|
const customUiProjectConfigs = yield (0, extract_custom_ui_projects_1.getCustomUiProjects)(context);
|
|
23
23
|
let runAllCustomUiServe = undefined;
|
|
@@ -26,7 +26,7 @@ function runTunnelExecutor(options, context) {
|
|
|
26
26
|
// execute the serve target on custom UI projects
|
|
27
27
|
runAllCustomUiServe = yield (0, devkit_1.runExecutor)({ project: customUiHeadConfig.projectName, target: 'serve' }, { port: customUiHeadConfig.port }, context);
|
|
28
28
|
for (const { projectName, port } of customUiRestConfig !== null && customUiRestConfig !== void 0 ? customUiRestConfig : []) {
|
|
29
|
-
runAllCustomUiServe = (0, async_iterable_1.
|
|
29
|
+
runAllCustomUiServe = (0, async_iterable_1.combineAsyncIterables)(runAllCustomUiServe, yield (0, devkit_1.runExecutor)({ project: projectName, target: 'serve' }, { port }, context));
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
const runForgeAppBuild = yield (0, devkit_1.runExecutor)({ project: context.projectName, target: 'build' }, { watch: true }, context);
|
|
@@ -34,19 +34,26 @@ function runTunnelExecutor(options, context) {
|
|
|
34
34
|
const runForgeTunnel = promiseToIterator((0, run_tunnel_1.default)(Object.assign(Object.assign({}, options), { customUiProjectConfigs }), context));
|
|
35
35
|
// once all executors are loaded, watch out for any failures
|
|
36
36
|
// we combine (interleave) all executor iterators here
|
|
37
|
-
const combined = (0, async_iterable_1.
|
|
37
|
+
const combined = (0, async_iterable_1.combineAsyncIterables)(runAllCustomUiServe, runForgeAppBuild, runForgeTunnel);
|
|
38
38
|
try {
|
|
39
39
|
try {
|
|
40
|
-
for (var combined_1 = tslib_1.__asyncValues(combined), combined_1_1; combined_1_1 = yield combined_1.next(),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
for (var _d = true, combined_1 = tslib_1.__asyncValues(combined), combined_1_1; combined_1_1 = yield combined_1.next(), _a = combined_1_1.done, !_a;) {
|
|
41
|
+
_c = combined_1_1.value;
|
|
42
|
+
_d = false;
|
|
43
|
+
try {
|
|
44
|
+
const output = _c;
|
|
45
|
+
if (!output.success)
|
|
46
|
+
return output;
|
|
47
|
+
}
|
|
48
|
+
finally {
|
|
49
|
+
_d = true;
|
|
50
|
+
}
|
|
44
51
|
}
|
|
45
52
|
}
|
|
46
53
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
47
54
|
finally {
|
|
48
55
|
try {
|
|
49
|
-
if (
|
|
56
|
+
if (!_d && !_a && (_b = combined_1.return)) yield _b.call(combined_1);
|
|
50
57
|
}
|
|
51
58
|
finally { if (e_1) throw e_1.error; }
|
|
52
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/executors/tunnel/executor.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/executors/tunnel/executor.ts"],"names":[],"mappings":";;;AAAA,u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AA,sCAAqB,EACpC,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CACf,CAAC;QAEF,IAAI;;gBACF,KAA2B,eAAA,aAAA,sBAAA,QAAQ,CAAA,cAAA;oBAAR,wBAAQ;oBAAR,WAAQ;;wBAAxB,MAAM,MAAM,KAAA,CAAA;wBACrB,IAAI,CAAC,MAAM,CAAC,OAAO;4BAAE,OAAO,MAAM,CAAC;;;;;iBACpC;;;;;;;;;SACF;QAAC,OAAO,GAAG,EAAE;YACZ,eAAM,CAAC,KAAK,CAAC,+BAA+B,GAAG,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"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCustomUiProjects = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
const load_manifest_yml_1 = require("../../../utils/forge/load-manifest-yml");
|
|
7
7
|
/**
|
|
8
8
|
* Extracts all configured Custom UI resources and their tunnel port for this Forge app.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-custom-ui-projects.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/tunnel/lib/extract-custom-ui-projects.ts"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"extract-custom-ui-projects.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/tunnel/lib/extract-custom-ui-projects.ts"],"names":[],"mappings":";;;;AAAA,uCAAgE;AAGhE,8EAAyE;AAIzE;;;;;GAKG;AACH,SAAsB,mBAAmB,CACvC,OAA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AC,oBAAoB,0CAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAA,EACrD;QACA,MAAM,IAAI,KAAK,CACb,WAAW,mBAAmB,0GAA0G,OAAO,CAAC,WAAW,UAAU,mBAAmB,sIAAsI,CAC/T,CAAC;KACH;IAED,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QAC/D,MAAM,IAAI,KAAK,CACb,+BAA+B,QAAQ,CAAC,GAAG,iIAAiI,QAAQ,CAAC,GAAG,0GAA0G,CACnS,CAAC;KACH;IAED,OAAO,QAAkC,CAAC;AAC5C,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const devkit_1 = require("@
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const child_process_1 = require("child_process");
|
|
7
7
|
const wait_until_server_is_listening_1 = require("./wait-until-server-is-listening");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-tunnel.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/tunnel/lib/run-tunnel.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"run-tunnel.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/tunnel/lib/run-tunnel.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AACrD,+BAA4B;AAC5B,iDAAsC;AAEtC,qFAA8E;AAE9E;;;;;;;;;;GAUG;AACH,SAA8B,SAAS,CACrC,OAKC,EACD,OAAwB;;QAExB,eAAM,CAAC,IAAI,CACT,qFAAqF,CACtF,CAAC;QAEF,MAAM,OAAO,CAAC,GAAG,CACf,OAAO,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,E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AG,IAAI,CAAC,CACtE,CAAC;iBACH;YACH,CAAC,CAAC,CAAC;YACH,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,GAAU,EAAE,EAAE;gBACzC,MAAM,CAAC,IAAI,KAAK,CAAC,+BAA+B,GAAG,GAAG,CAAC,CAAC,CAAC;YAC3D,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAhED,4BAgEC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.waitUntilServerIsListening = void 0;
|
|
4
4
|
const net = require("net");
|
|
5
|
-
const devkit_1 = require("@
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
8
|
* @param port Port on which the server is listening
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wait-until-server-is-listening.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/tunnel/lib/wait-until-server-is-listening.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AAC3B,
|
|
1
|
+
{"version":3,"file":"wait-until-server-is-listening.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/executors/tunnel/lib/wait-until-server-is-listening.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AAC3B,uCAAqD;AAErD;;;;;GAKG;AACH,SAAgB,0BAA0B,CACxC,IAAY,EACZ,OAAwB;IAExB,MAAM,iBAAiB,GAAG,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IACzD,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,MAAM,EAAE,CAAC;IAChC,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,MAAM,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC;QACrC,MAAM,CAAC,kBAAkB,CAAC,OAAO,CAA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"http://json-schema.org/schema",
|
|
5
|
-
"cli": "nx",
|
|
6
5
|
"title": "Forge application serve target",
|
|
7
6
|
"description": "Forge application serve target",
|
|
8
7
|
"type": "object",
|
|
@@ -25,5 +24,7 @@
|
|
|
25
24
|
"default": false
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
|
-
"required": [
|
|
27
|
+
"required": [
|
|
28
|
+
"outputPath"
|
|
29
|
+
]
|
|
29
30
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GeneratorCallback, Tree } from '@
|
|
1
|
+
import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
2
|
import { ApplicationGeneratorOptions } from './schema';
|
|
3
3
|
export default function (tree: Tree, rawOptions: ApplicationGeneratorOptions): Promise<GeneratorCallback>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const devkit_1 = require("@
|
|
5
|
-
const run_tasks_in_serial_1 = require("@
|
|
6
|
-
const linter_1 = require("@
|
|
7
|
-
const jest_1 = require("@
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const run_tasks_in_serial_1 = require("@nx/workspace/src/utilities/run-tasks-in-serial");
|
|
6
|
+
const linter_1 = require("@nx/linter");
|
|
7
|
+
const jest_1 = require("@nx/jest");
|
|
8
8
|
const generator_1 = require("../init/generator");
|
|
9
9
|
const lib_1 = require("./lib");
|
|
10
10
|
function default_1(tree, rawOptions) {
|
|
@@ -39,7 +39,7 @@ function default_1(tree, rawOptions) {
|
|
|
39
39
|
setupFile: 'none',
|
|
40
40
|
skipSerializers: true,
|
|
41
41
|
supportTsx: options.js,
|
|
42
|
-
|
|
42
|
+
compiler: 'tsc',
|
|
43
43
|
testEnvironment: 'node',
|
|
44
44
|
skipFormat: true,
|
|
45
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/generators/application/generator.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/generators/application/generator.ts"],"names":[],"mappings":";;;AAAA,uCAMoB;AACpB,yFAAmF;AACnF,uCAA0D;AAC1D,mCAAgD;AAChD,iDAA8C;AAE9C,+BAAkE;AAElE,mBACE,IAAU,EACV,UAAuC;;QAEvC,MAAM,OAAO,GAAG,IAAA,sBAAgB,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAEnD,MAAM,KAAK,GAAwB,EAAE,CAAC;QACtC,MAAM,QAAQ,GAAG,MAAM,IAAA,mBAAa,EAAC,IAAI,EAAE;YACzC,cAAc,EAAE,OAAO,CAAC,cAAc;YACtC,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAErB,IAAA,iBAAW,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC3B,IAAA,gBAAU,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE1B,IAAI,OAAO,CAAC,MAAM,KAAK,eAAM,CAAC,IAAI,EAAE;YAClC,MAAM,QAAQ,GAAG,MAAM,IAAA,6BAAoB,EAAC,IAAI,EAAE;gBAChD,MAAM,EAAE,OAAO,CAAC,MAAM;gBACtB,OAAO,EAAE,OAAO,CAAC,IAAI;gBACrB,aAAa,EAAE;oBACb,IAAA,0BAAiB,EAAC,OAAO,CAAC,cAAc,EAAE,mBAAmB,CAAC;iBAC/D;gBACD,kBAAkB,EAAE;oBAClB,GAAG,OAAO,CAAC,cAAc,SAAS,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE;iBAC7D;gBACD,UAAU,EAAE,IAAI;gBAChB,uBAAuB,EAAE,OAAO,CAAC,uBAAuB;aACzD,CAAC,CAAC;YACH,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACtB;QAED,IAAI,OAAO,CAAC,cAAc,KAAK,MAAM,EAAE;YACrC,MAAM,QAAQ,GAAG,MAAM,IAAA,2BAAoB,EAAC,IAAI,EAAE;gBAChD,OAAO,EAAE,OAAO,CAAC,IAAI;gBACrB,SAAS,EAAE,MAAM;gBACjB,eAAe,EAAE,IAAI;gBACrB,UAAU,EAAE,OAAO,CAAC,EAAE;gBACtB,QAAQ,EAAE,KAAK;gBACf,eAAe,EAAE,MAAM;gBACvB,UAAU,EAAE,IAAI;aACjB,CAAC,CAAC;YACH,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACtB;QAED,IAAI,OAAO,CAAC,EAAE,EAAE;YACd,IAAA,4BAAmB,EAAC,IAAI,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;SACpE;QAED,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,IAAA,sCAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACpC,CAAC;CAAA;AAtDD,4BAsDC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addProject = void 0;
|
|
4
|
-
const devkit_1 = require("@
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const get_build_config_1 = require("./get-build-config");
|
|
6
6
|
const get_deploy_config_1 = require("./get-deploy-config");
|
|
7
7
|
const get_serve_config_1 = require("./get-serve-config");
|
|
@@ -21,11 +21,6 @@ function addProject(tree, options) {
|
|
|
21
21
|
project.targets.serve = (0, get_serve_config_1.getServeConfig)(project, options);
|
|
22
22
|
project.targets.deploy = (0, get_deploy_config_1.getDeployConfig)(project, options);
|
|
23
23
|
(0, devkit_1.addProjectConfiguration)(tree, options.name, project, options.standaloneConfig);
|
|
24
|
-
const workspace = (0, devkit_1.readWorkspaceConfiguration)(tree);
|
|
25
|
-
if (!workspace.defaultProject) {
|
|
26
|
-
workspace.defaultProject = options.name;
|
|
27
|
-
(0, devkit_1.updateWorkspaceConfiguration)(tree, workspace);
|
|
28
|
-
}
|
|
29
24
|
}
|
|
30
25
|
exports.addProject = addProject;
|
|
31
26
|
//# sourceMappingURL=add-project.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-project.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/add-project.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"add-project.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/add-project.ts"],"names":[],"mappings":";;;AAAA,uCAKoB;AAEpB,yDAAoD;AACpD,2DAAsD;AACtD,yDAAoD;AAEpD;;;GAGG;AACH,SAAgB,UAAU,CAAC,IAAU,EAAE,OAA0B;IAC/D,MAAM,OAAO,GAAyB;QACpC,IAAI,EAAE,OAAO,CAAC,cAAc;QAC5B,UAAU,EAAE,IAAA,0BAAiB,EAAC,OAAO,CAAC,cAAc,EAAE,KAAK,CAAC;QAC5D,WAAW,EAAE,aAAa;QAC1B,OAAO,EAAE,EAAE;QACX,IAAI,EAAE,OAAO,CAAC,UAAU;KACzB,CAAC;IAEF,OAAO,CAAC,OAAO,CAAC,KAAK,GAAG,IAAA,iCAAc,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACzD,OAAO,CAAC,OAAO,CAAC,KAAK,GAAG,IAAA,iCAAc,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACzD,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,IAAA,mCAAe,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAE3D,IAAA,gCAAuB,EACrB,IAAI,EACJ,OAAO,CAAC,IAAI,EACZ,OAAO,EACP,OAAO,CAAC,gBAAgB,CACzB,CAAC;AACJ,CAAC;AAnBD,gCAmBC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createFiles = void 0;
|
|
4
|
-
const devkit_1 = require("@
|
|
5
|
-
const
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const js_1 = require("@nx/js");
|
|
6
6
|
function createFiles(tree, options) {
|
|
7
7
|
(0, devkit_1.generateFiles)(tree, (0, devkit_1.joinPathFragments)(__dirname, '..', 'files'), options.appProjectRoot, {
|
|
8
8
|
tmpl: '',
|
|
9
9
|
name: options.name,
|
|
10
10
|
root: options.appProjectRoot,
|
|
11
11
|
offset: (0, devkit_1.offsetFromRoot)(options.appProjectRoot),
|
|
12
|
-
rootTsConfigPath: (0,
|
|
12
|
+
rootTsConfigPath: (0, js_1.getRelativePathToRootTsConfig)(tree, options.appProjectRoot),
|
|
13
13
|
});
|
|
14
14
|
if (options.js) {
|
|
15
15
|
(0, devkit_1.toJS)(tree);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-files.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/create-files.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"create-files.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/create-files.ts"],"names":[],"mappings":";;;AACA,uCAKoB;AACpB,+BAAuD;AAGvD,SAAgB,WAAW,CAAC,IAAU,EAAE,OAA0B;IAChE,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,0BAAiB,EAAC,SAAS,EAAE,IAAI,EAAE,OAAO,CAAC,EAC3C,OAAO,CAAC,cAAc,EACtB;QACE,IAAI,EAAE,EAAE;QACR,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,IAAI,EAAE,OAAO,CAAC,cAAc;QAC5B,MAAM,EAAE,IAAA,uBAAc,EAAC,OAAO,CAAC,cAAc,CAAC;QAC9C,gBAAgB,EAAE,IAAA,kCAA6B,EAC7C,IAAI,EACJ,OAAO,CAAC,cAAc,CACvB;KACF,CACF,CAAC;IAEF,IAAI,OAAO,CAAC,EAAE,EAAE;QACd,IAAA,aAAI,EAAC,IAAI,CAAC,CAAC;KACZ;AACH,CAAC;AApBD,kCAoBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NormalizedOptions } from '../schema';
|
|
2
|
-
import { ProjectConfiguration, TargetConfiguration } from '@
|
|
2
|
+
import { ProjectConfiguration, TargetConfiguration } from '@nx/devkit';
|
|
3
3
|
export declare function getBuildConfig(project: ProjectConfiguration, options: NormalizedOptions): TargetConfiguration;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getBuildConfig = void 0;
|
|
4
|
-
const devkit_1 = require("@
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
function getBuildConfig(project, options) {
|
|
6
6
|
return {
|
|
7
7
|
executor: '@toolsplus/nx-forge:build',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-build-config.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/get-build-config.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"get-build-config.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/get-build-config.ts"],"names":[],"mappings":";;;AACA,uCAIoB;AAEpB,SAAgB,cAAc,CAC5B,OAA6B,EAC7B,OAA0B;IAE1B,OAAO;QACL,QAAQ,EAAE,2BAA2B;QACrC,OAAO,EAAE,CAAC,sBAAsB,CAAC;QACjC,OAAO,EAAE;YACP,UAAU,EAAE,IAAA,0BAAiB,EAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC;SAC9D;KACF,CAAC;AACJ,CAAC;AAXD,wCAWC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NormalizedOptions } from '../schema';
|
|
2
|
-
import { ProjectConfiguration, TargetConfiguration } from '@
|
|
2
|
+
import { ProjectConfiguration, TargetConfiguration } from '@nx/devkit';
|
|
3
3
|
export declare function getDeployConfig(project: ProjectConfiguration, options: NormalizedOptions): TargetConfiguration;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDeployConfig = void 0;
|
|
4
|
-
const devkit_1 = require("@
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
function getDeployConfig(project, options) {
|
|
6
6
|
return {
|
|
7
7
|
executor: '@toolsplus/nx-forge:deploy',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-deploy-config.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/get-deploy-config.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"get-deploy-config.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/get-deploy-config.ts"],"names":[],"mappings":";;;AACA,uCAIoB;AAEpB,SAAgB,eAAe,CAC7B,OAA6B,EAC7B,OAA0B;IAE1B,OAAO;QACL,QAAQ,EAAE,4BAA4B;QACtC,OAAO,EAAE;YACP,UAAU,EAAE,IAAA,0BAAiB,EAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC;SAC9D;KACF,CAAC;AACJ,CAAC;AAVD,0CAUC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NormalizedOptions } from '../schema';
|
|
2
|
-
import { ProjectConfiguration, TargetConfiguration } from '@
|
|
2
|
+
import { ProjectConfiguration, TargetConfiguration } from '@nx/devkit';
|
|
3
3
|
export declare function getServeConfig(project: ProjectConfiguration, options: NormalizedOptions): TargetConfiguration;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getServeConfig = void 0;
|
|
4
|
-
const devkit_1 = require("@
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
function getServeConfig(project, options) {
|
|
6
6
|
return {
|
|
7
7
|
executor: '@toolsplus/nx-forge:tunnel',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-serve-config.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/get-serve-config.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"get-serve-config.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/get-serve-config.ts"],"names":[],"mappings":";;;AACA,uCAIoB;AAEpB,SAAgB,cAAc,CAC5B,OAA6B,EAC7B,OAA0B;IAE1B,OAAO;QACL,QAAQ,EAAE,4BAA4B;QACtC,OAAO,EAAE;YACP,UAAU,EAAE,IAAA,0BAAiB,EAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC;SAC9D;KACF,CAAC;AACJ,CAAC;AAVD,wCAUC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Tree } from '@
|
|
1
|
+
import type { Tree } from '@nx/devkit';
|
|
2
2
|
import type { ApplicationGeneratorOptions, NormalizedOptions } from '../schema';
|
|
3
3
|
export declare function normalizeOptions(tree: Tree, options: ApplicationGeneratorOptions): NormalizedOptions;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.normalizeOptions = void 0;
|
|
4
|
-
const linter_1 = require("@
|
|
5
|
-
const devkit_1 = require("@
|
|
4
|
+
const linter_1 = require("@nx/linter");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
6
|
function normalizeOptions(tree, options) {
|
|
7
7
|
var _a, _b;
|
|
8
8
|
const appDirectory = options.directory
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,uCAA0E;AAG1E,SAAgB,gBAAgB,CAC9B,IAAU,EACV,OAAoC;;IAEpC,MAAM,YAAY,GAAG,OAAO,CAAC,SAAS;QACpC,CAAC,CAAC,GAAG,IAAA,cAAK,EAAC,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,IAAI,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;QACxE,CAAC,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC;IAEjC,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAExD,MAAM,cAAc,GAAG,IAAA,0BAAiB,EACtC,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC,OAAO,EAChC,YAAY,CACb,CAAC;IAEF,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI;QAC7B,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QAC9C,CAAC,CAAC,EAAE,CAAC;IAEP,uCACK,OAAO,KACV,IAAI,EAAE,IAAA,cAAK,EAAC,cAAc,CAAC,CAAC,QAAQ,EACpC,cAAc,EACd,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,eAAM,CAAC,MAAM,EACvC,cAAc,EAAE,MAAA,OAAO,CAAC,cAAc,mCAAI,MAAM,EAChD,UAAU,IACV;AACJ,CAAC;AA3BD,4CA2BC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"cli": "nx",
|
|
4
3
|
"$id": "NxForgeApplicationGenerator",
|
|
5
4
|
"title": "Nx Application Options Schema",
|
|
6
5
|
"type": "object",
|
|
@@ -27,13 +26,19 @@
|
|
|
27
26
|
"linter": {
|
|
28
27
|
"description": "Tool to use for running lint checks.",
|
|
29
28
|
"type": "string",
|
|
30
|
-
"enum": [
|
|
29
|
+
"enum": [
|
|
30
|
+
"eslint",
|
|
31
|
+
"none"
|
|
32
|
+
],
|
|
31
33
|
"default": "eslint"
|
|
32
34
|
},
|
|
33
35
|
"unitTestRunner": {
|
|
34
36
|
"description": "Test runner to use for unit tests.",
|
|
35
37
|
"type": "string",
|
|
36
|
-
"enum": [
|
|
38
|
+
"enum": [
|
|
39
|
+
"jest",
|
|
40
|
+
"none"
|
|
41
|
+
],
|
|
37
42
|
"default": "jest"
|
|
38
43
|
},
|
|
39
44
|
"tags": {
|
|
@@ -55,12 +60,10 @@
|
|
|
55
60
|
"type": "boolean",
|
|
56
61
|
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
57
62
|
"default": false
|
|
58
|
-
},
|
|
59
|
-
"standaloneConfig": {
|
|
60
|
-
"description": "Split the project configuration into <projectRoot>/project.json rather than including it inside workspace.json",
|
|
61
|
-
"type": "boolean"
|
|
62
63
|
}
|
|
63
64
|
},
|
|
64
65
|
"additionalProperties": false,
|
|
65
|
-
"required": [
|
|
66
|
+
"required": [
|
|
67
|
+
"name"
|
|
68
|
+
]
|
|
66
69
|
}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const devkit_1 = require("@
|
|
5
|
-
const run_tasks_in_serial_1 = require("@nrwl/workspace/src/utilities/run-tasks-in-serial");
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
5
|
const lib_1 = require("./lib");
|
|
7
|
-
const jest_1 = require("@
|
|
6
|
+
const jest_1 = require("@nx/jest");
|
|
8
7
|
function default_1(tree, rawOptions) {
|
|
9
8
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10
9
|
const options = (0, lib_1.normalizeOptions)(rawOptions);
|
|
11
|
-
const jestTask = (0, jest_1.jestInitGenerator)(tree, {});
|
|
10
|
+
const jestTask = yield (0, jest_1.jestInitGenerator)(tree, {});
|
|
12
11
|
const installPackagesTask = (0, lib_1.addDependencies)(tree);
|
|
13
12
|
if (!options.skipFormat) {
|
|
14
13
|
yield (0, devkit_1.formatFiles)(tree);
|
|
15
14
|
}
|
|
16
|
-
return (0,
|
|
15
|
+
return (0, devkit_1.runTasksInSerial)(jestTask, installPackagesTask);
|
|
17
16
|
});
|
|
18
17
|
}
|
|
19
18
|
exports.default = default_1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/generators/init/generator.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/forge/src/generators/init/generator.ts"],"names":[],"mappings":";;;AAAA,uCAKoB;AAEpB,+BAA0D;AAC1D,mCAA6C;AAE7C,mBACE,IAAU,EACV,UAA+B;;QAE/B,MAAM,OAAO,GAAG,IAAA,sBAAgB,EAAC,UAAU,CAAC,CAAC;QAC7C,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAiB,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACnD,MAAM,mBAAmB,GAAG,IAAA,qBAAe,EAAC,IAAI,CAAC,CAAC;QAElD,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,IAAA,yBAAgB,EAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;IACzD,CAAC;CAAA;AAbD,4BAaC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GeneratorCallback, Tree } from '@
|
|
1
|
+
import type { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
2
|
export declare function addDependencies(tree: Tree): GeneratorCallback;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addDependencies = void 0;
|
|
4
|
-
const devkit_1 = require("@
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const versions_1 = require("../../../utils/versions");
|
|
6
6
|
function addDependencies(tree) {
|
|
7
7
|
return (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-dependencies.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/init/lib/add-dependencies.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"add-dependencies.js","sourceRoot":"","sources":["../../../../../../../packages/forge/src/generators/init/lib/add-dependencies.ts"],"names":[],"mappings":";;;AACA,uCAA0D;AAC1D,sDAIiC;AAEjC,SAAgB,eAAe,CAAC,IAAU;IACxC,OAAO,IAAA,qCAA4B,EACjC,IAAI,EACJ;QACE,YAAY,EAAE,0BAAe;QAC7B,iBAAiB,EAAE,+BAAoB;KACxC,EACD;QACE,qBAAqB,EAAE,wBAAa;KACrC,CACF,CAAC;AACJ,CAAC;AAXD,0CAWC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"cli": "nx",
|
|
4
3
|
"$id": "NxForgeInitGenerator",
|
|
5
4
|
"title": "Init Forge Plugin",
|
|
6
5
|
"type": "object",
|
|
@@ -8,7 +7,10 @@
|
|
|
8
7
|
"unitTestRunner": {
|
|
9
8
|
"description": "Adds the specified unit test runner.",
|
|
10
9
|
"type": "string",
|
|
11
|
-
"enum": [
|
|
10
|
+
"enum": [
|
|
11
|
+
"jest",
|
|
12
|
+
"none"
|
|
13
|
+
],
|
|
12
14
|
"default": "jest"
|
|
13
15
|
},
|
|
14
16
|
"skipFormat": {
|