@rxap/plugin-utilities 1.0.1-dev.1 → 1.1.0-dev.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/CHANGELOG.md +6 -0
- package/package.json +4 -4
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/src/lib/project-target.d.ts +3 -0
- package/src/lib/project-target.js +20 -0
- package/src/lib/project-target.js.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.1.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@1.0.1-dev.1...@rxap/plugin-utilities@1.1.0-dev.0) (2023-07-20)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- add project target utility functions ([d0e1577](https://gitlab.com/rxap/packages/commit/d0e1577e962b3836c16ecae521d7aef0d01b62bc))
|
|
11
|
+
|
|
6
12
|
## [1.0.1-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/plugin-utilities@1.0.1-dev.0...@rxap/plugin-utilities@1.0.1-dev.1) (2023-07-10)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/plugin-utilities",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0-dev.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@nx/devkit": "^16.5.0",
|
|
29
|
-
"@rxap/node-utilities": "^1.0.1-dev.
|
|
29
|
+
"@rxap/node-utilities": "^1.0.1-dev.1",
|
|
30
30
|
"nx": "^16.5.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"packageGroup": [
|
|
37
37
|
{
|
|
38
38
|
"package": "@rxap/node-utilities",
|
|
39
|
-
"version": "1.0.1-dev.
|
|
39
|
+
"version": "1.0.1-dev.1"
|
|
40
40
|
}
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "1db5c4615c109e4bceb754e3ab56d011a064a810",
|
|
44
44
|
"main": "./src/index.js",
|
|
45
45
|
"types": "./src/index.d.ts"
|
|
46
46
|
}
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -8,4 +8,5 @@ tslib_1.__exportStar(require("./lib/project-root-files"), exports);
|
|
|
8
8
|
tslib_1.__exportStar(require("./lib/get-target-configuration-name-list"), exports);
|
|
9
9
|
tslib_1.__exportStar(require("./lib/guess-output-path"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./lib/yarn-run"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./lib/project-target"), exports);
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/plugin/utilities/src/index.ts"],"names":[],"mappings":";;;AAAA,4FAAkE;AAClE,qEAA2C;AAC3C,wDAA8B;AAC9B,mEAAyC;AACzC,mFAAyD;AACzD,kEAAwC;AACxC,yDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/plugin/utilities/src/index.ts"],"names":[],"mappings":";;;AAAA,4FAAkE;AAClE,qEAA2C;AAC3C,wDAA8B;AAC9B,mEAAyC;AACzC,mFAAyD;AACzD,kEAAwC;AACxC,yDAA+B;AAC/B,+DAAqC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
+
export declare function GetProjectTarget(context: ExecutorContext, projectName: string, targetName: string): import("@nx/devkit").TargetConfiguration<any>;
|
|
3
|
+
export declare function GetProjectTargetOptions(context: ExecutorContext, projectName: string, targetName: string): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetProjectTargetOptions = exports.GetProjectTarget = void 0;
|
|
4
|
+
const project_1 = require("./project");
|
|
5
|
+
function GetProjectTarget(context, projectName, targetName) {
|
|
6
|
+
const projectConfiguration = (0, project_1.GetProjectConfiguration)(context, projectName);
|
|
7
|
+
const targetConfiguration = projectConfiguration.targets ? projectConfiguration.targets[targetName] : undefined;
|
|
8
|
+
if (!targetConfiguration) {
|
|
9
|
+
throw new Error(`The target configuration for target '${targetName}' not found!`);
|
|
10
|
+
}
|
|
11
|
+
return targetConfiguration;
|
|
12
|
+
}
|
|
13
|
+
exports.GetProjectTarget = GetProjectTarget;
|
|
14
|
+
function GetProjectTargetOptions(context, projectName, targetName) {
|
|
15
|
+
var _a;
|
|
16
|
+
const target = GetProjectTarget(context, projectName, targetName);
|
|
17
|
+
return (_a = target.options) !== null && _a !== void 0 ? _a : {};
|
|
18
|
+
}
|
|
19
|
+
exports.GetProjectTargetOptions = GetProjectTargetOptions;
|
|
20
|
+
//# sourceMappingURL=project-target.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-target.js","sourceRoot":"","sources":["../../../../../../packages/plugin/utilities/src/lib/project-target.ts"],"names":[],"mappings":";;;AACA,uCAAoD;AAEpD,SAAgB,gBAAgB,CAAC,OAAwB,EAAE,WAAmB,EAAE,UAAkB;IAChG,MAAM,oBAAoB,GAAG,IAAA,iCAAuB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAE3E,MAAM,mBAAmB,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC,oBAAoB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAEhH,IAAI,CAAC,mBAAmB,EAAE;QACxB,MAAM,IAAI,KAAK,CAAC,wCAAyC,UAAW,cAAc,CAAC,CAAC;KACrF;IAED,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAVD,4CAUC;AAED,SAAgB,uBAAuB,CAAC,OAAwB,EAAE,WAAmB,EAAE,UAAkB;;IACvG,MAAM,MAAM,GAAG,gBAAgB,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;IAClE,OAAO,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE,CAAC;AAC9B,CAAC;AAHD,0DAGC"}
|