@toolsplus/nx-forge 3.0.0 → 3.2.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/package.json +1 -2
- package/src/executors/build/lib/copy-forge-app-assets.js +13 -2
- package/src/executors/build/lib/copy-forge-app-assets.js.map +1 -1
- package/src/executors/build/lib/process-custom-ui-dependencies.d.ts +2 -6
- package/src/executors/build/lib/process-custom-ui-dependencies.js +2 -6
- package/src/executors/build/lib/process-custom-ui-dependencies.js.map +1 -1
- package/src/executors/tunnel/executor.js +1 -1
- package/src/executors/tunnel/executor.js.map +1 -1
- package/src/executors/tunnel/lib/wait-until-server-is-listening.js +2 -1
- package/src/executors/tunnel/lib/wait-until-server-is-listening.js.map +1 -1
- package/src/generators/application/files/tsconfig.app.json +2 -5
- package/src/generators/application/files/webpack.config.js +3 -1
- package/src/generators/application/generator.d.ts +1 -1
- package/src/generators/application/generator.js +30 -15
- package/src/generators/application/generator.js.map +1 -1
- package/src/generators/application/lib/{create-files.d.ts → add-app-files.d.ts} +1 -1
- package/src/generators/application/lib/{create-files.js → add-app-files.js} +4 -4
- package/src/generators/application/lib/add-app-files.js.map +1 -0
- package/src/generators/application/lib/add-project.js +14 -10
- package/src/generators/application/lib/add-project.js.map +1 -1
- package/src/generators/application/lib/index.d.ts +2 -2
- package/src/generators/application/lib/index.js +2 -2
- package/src/generators/application/lib/index.js.map +1 -1
- package/src/generators/application/lib/normalize-options.d.ts +1 -1
- package/src/generators/application/lib/normalize-options.js +20 -13
- package/src/generators/application/lib/normalize-options.js.map +1 -1
- package/src/generators/application/schema.d.ts +9 -4
- package/src/generators/application/schema.json +19 -1
- package/src/generators/init/generator.d.ts +1 -1
- package/src/generators/init/generator.js +12 -8
- package/src/generators/init/generator.js.map +1 -1
- package/src/generators/init/schema.d.ts +0 -1
- package/src/generators/init/schema.json +0 -6
- package/src/graph/create-dependencies.d.ts +2 -0
- package/src/graph/create-dependencies.js +60 -0
- package/src/graph/create-dependencies.js.map +1 -0
- package/src/graph/create-nodes.d.ts +2 -0
- package/src/graph/create-nodes.js +40 -0
- package/src/graph/create-nodes.js.map +1 -0
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/migrations/update-2-3-0/utils/manifest.js +1 -1
- package/src/migrations/update-2-3-0/utils/manifest.js.map +1 -1
- package/src/shared/targets/get-build-config.d.ts +7 -0
- package/src/shared/targets/get-build-config.js +15 -0
- package/src/shared/targets/get-build-config.js.map +1 -0
- package/src/shared/targets/get-deploy-config.d.ts +6 -0
- package/src/{generators/application/lib → shared/targets}/get-deploy-config.js +2 -3
- package/src/shared/targets/get-deploy-config.js.map +1 -0
- package/src/shared/targets/get-install-config.d.ts +6 -0
- package/src/{generators/application/lib → shared/targets}/get-install-config.js +2 -3
- package/src/shared/targets/get-install-config.js.map +1 -0
- package/src/shared/targets/get-register-config.d.ts +6 -0
- package/src/{generators/application/lib → shared/targets}/get-register-config.js +2 -3
- package/src/shared/targets/get-register-config.js.map +1 -0
- package/src/shared/targets/get-serve-config.d.ts +6 -0
- package/src/{generators/application/lib → shared/targets}/get-serve-config.js +2 -3
- package/src/shared/targets/get-serve-config.js.map +1 -0
- package/src/utils/forge/manifest-yml.js +1 -1
- package/src/utils/forge/manifest-yml.js.map +1 -1
- package/src/utils/versions.d.ts +1 -1
- package/src/utils/versions.js +3 -1
- package/src/utils/versions.js.map +1 -1
- package/src/generators/application/lib/create-files.js.map +0 -1
- package/src/generators/application/lib/get-build-config.d.ts +0 -3
- package/src/generators/application/lib/get-build-config.js +0 -16
- package/src/generators/application/lib/get-build-config.js.map +0 -1
- package/src/generators/application/lib/get-deploy-config.d.ts +0 -3
- package/src/generators/application/lib/get-deploy-config.js.map +0 -1
- package/src/generators/application/lib/get-install-config.d.ts +0 -3
- package/src/generators/application/lib/get-install-config.js.map +0 -1
- package/src/generators/application/lib/get-register-config.d.ts +0 -3
- package/src/generators/application/lib/get-register-config.js.map +0 -1
- package/src/generators/application/lib/get-serve-config.d.ts +0 -3
- package/src/generators/application/lib/get-serve-config.js.map +0 -1
- package/src/generators/init/lib/add-dependencies.d.ts +0 -2
- package/src/generators/init/lib/add-dependencies.js +0 -15
- package/src/generators/init/lib/add-dependencies.js.map +0 -1
- package/src/generators/init/lib/index.d.ts +0 -2
- package/src/generators/init/lib/index.js +0 -6
- package/src/generators/init/lib/index.js.map +0 -1
- package/src/generators/init/lib/normalize-options.d.ts +0 -2
- package/src/generators/init/lib/normalize-options.js +0 -9
- package/src/generators/init/lib/normalize-options.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolsplus/nx-forge",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Atlassian Forge plugin for Nx",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "./src/index.d.ts",
|
|
7
7
|
"generators": "./generators.json",
|
|
8
8
|
"executors": "./executors.json",
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@nx/workspace": "^17.0.0",
|
|
11
10
|
"nx": "^17.0.0"
|
|
12
11
|
},
|
|
13
12
|
"dependencies": {
|
|
@@ -4,11 +4,22 @@ exports.copyForgeAppAssets = void 0;
|
|
|
4
4
|
const fs_1 = require("fs");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const devkit_1 = require("@nx/devkit");
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Check if a directory exists
|
|
9
|
+
* @param path Path to directory
|
|
10
|
+
*/
|
|
11
|
+
function directoryExists(path) {
|
|
12
|
+
try {
|
|
13
|
+
return (0, fs_1.statSync)(path).isDirectory();
|
|
14
|
+
}
|
|
15
|
+
catch (_a) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
8
19
|
function copyForgeAppAssets(options) {
|
|
9
20
|
devkit_1.logger.info('Copying Forge app assets...');
|
|
10
21
|
const absoluteOutputPath = (0, path_1.resolve)(options.root, options.outputPath);
|
|
11
|
-
if (!
|
|
22
|
+
if (!directoryExists(absoluteOutputPath)) {
|
|
12
23
|
(0, fs_1.mkdirSync)(absoluteOutputPath, { recursive: true });
|
|
13
24
|
}
|
|
14
25
|
// Copies the Forge app manifest file from the project root directory into the
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,2BAAiE;AACjE,+BAAqC;AACrC,uCAAoC;AAGpC;;;GAGG;AACH,SAAS,eAAe,CAAC,IAAc;IACrC,IAAI;QACF,OAAO,IAAA,aAAQ,EAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;KACrC;IAAC,WAAM;QACN,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AAED,SAAgB,kBAAkB,CAAC,OAA0B;IAC3D,eAAM,CAAC,IAAI,CAAC,6BAA6B,CAAC,CAAC;IAE3C,MAAM,kBAAkB,GAAG,IAAA,cAAO,EAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IAErE,IAAI,CAAC,eAAe,CAAC,kBAAkB,CAAC,EAAE;QACxC,IAAA,cAAS,EAAC,kBAAkB,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,kBAAkB,EAAE,cAAc,CAAC,CACzC,CAAC;IAEF,eAAM,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;AAChD,CAAC;AAjBD,gDAiBC"}
|
|
@@ -3,12 +3,8 @@ import { Resources } from '@forge/manifest';
|
|
|
3
3
|
import { NormalizedOptions } from '../schema';
|
|
4
4
|
/**
|
|
5
5
|
* Verifies that Custom UI projects are correctly linked to the Nx Forge app and copies build artifacts into the app's
|
|
6
|
-
* output directory.
|
|
7
|
-
*
|
|
8
|
-
* In particular this will make sure that each resource listed in the manifest.yml has its path configured to point to
|
|
9
|
-
* a Nx project in this workspace. Additionally, this will ensure that each specified Custom UI project is listed as an
|
|
10
|
-
* implicit dependency of the project. This requirement ensures that Custom UI dependencies are being built before the
|
|
11
|
-
* Forge app is being built.
|
|
6
|
+
* output directory. In particular, this will make sure that each resource listed in the manifest.yml has its path
|
|
7
|
+
* configured to point to a Nx project in this workspace.
|
|
12
8
|
*
|
|
13
9
|
* @param options Executor options
|
|
14
10
|
* @param context Executor context
|
|
@@ -8,12 +8,8 @@ const devkit_1 = require("@nx/devkit");
|
|
|
8
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
|
-
* output directory.
|
|
12
|
-
*
|
|
13
|
-
* In particular this will make sure that each resource listed in the manifest.yml has its path configured to point to
|
|
14
|
-
* a Nx project in this workspace. Additionally, this will ensure that each specified Custom UI project is listed as an
|
|
15
|
-
* implicit dependency of the project. This requirement ensures that Custom UI dependencies are being built before the
|
|
16
|
-
* Forge app is being built.
|
|
11
|
+
* output directory. In particular, this will make sure that each resource listed in the manifest.yml has its path
|
|
12
|
+
* configured to point to a Nx project in this workspace.
|
|
17
13
|
*
|
|
18
14
|
* @param options Executor options
|
|
19
15
|
* @param context Executor context
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;;;;;;GAOG;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,IAAI,EACZ,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"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const async_iterable_1 = require("@nx/devkit/src/utils/async-iterable");
|
|
6
|
-
const run_tunnel_1 = require("./lib/run-tunnel");
|
|
6
|
+
const run_tunnel_1 = tslib_1.__importDefault(require("./lib/run-tunnel"));
|
|
7
7
|
const extract_custom_ui_projects_1 = require("./lib/extract-custom-ui-projects");
|
|
8
8
|
/**
|
|
9
9
|
* Forge tunnel executor that serves all Custom UI projects in the manifest.yml
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/executors/tunnel/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;AAClE,wEAA4E;AAE5E,
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/executors/tunnel/executor.ts"],"names":[],"mappings":";;;AAAA,uCAAkE;AAClE,wEAA4E;AAE5E,0EAAyC;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,MAAM,IAAA,oBAAW,EACxC,EAAE,OAAO,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,EACjD,EAAE,KAAK,EAAE,IAAI,EAAE,EACf,OAAO,CACR,CAAC;QAEF,mDAAmD;QACnD,MAAM,cAAc,GAAG,iBAAiB,CACtC,IAAA,oBAAS,kCAAM,OAAO,KAAE,sBAAsB,KAAI,OAAO,CAAC,CAC3D,CAAC;QAEF,4DAA4D;QAC5D,sDAAsD;QACtD,MAAM,QAAQ,GAAG,IAAA,sCAAqB,EACpC,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,CACf,CAAC;QAEF,IAAI;;gBACF,KAA2B,eAAA,aAAA,sBAAA,QAAQ,CAAA,cAAA,kFAAE;oBAAV,wBAAQ;oBAAR,WAAQ;oBAAxB,MAAM,MAAM,KAAA,CAAA;oBACrB,IAAI,CAAC,MAAM,CAAC,OAAO;wBAAE,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"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.waitUntilServerIsListening = void 0;
|
|
4
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const net = tslib_1.__importStar(require("net"));
|
|
5
6
|
const devkit_1 = require("@nx/devkit");
|
|
6
7
|
/**
|
|
7
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wait-until-server-is-listening.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/executors/tunnel/lib/wait-until-server-is-listening.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wait-until-server-is-listening.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/executors/tunnel/lib/wait-until-server-is-listening.ts"],"names":[],"mappings":";;;;AAAA,iDAA2B;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,CAAC,CAAC;QACnC,MAAM,CAAC,GAAG,EAAE,CAAC;QACb,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,MAAM,CAAC,KAAK,EAAE,CAAC;IACjB,CAAC,CAAC;IAEF,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC3C,MAAM,MAAM,GAAG,GAAG,EAAE;YAClB,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE;gBAC1B,OAAO,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;YACZ,CAAC,CAAC,CAAC;YACH,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;gBACzB,IACE,QAAQ,GAAG,WAAW;oBACtB,CAAC,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EACxC;oBACA,IAAI,OAAO,CAAC,SAAS,EAAE;wBACrB,eAAM,CAAC,KAAK,CACV,8CAA8C,IAAI,KAChD,QAAQ,GAAG,WAAW;4BACpB,CAAC,CAAC,iBAAiB,WAAW,YAAY;4BAC1C,CAAC,CAAC,yCAAyC,GAAG,CAAC,MAAM,CAAC,EAC1D,EAAE,CACH,CAAC;qBACH;oBACD,OAAO,EAAE,CAAC;oBACV,MAAM,CAAC,GAAG,CAAC,CAAC;iBACb;qBAAM;oBACL,QAAQ,EAAE,CAAC;oBACX,UAAU,CAAC,MAAM,EAAE,IAAI,GAAG,QAAQ,CAAC,CAAC;iBACrC;YACH,CAAC,CAAC,CAAC;YACH,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;QAC9C,CAAC,CAAC;QACF,MAAM,EAAE,CAAC;IACX,CAAC,CAAC,CAAC;AACL,CAAC;AA/CD,gEA+CC"}
|
|
@@ -3,15 +3,12 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"outDir": "<%= offset %>dist/out-tsc",
|
|
5
5
|
"module": "commonjs",
|
|
6
|
-
"target": "es2017",
|
|
7
6
|
"sourceMap": true,
|
|
8
7
|
"moduleResolution": "node",
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"lib": ["dom", "es2017"],
|
|
11
8
|
"types": ["node"],
|
|
12
9
|
"jsx": "react",
|
|
13
10
|
"jsxFactory": "ForgeUI.createElement"
|
|
14
11
|
},
|
|
15
|
-
"exclude": ["
|
|
16
|
-
"include": ["
|
|
12
|
+
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
|
|
13
|
+
"include": ["src/**/*.ts"]
|
|
17
14
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const { composePlugins, withNx } = require('@nx/webpack');
|
|
2
2
|
|
|
3
|
-
module.exports = composePlugins(withNx(), (config) => {
|
|
3
|
+
module.exports = composePlugins(withNx({ target: 'node' }), (config) => {
|
|
4
|
+
// Update the webpack config as needed here.
|
|
5
|
+
// e.g. `config.plugins.push(new MyPlugin())`
|
|
4
6
|
return config;
|
|
5
7
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
2
|
import { ApplicationGeneratorOptions } from './schema';
|
|
3
|
-
export default function (tree: Tree,
|
|
3
|
+
export default function (tree: Tree, schema: ApplicationGeneratorOptions): Promise<GeneratorCallback>;
|
|
@@ -4,19 +4,43 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const eslint_1 = require("@nx/eslint");
|
|
6
6
|
const jest_1 = require("@nx/jest");
|
|
7
|
-
const
|
|
7
|
+
const js_1 = require("@nx/js");
|
|
8
|
+
const generator_1 = tslib_1.__importDefault(require("../init/generator"));
|
|
8
9
|
const lib_1 = require("./lib");
|
|
9
|
-
function
|
|
10
|
+
function updateTsConfigOptions(tree, options) {
|
|
11
|
+
(0, devkit_1.updateJson)(tree, `${options.appProjectRoot}/tsconfig.json`, (json) => {
|
|
12
|
+
if (options.rootProject) {
|
|
13
|
+
return Object.assign(Object.assign({ compilerOptions: Object.assign(Object.assign(Object.assign({}, js_1.tsConfigBaseOptions), json.compilerOptions), { esModuleInterop: true }) }, json), { extends: undefined, exclude: ['node_modules', 'tmp'] });
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return Object.assign(Object.assign({}, json), { compilerOptions: Object.assign(Object.assign({}, json.compilerOptions), { esModuleInterop: true }) });
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function default_1(tree, schema) {
|
|
21
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return yield applicationGeneratorInternal(tree, Object.assign({ projectNameAndRootFormat: 'derived' }, schema));
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
exports.default = default_1;
|
|
26
|
+
function applicationGeneratorInternal(tree, rawOptions) {
|
|
10
27
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
-
const options = (0, lib_1.normalizeOptions)(tree, rawOptions);
|
|
28
|
+
const options = yield (0, lib_1.normalizeOptions)(tree, rawOptions);
|
|
12
29
|
const tasks = [];
|
|
30
|
+
const jsInitTask = yield (0, js_1.initGenerator)(tree, Object.assign(Object.assign({}, rawOptions), { tsConfigName: rawOptions.rootProject
|
|
31
|
+
? 'tsconfig.json'
|
|
32
|
+
: 'tsconfig.base.json', skipFormat: true }));
|
|
33
|
+
tasks.push(jsInitTask);
|
|
13
34
|
const initTask = yield (0, generator_1.default)(tree, {
|
|
14
|
-
unitTestRunner: options.unitTestRunner,
|
|
15
35
|
skipFormat: true,
|
|
16
36
|
});
|
|
17
37
|
tasks.push(initTask);
|
|
18
|
-
(0, lib_1.
|
|
38
|
+
(0, lib_1.addAppFiles)(tree, options);
|
|
19
39
|
(0, lib_1.addProject)(tree, options);
|
|
40
|
+
updateTsConfigOptions(tree, options);
|
|
41
|
+
if (options.unitTestRunner === 'jest') {
|
|
42
|
+
tasks.push(yield (0, jest_1.jestInitGenerator)(tree, Object.assign(Object.assign({}, rawOptions), { testEnvironment: 'node' })));
|
|
43
|
+
}
|
|
20
44
|
if (options.linter === eslint_1.Linter.EsLint) {
|
|
21
45
|
const lintTask = yield (0, eslint_1.lintProjectGenerator)(tree, {
|
|
22
46
|
linter: options.linter,
|
|
@@ -31,15 +55,7 @@ function default_1(tree, rawOptions) {
|
|
|
31
55
|
tasks.push(lintTask);
|
|
32
56
|
}
|
|
33
57
|
if (options.unitTestRunner === 'jest') {
|
|
34
|
-
const jestTask = yield (0, jest_1.
|
|
35
|
-
project: options.name,
|
|
36
|
-
setupFile: 'none',
|
|
37
|
-
skipSerializers: true,
|
|
38
|
-
supportTsx: options.js,
|
|
39
|
-
compiler: 'tsc',
|
|
40
|
-
testEnvironment: 'node',
|
|
41
|
-
skipFormat: true,
|
|
42
|
-
});
|
|
58
|
+
const jestTask = yield (0, jest_1.configurationGenerator)(tree, Object.assign(Object.assign({}, options), { project: options.name, setupFile: 'none', skipSerializers: true, supportTsx: options.js, testEnvironment: 'node', compiler: options.swcJest ? 'swc' : 'tsc', skipFormat: true }));
|
|
43
59
|
tasks.push(jestTask);
|
|
44
60
|
}
|
|
45
61
|
if (options.js) {
|
|
@@ -51,5 +67,4 @@ function default_1(tree, rawOptions) {
|
|
|
51
67
|
return (0, devkit_1.runTasksInSerial)(...tasks);
|
|
52
68
|
});
|
|
53
69
|
}
|
|
54
|
-
exports.default = default_1;
|
|
55
70
|
//# sourceMappingURL=generator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/generators/application/generator.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/generators/application/generator.ts"],"names":[],"mappings":";;;AAAA,uCAQoB;AACpB,uCAA0D;AAC1D,mCAAqE;AACrE,+BAA+E;AAC/E,0EAA8C;AAE9C,+BAAkE;AAElE,SAAS,qBAAqB,CAAC,IAAU,EAAE,OAA0B;IACnE,IAAA,mBAAU,EAAC,IAAI,EAAE,GAAG,OAAO,CAAC,cAAc,gBAAgB,EAAE,CAAC,IAAI,EAAE,EAAE;QACnE,IAAI,OAAO,CAAC,WAAW,EAAE;YACvB,qCACE,eAAe,gDACV,wBAAmB,GACnB,IAAI,CAAC,eAAe,KACvB,eAAe,EAAE,IAAI,OAEpB,IAAI,KACP,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,CAAC,cAAc,EAAE,KAAK,CAAC,IAChC;SACH;aAAM;YACL,uCACK,IAAI,KACP,eAAe,kCACV,IAAI,CAAC,eAAe,KACvB,eAAe,EAAE,IAAI,OAEvB;SACH;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAED,mBACE,IAAU,EACV,MAAmC;;QAEnC,OAAO,MAAM,4BAA4B,CAAC,IAAI,kBAC5C,wBAAwB,EAAE,SAAS,IAChC,MAAM,EACT,CAAC;IACL,CAAC;CAAA;AARD,4BAQC;AAED,SAAe,4BAA4B,CACzC,IAAU,EACV,UAAuC;;QAEvC,MAAM,OAAO,GAAG,MAAM,IAAA,sBAAgB,EAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAEzD,MAAM,KAAK,GAAwB,EAAE,CAAC;QAEtC,MAAM,UAAU,GAAG,MAAM,IAAA,kBAAe,EAAC,IAAI,kCACxC,UAAU,KACb,YAAY,EAAE,UAAU,CAAC,WAAW;gBAClC,CAAC,CAAC,eAAe;gBACjB,CAAC,CAAC,oBAAoB,EACxB,UAAU,EAAE,IAAI,IAChB,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEvB,MAAM,QAAQ,GAAG,MAAM,IAAA,mBAAa,EAAC,IAAI,EAAE;YACzC,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,qBAAqB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAErC,IAAI,OAAO,CAAC,cAAc,KAAK,MAAM,EAAE;YACrC,KAAK,CAAC,IAAI,CACR,MAAM,IAAA,wBAAiB,EAAC,IAAI,kCAAO,UAAU,KAAE,eAAe,EAAE,MAAM,IAAG,CAC1E,CAAC;SACH;QAED,IAAI,OAAO,CAAC,MAAM,KAAK,eAAM,CAAC,MAAM,EAAE;YACpC,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,cAAc,EAAE,OAAO,CAAC,cAAc;gBACtC,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,6BAAsB,EAAC,IAAI,kCAC7C,OAAO,KACV,OAAO,EAAE,OAAO,CAAC,IAAI,EACrB,SAAS,EAAE,MAAM,EACjB,eAAe,EAAE,IAAI,EACrB,UAAU,EAAE,OAAO,CAAC,EAAE,EACtB,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,EACzC,UAAU,EAAE,IAAI,IAChB,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,yBAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACpC,CAAC;CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.addAppFiles = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
5
|
const js_1 = require("@nx/js");
|
|
6
|
-
function
|
|
6
|
+
function addAppFiles(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,
|
|
@@ -15,5 +15,5 @@ function createFiles(tree, options) {
|
|
|
15
15
|
(0, devkit_1.toJS)(tree);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
19
|
-
//# sourceMappingURL=
|
|
18
|
+
exports.addAppFiles = addAppFiles;
|
|
19
|
+
//# sourceMappingURL=add-app-files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-app-files.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/generators/application/lib/add-app-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"}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.addProject = void 0;
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const get_register_config_1 = require("
|
|
6
|
-
const get_build_config_1 = require("
|
|
7
|
-
const get_deploy_config_1 = require("
|
|
8
|
-
const get_serve_config_1 = require("
|
|
9
|
-
const get_install_config_1 = require("
|
|
5
|
+
const get_register_config_1 = require("../../../shared/targets/get-register-config");
|
|
6
|
+
const get_build_config_1 = require("../../../shared/targets/get-build-config");
|
|
7
|
+
const get_deploy_config_1 = require("../../../shared/targets/get-deploy-config");
|
|
8
|
+
const get_serve_config_1 = require("../../../shared/targets/get-serve-config");
|
|
9
|
+
const get_install_config_1 = require("../../../shared/targets/get-install-config");
|
|
10
10
|
/**
|
|
11
11
|
* Generate the new Forge app project in the workspace and configure
|
|
12
12
|
* available targets.
|
|
@@ -19,12 +19,16 @@ function addProject(tree, options) {
|
|
|
19
19
|
targets: {},
|
|
20
20
|
tags: options.parsedTags,
|
|
21
21
|
};
|
|
22
|
+
const outputPath = (0, devkit_1.joinPathFragments)('dist', options.appProjectRoot);
|
|
22
23
|
project.targets = {};
|
|
23
|
-
project.targets.register = (0, get_register_config_1.getRegisterConfig)(
|
|
24
|
-
project.targets.build = (0, get_build_config_1.getBuildConfig)(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
project.targets.register = (0, get_register_config_1.getRegisterConfig)({ outputPath });
|
|
25
|
+
project.targets.build = (0, get_build_config_1.getBuildConfig)({
|
|
26
|
+
outputPath,
|
|
27
|
+
webpackConfig: (0, devkit_1.joinPathFragments)(project.root, 'webpack.config.js'),
|
|
28
|
+
});
|
|
29
|
+
project.targets.serve = (0, get_serve_config_1.getServeConfig)({ outputPath });
|
|
30
|
+
project.targets.deploy = (0, get_deploy_config_1.getDeployConfig)({ outputPath });
|
|
31
|
+
project.targets.install = (0, get_install_config_1.getInstallConfig)({ outputPath });
|
|
28
32
|
(0, devkit_1.addProjectConfiguration)(tree, options.name, project, options.standaloneConfig);
|
|
29
33
|
}
|
|
30
34
|
exports.addProject = addProject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-project.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/generators/application/lib/add-project.ts"],"names":[],"mappings":";;;AAAA,uCAKoB;AAEpB,+
|
|
1
|
+
{"version":3,"file":"add-project.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/generators/application/lib/add-project.ts"],"names":[],"mappings":";;;AAAA,uCAKoB;AAEpB,qFAAgF;AAChF,+EAA0E;AAC1E,iFAA4E;AAC5E,+EAA0E;AAC1E,mFAA8E;AAE9E;;;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,MAAM,UAAU,GAAG,IAAA,0BAAiB,EAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAErE,OAAO,CAAC,OAAO,GAAG,EAAE,CAAC;IACrB,OAAO,CAAC,OAAO,CAAC,QAAQ,GAAG,IAAA,uCAAiB,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IAC7D,OAAO,CAAC,OAAO,CAAC,KAAK,GAAG,IAAA,iCAAc,EAAC;QACrC,UAAU;QACV,aAAa,EAAE,IAAA,0BAAiB,EAAC,OAAO,CAAC,IAAI,EAAE,mBAAmB,CAAC;KACpE,CAAC,CAAC;IACH,OAAO,CAAC,OAAO,CAAC,KAAK,GAAG,IAAA,iCAAc,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IACvD,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,IAAA,mCAAe,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IACzD,OAAO,CAAC,OAAO,CAAC,OAAO,GAAG,IAAA,qCAAgB,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IAE3D,IAAA,gCAAuB,EACrB,IAAI,EACJ,OAAO,CAAC,IAAI,EACZ,OAAO,EACP,OAAO,CAAC,gBAAgB,CACzB,CAAC;AACJ,CAAC;AA3BD,gCA2BC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./create-files"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./normalize-options"), exports);
|
|
6
4
|
tslib_1.__exportStar(require("./add-project"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./add-app-files"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./normalize-options"), exports);
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/generators/application/lib/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/generators/application/lib/index.ts"],"names":[],"mappings":";;;AAAA,wDAA8B;AAC9B,0DAAgC;AAChC,8DAAoC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Tree } from '@nx/devkit';
|
|
2
2
|
import type { ApplicationGeneratorOptions, NormalizedOptions } from '../schema';
|
|
3
|
-
export declare function normalizeOptions(tree: Tree, options: ApplicationGeneratorOptions): NormalizedOptions
|
|
3
|
+
export declare function normalizeOptions(tree: Tree, options: ApplicationGeneratorOptions): Promise<NormalizedOptions>;
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.normalizeOptions = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
4
5
|
const eslint_1 = require("@nx/eslint");
|
|
5
|
-
const
|
|
6
|
+
const project_name_and_root_utils_1 = require("@nx/devkit/src/generators/project-name-and-root-utils");
|
|
6
7
|
function normalizeOptions(tree, options) {
|
|
7
|
-
var _a, _b;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
var _a, _b, _c;
|
|
9
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
10
|
+
const { projectName: appProjectName, projectRoot: appProjectRoot, projectNameAndRootFormat, } = yield (0, project_name_and_root_utils_1.determineProjectNameAndRootOptions)(tree, {
|
|
11
|
+
name: options.name,
|
|
12
|
+
projectType: 'application',
|
|
13
|
+
directory: options.directory,
|
|
14
|
+
projectNameAndRootFormat: options.projectNameAndRootFormat,
|
|
15
|
+
rootProject: options.rootProject,
|
|
16
|
+
callingGenerator: '@toolsplus/nx-forge:application',
|
|
17
|
+
});
|
|
18
|
+
options.rootProject = appProjectRoot === '.';
|
|
19
|
+
options.projectNameAndRootFormat = projectNameAndRootFormat;
|
|
20
|
+
const parsedTags = options.tags
|
|
21
|
+
? options.tags.split(',').map((s) => s.trim())
|
|
22
|
+
: [];
|
|
23
|
+
return Object.assign(Object.assign({}, options), { name: appProjectName, appProjectRoot,
|
|
24
|
+
parsedTags, linter: (_a = options.linter) !== null && _a !== void 0 ? _a : eslint_1.Linter.EsLint, unitTestRunner: (_b = options.unitTestRunner) !== null && _b !== void 0 ? _b : 'jest', rootProject: (_c = options.rootProject) !== null && _c !== void 0 ? _c : false });
|
|
25
|
+
});
|
|
19
26
|
}
|
|
20
27
|
exports.normalizeOptions = normalizeOptions;
|
|
21
28
|
//# sourceMappingURL=normalize-options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/generators/application/lib/normalize-options.ts"],"names":[],"mappings":";;;;AAAA,uCAAoC;AAGpC,uGAA2G;AAE3G,SAAsB,gBAAgB,CACpC,IAAU,EACV,OAAoC;;;QAEpC,MAAM,EACJ,WAAW,EAAE,cAAc,EAC3B,WAAW,EAAE,cAAc,EAC3B,wBAAwB,GACzB,GAAG,MAAM,IAAA,gEAAkC,EAAC,IAAI,EAAE;YACjD,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,WAAW,EAAE,aAAa;YAC1B,SAAS,EAAE,OAAO,CAAC,SAAS;YAC5B,wBAAwB,EAAE,OAAO,CAAC,wBAAwB;YAC1D,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,gBAAgB,EAAE,iCAAiC;SACpD,CAAC,CAAC;QACH,OAAO,CAAC,WAAW,GAAG,cAAc,KAAK,GAAG,CAAC;QAC7C,OAAO,CAAC,wBAAwB,GAAG,wBAAwB,CAAC;QAE5D,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI;YAC7B,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAC9C,CAAC,CAAC,EAAE,CAAC;QAEP,uCACK,OAAO,KACV,IAAI,EAAE,cAAc,EACpB,cAAc;YACd,UAAU,EACV,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,eAAM,CAAC,MAAM,EACvC,cAAc,EAAE,MAAA,OAAO,CAAC,cAAc,mCAAI,MAAM,EAChD,WAAW,EAAE,MAAA,OAAO,CAAC,WAAW,mCAAI,KAAK,IACzC;;CACH;AAhCD,4CAgCC"}
|
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import type { Linter } from '@nx/eslint';
|
|
2
|
+
import { ProjectNameAndRootFormat } from '@nx/devkit/src/generators/project-name-and-root-utils';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
interface ApplicationGeneratorOptions {
|
|
4
5
|
name: string;
|
|
5
6
|
directory?: string;
|
|
7
|
+
projectNameAndRootFormat?: ProjectNameAndRootFormat;
|
|
6
8
|
skipFormat?: boolean;
|
|
7
|
-
linter?:
|
|
9
|
+
linter?: Linter;
|
|
8
10
|
standaloneConfig?: boolean;
|
|
9
11
|
tags?: string;
|
|
10
|
-
unitTestRunner?:
|
|
12
|
+
unitTestRunner?: 'jest' | 'none';
|
|
13
|
+
swcJest?: boolean;
|
|
14
|
+
/** @deprecated use `swcJest` instead */
|
|
11
15
|
babelJest?: boolean;
|
|
12
16
|
js?: boolean;
|
|
13
17
|
setParserOptionsProject?: boolean;
|
|
18
|
+
rootProject?: boolean;
|
|
14
19
|
}
|
|
15
20
|
|
|
16
21
|
interface NormalizedOptions extends ApplicationGeneratorOptions {
|
|
17
22
|
appProjectRoot: string;
|
|
18
23
|
linter: Linter;
|
|
19
|
-
unitTestRunner:
|
|
24
|
+
unitTestRunner: 'jest' | 'none';
|
|
20
25
|
parsedTags: string[];
|
|
21
26
|
}
|
|
@@ -18,6 +18,11 @@
|
|
|
18
18
|
"description": "Directory where the project is placed",
|
|
19
19
|
"alias": "d"
|
|
20
20
|
},
|
|
21
|
+
"projectNameAndRootFormat": {
|
|
22
|
+
"description": "Whether to generate the project name and root directory as provided (`as-provided`) or generate them composing their values and taking the configured layout into account (`derived`).",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": ["as-provided", "derived"]
|
|
25
|
+
},
|
|
21
26
|
"skipFormat": {
|
|
22
27
|
"description": "Skip formatting files.",
|
|
23
28
|
"type": "boolean",
|
|
@@ -40,6 +45,11 @@
|
|
|
40
45
|
"description": "Add tags to the project (used for linting)",
|
|
41
46
|
"alias": "t"
|
|
42
47
|
},
|
|
48
|
+
"swcJest": {
|
|
49
|
+
"type": "boolean",
|
|
50
|
+
"description": "Use `@swc/jest` instead `ts-jest` for faster test compilation.",
|
|
51
|
+
"default": false
|
|
52
|
+
},
|
|
43
53
|
"babelJest": {
|
|
44
54
|
"type": "boolean",
|
|
45
55
|
"description": "Use `babel` instead of `ts-jest`.",
|
|
@@ -48,12 +58,20 @@
|
|
|
48
58
|
"js": {
|
|
49
59
|
"type": "boolean",
|
|
50
60
|
"description": "Generate JavaScript files rather than TypeScript files.",
|
|
51
|
-
"default": false
|
|
61
|
+
"default": false,
|
|
62
|
+
"x-deprecated": "Use --swcJest instead for faster compilation"
|
|
52
63
|
},
|
|
53
64
|
"setParserOptionsProject": {
|
|
54
65
|
"type": "boolean",
|
|
55
66
|
"description": "Whether or not to configure the ESLint `parserOptions.project` option. We do not do this by default for lint performance reasons.",
|
|
56
67
|
"default": false
|
|
68
|
+
},
|
|
69
|
+
"rootProject": {
|
|
70
|
+
"description": "Create node application at the root of the workspace",
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"default": false,
|
|
73
|
+
"hidden": true,
|
|
74
|
+
"x-priority": "internal"
|
|
57
75
|
}
|
|
58
76
|
},
|
|
59
77
|
"additionalProperties": false,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GeneratorCallback, Tree } from '@nx/devkit';
|
|
2
2
|
import { InitGeneratorSchema } from './schema';
|
|
3
|
-
export default function (tree: Tree,
|
|
3
|
+
export default function (tree: Tree, options: InitGeneratorSchema): Promise<GeneratorCallback>;
|
|
@@ -2,8 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const
|
|
6
|
-
|
|
5
|
+
const versions_1 = require("../../utils/versions");
|
|
6
|
+
function addDependencies(tree) {
|
|
7
|
+
return (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
8
|
+
'@forge/api': versions_1.forgeApiVersion,
|
|
9
|
+
'@forge/resolver': versions_1.forgeResolverVersion,
|
|
10
|
+
}, {
|
|
11
|
+
'@toolsplus/nx-forge': versions_1.pluginVersion,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
7
14
|
function updateNxJson(host) {
|
|
8
15
|
const nxJson = (0, devkit_1.readJson)(host, 'nx.json');
|
|
9
16
|
nxJson.plugins = nxJson.plugins || [];
|
|
@@ -12,15 +19,12 @@ function updateNxJson(host) {
|
|
|
12
19
|
}
|
|
13
20
|
(0, devkit_1.writeJson)(host, 'nx.json', nxJson);
|
|
14
21
|
}
|
|
15
|
-
function default_1(tree,
|
|
22
|
+
function default_1(tree, options) {
|
|
16
23
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
const options = (0, lib_1.normalizeOptions)(rawOptions);
|
|
18
24
|
updateNxJson(tree);
|
|
19
25
|
const tasks = [];
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
tasks.push((0, lib_1.addDependencies)(tree));
|
|
26
|
+
tasks.push((0, devkit_1.removeDependenciesFromPackageJson)(tree, ['@toolsplus/nx-forge'], []));
|
|
27
|
+
tasks.push(addDependencies(tree));
|
|
24
28
|
if (!options.skipFormat) {
|
|
25
29
|
yield (0, devkit_1.formatFiles)(tree);
|
|
26
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/generators/init/generator.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/generators/init/generator.ts"],"names":[],"mappings":";;;AAAA,uCAUoB;AAEpB,mDAI8B;AAE9B,SAAS,eAAe,CAAC,IAAU;IACjC,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;AAED,SAAS,YAAY,CAAC,IAAU;IAC9B,MAAM,MAAM,GAAwB,IAAA,iBAAQ,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;IAC9D,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;IACtC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,qBAAqB,CAAC,EAAE;QAC5D,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;KAC5C;IACD,IAAA,kBAAS,EAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;AACrC,CAAC;AAED,mBACE,IAAU,EACV,OAA4B;;QAE5B,YAAY,CAAC,IAAI,CAAC,CAAC;QAEnB,MAAM,KAAK,GAAwB,EAAE,CAAC;QAEtC,KAAK,CAAC,IAAI,CACR,IAAA,0CAAiC,EAAC,IAAI,EAAE,CAAC,qBAAqB,CAAC,EAAE,EAAE,CAAC,CACrE,CAAC;QACF,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;QAElC,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;YACvB,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,IAAA,yBAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACpC,CAAC;CAAA;AAlBD,4BAkBC"}
|
|
@@ -4,12 +4,6 @@
|
|
|
4
4
|
"title": "Init Forge Plugin",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
|
-
"unitTestRunner": {
|
|
8
|
-
"description": "Adds the specified unit test runner.",
|
|
9
|
-
"type": "string",
|
|
10
|
-
"enum": ["jest", "none"],
|
|
11
|
-
"default": "jest"
|
|
12
|
-
},
|
|
13
7
|
"skipFormat": {
|
|
14
8
|
"description": "Skip formatting files.",
|
|
15
9
|
"type": "boolean",
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createDependencies = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nx/devkit");
|
|
6
|
+
const manifest_yml_1 = require("../utils/forge/manifest-yml");
|
|
7
|
+
const getCustomUIDependencies = ([projectName, manifestFile], context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
8
|
+
const manifestSchema = yield (0, manifest_yml_1.readManifestYml)(manifestFile.file);
|
|
9
|
+
const customUIProjectNames = (0, manifest_yml_1.extractCustomUIProjectNames)(manifestSchema);
|
|
10
|
+
const getCustomUIStaticDependency = (customUIProjectName) => {
|
|
11
|
+
const customUIProjectConfiguration = context.projects[customUIProjectName];
|
|
12
|
+
if (!customUIProjectConfiguration) {
|
|
13
|
+
throw new Error(`Failed to find Custom UI project in Nx workspace: The Custom UI dependency to project ${customUIProjectName} declared in the Forge manifest.yml of project ${projectName} cannot be found. Make sure the Custom UI resource path references a project in your Nx workspace.`);
|
|
14
|
+
}
|
|
15
|
+
const projectConfiguration = context.projects[projectName];
|
|
16
|
+
if (!projectConfiguration) {
|
|
17
|
+
throw new Error(`Missing project configuration in Nx workspace for project ${projectName}`);
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
sourceFile: manifestFile.file,
|
|
21
|
+
source: projectName,
|
|
22
|
+
target: customUIProjectName,
|
|
23
|
+
type: devkit_1.DependencyType.static,
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
return customUIProjectNames.reduce((acc, customUIProjectName) => {
|
|
27
|
+
return (manifestFile.deps || []).find(([source, target, type]) => type === 'static' &&
|
|
28
|
+
target === customUIProjectName &&
|
|
29
|
+
source === projectName)
|
|
30
|
+
? acc // Dependency already exists, skip adding it again.
|
|
31
|
+
: [...acc, getCustomUIStaticDependency(customUIProjectName)];
|
|
32
|
+
}, []);
|
|
33
|
+
});
|
|
34
|
+
const createDependencies = (options, context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
35
|
+
var _a, e_1, _b, _c;
|
|
36
|
+
let dependencies = [];
|
|
37
|
+
for (const projectName in context.filesToProcess.projectFileMap) {
|
|
38
|
+
const changed = context.filesToProcess.projectFileMap[projectName];
|
|
39
|
+
try {
|
|
40
|
+
for (var _d = true, _e = (e_1 = void 0, tslib_1.__asyncValues(changed.filter((f) => f.file.endsWith('manifest.yml')))), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
41
|
+
_c = _f.value;
|
|
42
|
+
_d = false;
|
|
43
|
+
const manifestFile = _c;
|
|
44
|
+
devkit_1.logger.info(`[nx-forge] Processing ${projectName}:${manifestFile.file}`);
|
|
45
|
+
const customUIDependencies = yield getCustomUIDependencies([projectName, manifestFile], context);
|
|
46
|
+
dependencies = dependencies.concat(customUIDependencies);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
50
|
+
finally {
|
|
51
|
+
try {
|
|
52
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
53
|
+
}
|
|
54
|
+
finally { if (e_1) throw e_1.error; }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return dependencies;
|
|
58
|
+
});
|
|
59
|
+
exports.createDependencies = createDependencies;
|
|
60
|
+
//# sourceMappingURL=create-dependencies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-dependencies.js","sourceRoot":"","sources":["../../../../../packages/nx-forge/src/graph/create-dependencies.ts"],"names":[],"mappings":";;;;AAAA,uCAOoB;AACpB,8DAGqC;AAErC,MAAM,uBAAuB,GAAG,CAC9B,CAAC,WAAW,EAAE,YAAY,CAAqB,EAC/C,OAAkC,EACI,EAAE;IACxC,MAAM,cAAc,GAAG,MAAM,IAAA,8BAAe,EAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAChE,MAAM,oBAAoB,GAAG,IAAA,0CAA2B,EAAC,cAAc,CAAC,CAAC;IAEzE,MAAM,2BAA2B,GAAG,CAClC,mBAA2B,EACA,EAAE;QAC7B,MAAM,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC;QAE3E,IAAI,CAAC,4BAA4B,EAAE;YACjC,MAAM,IAAI,KAAK,CACb,yFAAyF,mBAAmB,kDAAkD,WAAW,oGAAoG,CAC9Q,CAAC;SACH;QAED,MAAM,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAE3D,IAAI,CAAC,oBAAoB,EAAE;YACzB,MAAM,IAAI,KAAK,CACb,6DAA6D,WAAW,EAAE,CAC3E,CAAC;SACH;QAED,OAAO;YACL,UAAU,EAAE,YAAY,CAAC,IAAI;YAC7B,MAAM,EAAE,WAAW;YACnB,MAAM,EAAE,mBAAmB;YAC3B,IAAI,EAAE,uBAAc,CAAC,MAAM;SAC5B,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,mBAAmB,EAAE,EAAE;QAC9D,OAAO,CAAC,YAAY,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,IAAI,CACnC,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,CACzB,IAAI,KAAK,QAAQ;YACjB,MAAM,KAAK,mBAAmB;YAC9B,MAAM,KAAK,WAAW,CACzB;YACC,CAAC,CAAC,GAAG,CAAC,mDAAmD;YACzD,CAAC,CAAC,CAAC,GAAG,GAAG,EAAE,2BAA2B,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACjE,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC,CAAA,CAAC;AAEK,MAAM,kBAAkB,GAAuB,CACpD,OAAO,EACP,OAAO,EACP,EAAE;;IACF,IAAI,YAAY,GAAgC,EAAE,CAAC;IAEnD,KAAK,MAAM,WAAW,IAAI,OAAO,CAAC,cAAc,CAAC,cAAc,EAAE;QAC/D,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;;YACnE,KAAiC,eAAA,oBAAA,sBAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CACpD,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,CAChC,CAAA,CAAA,IAAA,sDAAE;gBAF8B,cAEhC;gBAFgC,WAEhC;gBAFU,MAAM,YAAY,KAAA,CAAA;gBAG3B,eAAM,CAAC,IAAI,CAAC,yBAAyB,WAAW,IAAI,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;gBACzE,MAAM,oBAAoB,GAAG,MAAM,uBAAuB,CACxD,CAAC,WAAW,EAAE,YAAY,CAAC,EAC3B,OAAO,CACR,CAAC;gBACF,YAAY,GAAG,YAAY,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;aAC1D;;;;;;;;;KACF;IAED,OAAO,YAAY,CAAC;AACtB,CAAC,CAAA,CAAC;AArBW,QAAA,kBAAkB,sBAqB7B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createNodes = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
const get_register_config_1 = require("../shared/targets/get-register-config");
|
|
6
|
+
const get_build_config_1 = require("../shared/targets/get-build-config");
|
|
7
|
+
const get_serve_config_1 = require("../shared/targets/get-serve-config");
|
|
8
|
+
const get_deploy_config_1 = require("../shared/targets/get-deploy-config");
|
|
9
|
+
const get_install_config_1 = require("../shared/targets/get-install-config");
|
|
10
|
+
const registerProjectTargets = (projectRoot) => {
|
|
11
|
+
const outputPath = projectRoot === '.'
|
|
12
|
+
? `{projectRoot}/dist}`
|
|
13
|
+
: `{workspaceRoot}/dist/{projectRoot}`;
|
|
14
|
+
const targets = {};
|
|
15
|
+
targets.register = (0, get_register_config_1.getRegisterConfig)({ outputPath });
|
|
16
|
+
targets.build = (0, get_build_config_1.getBuildConfig)({
|
|
17
|
+
outputPath,
|
|
18
|
+
webpackConfig: `{projectRoot}/webpack.config.js}`,
|
|
19
|
+
});
|
|
20
|
+
targets.serve = (0, get_serve_config_1.getServeConfig)({ outputPath });
|
|
21
|
+
targets.deploy = (0, get_deploy_config_1.getDeployConfig)({ outputPath });
|
|
22
|
+
targets.install = (0, get_install_config_1.getInstallConfig)({ outputPath });
|
|
23
|
+
return targets;
|
|
24
|
+
};
|
|
25
|
+
exports.createNodes = [
|
|
26
|
+
`**/manifest.yml`,
|
|
27
|
+
(manifestFilePath) => {
|
|
28
|
+
const projectRoot = (0, path_1.dirname)(manifestFilePath);
|
|
29
|
+
return {
|
|
30
|
+
projects: {
|
|
31
|
+
[projectRoot]: {
|
|
32
|
+
root: projectRoot,
|
|
33
|
+
type: 'application',
|
|
34
|
+
targets: registerProjectTargets(projectRoot),
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
//# sourceMappingURL=create-nodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-nodes.js","sourceRoot":"","sources":["../../../../../packages/nx-forge/src/graph/create-nodes.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,+EAA0E;AAC1E,yEAAoE;AACpE,yEAAoE;AACpE,2EAAsE;AACtE,6EAAwE;AAExE,MAAM,sBAAsB,GAAG,CAAC,WAAmB,EAAE,EAAE;IACrD,MAAM,UAAU,GACd,WAAW,KAAK,GAAG;QACjB,CAAC,CAAC,qBAAqB;QACvB,CAAC,CAAC,oCAAoC,CAAC;IAE3C,MAAM,OAAO,GAAwC,EAAE,CAAC;IAExD,OAAO,CAAC,QAAQ,GAAG,IAAA,uCAAiB,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IACrD,OAAO,CAAC,KAAK,GAAG,IAAA,iCAAc,EAAC;QAC7B,UAAU;QACV,aAAa,EAAE,kCAAkC;KAClD,CAAC,CAAC;IACH,OAAO,CAAC,KAAK,GAAG,IAAA,iCAAc,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IAC/C,OAAO,CAAC,MAAM,GAAG,IAAA,mCAAe,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IACjD,OAAO,CAAC,OAAO,GAAG,IAAA,qCAAgB,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC;IAEnD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEW,QAAA,WAAW,GAAgB;IACtC,iBAAiB;IACjB,CAAC,gBAAgB,EAAE,EAAE;QACnB,MAAM,WAAW,GAAG,IAAA,cAAO,EAAC,gBAAgB,CAAC,CAAC;QAC9C,OAAO;YACL,QAAQ,EAAE;gBACR,CAAC,WAAW,CAAC,EAAE;oBACb,IAAI,EAAE,WAAW;oBACjB,IAAI,EAAE,aAAa;oBACnB,OAAO,EAAE,sBAAsB,CAAC,WAAW,CAAC;iBAC7C;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const create_nodes_1 = require("./graph/create-nodes");
|
|
3
|
+
const create_dependencies_1 = require("./graph/create-dependencies");
|
|
2
4
|
const forge_project_graph_1 = require("./graph/forge-project-graph");
|
|
3
5
|
const nxPlugin = {
|
|
4
6
|
name: '@toolsplus/nx-forge',
|
|
7
|
+
createNodes: create_nodes_1.createNodes,
|
|
8
|
+
createDependencies: create_dependencies_1.createDependencies,
|
|
5
9
|
processProjectGraph: forge_project_graph_1.processProjectGraph,
|
|
6
10
|
};
|
|
7
11
|
module.exports = nxPlugin;
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/nx-forge/src/index.ts"],"names":[],"mappings":";AACA,qEAAkE;AAElE,MAAM,QAAQ,GAAa;IACzB,IAAI,EAAE,qBAAqB;IAC3B,mBAAmB,EAAnB,yCAAmB;CACpB,CAAC;AAEF,iBAAS,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/nx-forge/src/index.ts"],"names":[],"mappings":";AACA,uDAAmD;AACnD,qEAAiE;AACjE,qEAAkE;AAElE,MAAM,QAAQ,GAAa;IACzB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAX,0BAAW;IACX,kBAAkB,EAAlB,wCAAkB;IAClB,mBAAmB,EAAnB,yCAAmB;CACpB,CAAC;AAEF,iBAAS,QAAQ,CAAC"}
|
|
@@ -4,7 +4,7 @@ exports.writeManifestYml = exports.readManifestYml = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const yml_1 = require("./yml");
|
|
6
6
|
const manifest_1 = require("@forge/manifest");
|
|
7
|
-
const FULL_SCHEMA = require("@forge/manifest/out/schema/manifest-schema.json");
|
|
7
|
+
const FULL_SCHEMA = tslib_1.__importStar(require("@forge/manifest/out/schema/manifest-schema.json"));
|
|
8
8
|
const manifestSchemaValidator = new manifest_1.SchemaValidator(FULL_SCHEMA);
|
|
9
9
|
const readManifestYml = (tree, path) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
10
10
|
const result = yield manifestSchemaValidator.validate({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/migrations/update-2-3-0/utils/manifest.ts"],"names":[],"mappings":";;;;AACA,+BAA4C;AAC5C,8CAAkE;AAClE
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/migrations/update-2-3-0/utils/manifest.ts"],"names":[],"mappings":";;;;AACA,+BAA4C;AAC5C,8CAAkE;AAClE,qGAA+E;AAE/E,MAAM,uBAAuB,GAAG,IAAI,0BAAe,CACjD,WAAW,CACZ,CAAC;AAEK,MAAM,eAAe,GAAG,CAAO,IAAU,EAAE,IAAY,EAAE,EAAE;IAChE,MAAM,MAAM,GAAG,MAAM,uBAAuB,CAAC,QAAQ,CAAC;QACpD,WAAW,EAAE,IAAA,cAAQ,EAAC,IAAI,EAAE,IAAI,CAAC;KAClC,CAAC,CAAC;IAEH,IAAI,MAAM,CAAC,OAAO,EAAE;QAClB,OAAO,MAAM,CAAC,cAAc,CAAC,YAAY,CAAC;KAC3C;IAED,MAAM,IAAI,KAAK,CAAC,4BAA4B,IAAI,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;AACxE,CAAC,CAAA,CAAC;AAVW,QAAA,eAAe,mBAU1B;AAEK,MAAM,gBAAgB,GAAG,CAC9B,IAAU,EACV,IAAY,EACZ,KAAqB,EACrB,EAAE;IACF,IAAA,eAAS,EAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/B,CAAC,CAAC;AANW,QAAA,gBAAgB,oBAM3B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getBuildConfig = void 0;
|
|
4
|
+
function getBuildConfig(options) {
|
|
5
|
+
return {
|
|
6
|
+
executor: '@toolsplus/nx-forge:build',
|
|
7
|
+
outputs: ['{options.outputPath}'],
|
|
8
|
+
options: {
|
|
9
|
+
outputPath: options.outputPath,
|
|
10
|
+
webpackConfig: options.webpackConfig,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
exports.getBuildConfig = getBuildConfig;
|
|
15
|
+
//# sourceMappingURL=get-build-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-build-config.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/shared/targets/get-build-config.ts"],"names":[],"mappings":";;;AAOA,SAAgB,cAAc,CAC5B,OAA8B;IAE9B,OAAO;QACL,QAAQ,EAAE,2BAA2B;QACrC,OAAO,EAAE,CAAC,sBAAsB,CAAC;QACjC,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,aAAa,EAAE,OAAO,CAAC,aAAa;SACrC;KACF,CAAC;AACJ,CAAC;AAXD,wCAWC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDeployConfig = void 0;
|
|
4
|
-
|
|
5
|
-
function getDeployConfig(project, options) {
|
|
4
|
+
function getDeployConfig(options) {
|
|
6
5
|
return {
|
|
7
6
|
executor: '@toolsplus/nx-forge:deploy',
|
|
8
7
|
options: {
|
|
9
|
-
outputPath:
|
|
8
|
+
outputPath: options.outputPath,
|
|
10
9
|
},
|
|
11
10
|
};
|
|
12
11
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-deploy-config.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/shared/targets/get-deploy-config.ts"],"names":[],"mappings":";;;AAKA,SAAgB,eAAe,CAC7B,OAA+B;IAE/B,OAAO;QACL,QAAQ,EAAE,4BAA4B;QACtC,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF,CAAC;AACJ,CAAC;AATD,0CASC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getInstallConfig = void 0;
|
|
4
|
-
|
|
5
|
-
function getInstallConfig(project, options) {
|
|
4
|
+
function getInstallConfig(options) {
|
|
6
5
|
return {
|
|
7
6
|
executor: '@toolsplus/nx-forge:install',
|
|
8
7
|
options: {
|
|
9
|
-
outputPath:
|
|
8
|
+
outputPath: options.outputPath,
|
|
10
9
|
},
|
|
11
10
|
};
|
|
12
11
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-install-config.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/shared/targets/get-install-config.ts"],"names":[],"mappings":";;;AAMA,SAAgB,gBAAgB,CAC9B,OAAgC;IAEhC,OAAO;QACL,QAAQ,EAAE,6BAA6B;QACvC,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF,CAAC;AACJ,CAAC;AATD,4CASC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRegisterConfig = void 0;
|
|
4
|
-
|
|
5
|
-
function getRegisterConfig(project, options) {
|
|
4
|
+
function getRegisterConfig(options) {
|
|
6
5
|
return {
|
|
7
6
|
executor: '@toolsplus/nx-forge:register',
|
|
8
7
|
options: {
|
|
9
|
-
outputPath:
|
|
8
|
+
outputPath: options.outputPath,
|
|
10
9
|
},
|
|
11
10
|
};
|
|
12
11
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-register-config.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/shared/targets/get-register-config.ts"],"names":[],"mappings":";;;AAKA,SAAgB,iBAAiB,CAC/B,OAAiC;IAEjC,OAAO;QACL,QAAQ,EAAE,8BAA8B;QACxC,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF,CAAC;AACJ,CAAC;AATD,8CASC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getServeConfig = void 0;
|
|
4
|
-
|
|
5
|
-
function getServeConfig(project, options) {
|
|
4
|
+
function getServeConfig(options) {
|
|
6
5
|
return {
|
|
7
6
|
executor: '@toolsplus/nx-forge:tunnel',
|
|
8
7
|
options: {
|
|
9
|
-
outputPath:
|
|
8
|
+
outputPath: options.outputPath,
|
|
10
9
|
},
|
|
11
10
|
};
|
|
12
11
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-serve-config.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/shared/targets/get-serve-config.ts"],"names":[],"mappings":";;;AAKA,SAAgB,cAAc,CAC5B,OAA8B;IAE9B,OAAO;QACL,QAAQ,EAAE,4BAA4B;QACtC,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF,CAAC;AACJ,CAAC;AATD,wCASC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.extractCustomUIProjectNames = exports.writeManifestYml = exports.readManifestYml = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const manifest_1 = require("@forge/manifest");
|
|
6
|
-
const FULL_SCHEMA = require("@forge/manifest/out/schema/manifest-schema.json");
|
|
6
|
+
const FULL_SCHEMA = tslib_1.__importStar(require("@forge/manifest/out/schema/manifest-schema.json"));
|
|
7
7
|
const js_yaml_1 = require("js-yaml");
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
9
|
class ManifestYmlValidator extends manifest_1.AbstractValidationProcessor {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest-yml.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/utils/forge/manifest-yml.ts"],"names":[],"mappings":";;;;AAAA,8CAMyB;AACzB
|
|
1
|
+
{"version":3,"file":"manifest-yml.js","sourceRoot":"","sources":["../../../../../../packages/nx-forge/src/utils/forge/manifest-yml.ts"],"names":[],"mappings":";;;;AAAA,8CAMyB;AACzB,qGAA+E;AAC/E,qCAA+B;AAC/B,2BAAmC;AAEnC,MAAM,oBAAqB,SAAQ,sCAA2C;IAC5E;QACE,KAAK,CAAC;YACJ,IAAI,wBAAa,EAAE;YACnB,IAAI,wBAAa,EAAE;YACnB,IAAI,0BAAe,CAAC,WAAW,CAAC;SACjC,CAAC,CAAC;IACL,CAAC;CACF;AACD,SAAsB,eAAe,CAAC,IAAY;;QAChD,MAAM,EACJ,cAAc,EACd,OAAO,EAAE,sBAAsB,EAC/B,MAAM,GACP,GAAG,MAAM,IAAI,oBAAoB,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAEnD,IACE,CAAC,sBAAsB;YACvB,CAAC,cAAc;YACf,CAAC,cAAc,CAAC,YAAY,EAC5B;YACA,MAAM,IAAI,KAAK,CACb,iCAAiC,IAAI,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC;iBACtD,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;iBACrB,IAAI,CAAC,IAAI,CAAC,EAAE,CAChB,CAAC;SACH;QAED,MAAM,cAAc,GAAmB,cAAc,CAAC,YAAY,CAAC;QAEnE,IAAI,CAAC,cAAc,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;SACtE;QAED,OAAO,cAAc,CAAC;IACxB,CAAC;CAAA;AA1BD,0CA0BC;AAED;;;;GAIG;AACI,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,KAAqB,EAAQ,EAAE;IAC5E,MAAM,OAAO,GAAG,IAAA,cAAI,EAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAChC,IAAA,kBAAa,EAAC,IAAI,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;AACrD,CAAC,CAAC;AAHW,QAAA,gBAAgB,oBAG3B;AAEF;;;;;GAKG;AACI,MAAM,2BAA2B,GAAG,CACzC,QAAwB,EACd,EAAE;IACZ,OAAO,CAAC,QAAQ,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC,CAAC;AAJW,QAAA,2BAA2B,+BAItC"}
|
package/src/utils/versions.d.ts
CHANGED
package/src/utils/versions.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.forgeResolverVersion = exports.forgeApiVersion = exports.pluginVersion = void 0;
|
|
4
|
-
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../../package.json"));
|
|
6
|
+
exports.pluginVersion = package_json_1.default.version;
|
|
5
7
|
exports.forgeApiVersion = 'latest';
|
|
6
8
|
exports.forgeResolverVersion = 'latest';
|
|
7
9
|
//# sourceMappingURL=versions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/nx-forge/src/utils/versions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/nx-forge/src/utils/versions.ts"],"names":[],"mappings":";;;;AAAA,8EAAmD;AAEtC,QAAA,aAAa,GAAG,sBAAiB,CAAC,OAAO,CAAC;AAE1C,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,oBAAoB,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-files.js","sourceRoot":"","sources":["../../../../../../../packages/nx-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,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBuildConfig = void 0;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
function getBuildConfig(project, options) {
|
|
6
|
-
return {
|
|
7
|
-
executor: '@toolsplus/nx-forge:build',
|
|
8
|
-
outputs: ['{options.outputPath}'],
|
|
9
|
-
options: {
|
|
10
|
-
outputPath: (0, devkit_1.joinPathFragments)('dist', options.appProjectRoot),
|
|
11
|
-
webpackConfig: (0, devkit_1.joinPathFragments)(project.root, 'webpack.config.js'),
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
exports.getBuildConfig = getBuildConfig;
|
|
16
|
-
//# sourceMappingURL=get-build-config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-build-config.js","sourceRoot":"","sources":["../../../../../../../packages/nx-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;YAC7D,aAAa,EAAE,IAAA,0BAAiB,EAAC,OAAO,CAAC,IAAI,EAAE,mBAAmB,CAAC;SACpE;KACF,CAAC;AACJ,CAAC;AAZD,wCAYC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-deploy-config.js","sourceRoot":"","sources":["../../../../../../../packages/nx-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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-install-config.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/generators/application/lib/get-install-config.ts"],"names":[],"mappings":";;;AACA,uCAIoB;AAEpB,SAAgB,gBAAgB,CAC9B,OAA6B,EAC7B,OAA0B;IAE1B,OAAO;QACL,QAAQ,EAAE,6BAA6B;QACvC,OAAO,EAAE;YACP,UAAU,EAAE,IAAA,0BAAiB,EAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC;SAC9D;KACF,CAAC;AACJ,CAAC;AAVD,4CAUC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-register-config.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/generators/application/lib/get-register-config.ts"],"names":[],"mappings":";;;AAAA,uCAIoB;AAGpB,SAAgB,iBAAiB,CAC/B,OAA6B,EAC7B,OAA0B;IAE1B,OAAO;QACL,QAAQ,EAAE,8BAA8B;QACxC,OAAO,EAAE;YACP,UAAU,EAAE,IAAA,0BAAiB,EAAC,MAAM,EAAE,OAAO,CAAC,cAAc,CAAC;SAC9D;KACF,CAAC;AACJ,CAAC;AAVD,8CAUC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-serve-config.js","sourceRoot":"","sources":["../../../../../../../packages/nx-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,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addDependencies = void 0;
|
|
4
|
-
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
const versions_1 = require("../../../utils/versions");
|
|
6
|
-
function addDependencies(tree) {
|
|
7
|
-
return (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
8
|
-
'@forge/api': versions_1.forgeApiVersion,
|
|
9
|
-
'@forge/resolver': versions_1.forgeResolverVersion,
|
|
10
|
-
}, {
|
|
11
|
-
'@toolsplus/nx-forge': versions_1.pluginVersion,
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
exports.addDependencies = addDependencies;
|
|
15
|
-
//# sourceMappingURL=add-dependencies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-dependencies.js","sourceRoot":"","sources":["../../../../../../../packages/nx-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 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./add-dependencies"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./normalize-options"), exports);
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/generators/init/lib/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC;AACnC,8DAAoC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.normalizeOptions = void 0;
|
|
4
|
-
function normalizeOptions(options) {
|
|
5
|
-
var _a;
|
|
6
|
-
return Object.assign(Object.assign({}, options), { unitTestRunner: (_a = options.unitTestRunner) !== null && _a !== void 0 ? _a : 'jest' });
|
|
7
|
-
}
|
|
8
|
-
exports.normalizeOptions = normalizeOptions;
|
|
9
|
-
//# sourceMappingURL=normalize-options.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-options.js","sourceRoot":"","sources":["../../../../../../../packages/nx-forge/src/generators/init/lib/normalize-options.ts"],"names":[],"mappings":";;;AAEA,SAAgB,gBAAgB,CAC9B,OAA4B;;IAE5B,uCAAY,OAAO,KAAE,cAAc,EAAE,MAAA,OAAO,CAAC,cAAc,mCAAI,MAAM,IAAG;AAC1E,CAAC;AAJD,4CAIC"}
|