@broadcom/idms-for-zowe-cli 1.0.1 → 1.1.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.
Files changed (79) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +10 -10
  3. package/lib/api/Datasources.d.ts +7 -0
  4. package/lib/api/Datasources.js +60 -0
  5. package/lib/api/Datasources.js.map +1 -0
  6. package/lib/api/Dcmt.js +1 -1
  7. package/lib/api/Dcuf.js +1 -1
  8. package/lib/api/IDMSSession.d.ts +1 -1
  9. package/lib/api/IDMSSession.js +30 -19
  10. package/lib/api/IDMSSession.js.map +1 -1
  11. package/lib/api/Log.js +1 -1
  12. package/lib/api/Systems.js +1 -1
  13. package/lib/api/TransactionDetails.js +1 -1
  14. package/lib/api/UserTasks.js +1 -1
  15. package/lib/api/doc/IDatasource.d.ts +5 -0
  16. package/lib/api/doc/IDatasource.js +25 -0
  17. package/lib/api/doc/IDatasource.js.map +1 -0
  18. package/lib/api/doc/ILogRecord.js +1 -1
  19. package/lib/api/doc/ILogReport.js +1 -1
  20. package/lib/api/doc/ISystem.js +1 -1
  21. package/lib/api/doc/ITaskCommand.js +1 -1
  22. package/lib/api/doc/ITransactionDetail.js +1 -1
  23. package/lib/api/doc/IUserTask.js +1 -1
  24. package/lib/cli/-strings-/en.d.ts +6 -0
  25. package/lib/cli/-strings-/en.js +10 -2
  26. package/lib/cli/-strings-/en.js.map +1 -1
  27. package/lib/cli/IDMSBaseHandler.js +2 -2
  28. package/lib/cli/IDMSBaseHandler.js.map +1 -1
  29. package/lib/cli/issue/Issue.definition.js +2 -2
  30. package/lib/cli/issue/Issue.definition.js.map +1 -1
  31. package/lib/cli/issue/dcmt-display/DcmtDisplay.definition.js +2 -2
  32. package/lib/cli/issue/dcmt-display/DcmtDisplay.handler.js +2 -2
  33. package/lib/cli/issue/dcmt-display/DcmtDisplay.handler.js.map +1 -1
  34. package/lib/cli/issue/dcmt-help/DcmtHelp.definition.js +2 -2
  35. package/lib/cli/issue/dcmt-help/DcmtHelp.handler.js +1 -1
  36. package/lib/cli/issue/dcmt-quiesce/DcmtQuiesce.definition.js +2 -2
  37. package/lib/cli/issue/dcmt-quiesce/DcmtQuiesce.handler.js +1 -1
  38. package/lib/cli/issue/dcmt-shutdown/DcmtShutdown.definition.js +2 -2
  39. package/lib/cli/issue/dcmt-shutdown/DcmtShutdown.handler.js +1 -1
  40. package/lib/cli/issue/dcmt-statistics/DcmtStatistics.definition.js +2 -2
  41. package/lib/cli/issue/dcmt-statistics/DcmtStatistics.handler.js +1 -1
  42. package/lib/cli/issue/dcmt-test/DcmtTest.definition.js +3 -3
  43. package/lib/cli/issue/dcmt-test/DcmtTest.definition.js.map +1 -1
  44. package/lib/cli/issue/dcmt-test/DcmtTest.handler.js +1 -1
  45. package/lib/cli/issue/dcmt-vary/DcmtVary.definition.js +2 -2
  46. package/lib/cli/issue/dcmt-vary/DcmtVary.handler.js +1 -1
  47. package/lib/cli/issue/dcuf-help/DcufHelp.definition.js +2 -2
  48. package/lib/cli/issue/dcuf-help/DcufHelp.handler.js +1 -1
  49. package/lib/cli/issue/dcuf-show/DcufShow.definition.js +2 -2
  50. package/lib/cli/issue/dcuf-show/DcufShow.handler.js +1 -1
  51. package/lib/cli/list/List.definition.js +17 -5
  52. package/lib/cli/list/List.definition.js.map +1 -1
  53. package/lib/cli/list/datasources/Datasources.definition.d.ts +2 -0
  54. package/lib/cli/list/datasources/Datasources.definition.js +67 -0
  55. package/lib/cli/list/datasources/Datasources.definition.js.map +1 -0
  56. package/lib/cli/list/datasources/Datasources.handler.d.ts +23 -0
  57. package/lib/cli/list/datasources/Datasources.handler.js +78 -0
  58. package/lib/cli/list/datasources/Datasources.handler.js.map +1 -0
  59. package/lib/cli/list/log/Log.definition.js +3 -3
  60. package/lib/cli/list/log/Log.definition.js.map +1 -1
  61. package/lib/cli/list/log/Log.handler.js +1 -1
  62. package/lib/cli/list/systems/Systems.definition.js +2 -2
  63. package/lib/cli/list/systems/Systems.handler.js +1 -1
  64. package/lib/cli/list/transactions/TransactionDetails.definition.js +2 -2
  65. package/lib/cli/list/transactions/TransactionDetails.handler.js +1 -1
  66. package/lib/cli/list/user-tasks/UserTasks.definition.js +2 -2
  67. package/lib/cli/list/user-tasks/UserTasks.handler.js +1 -1
  68. package/lib/healthCheck.Handler.js +1 -1
  69. package/lib/imperative.js +29 -7
  70. package/lib/imperative.js.map +1 -1
  71. package/lib/index.js +7 -3
  72. package/lib/index.js.map +1 -1
  73. package/lib/overrides/CredentialManager.override.d.ts +0 -17
  74. package/lib/overrides/CredentialManager.override.js +55 -41
  75. package/lib/overrides/CredentialManager.override.js.map +1 -1
  76. package/lib/util/IdmsRestClient.js +2 -2
  77. package/lib/util/IdmsRestClient.js.map +1 -1
  78. package/package.json +117 -113
  79. package/CHANGELOG.md +0 -16
@@ -1,17 +0,0 @@
1
- import { Logger, SecureCredential } from "@zowe/imperative";
2
- declare const _default: {
3
- new (service: string, displayName: string): {
4
- consoleLog: Logger;
5
- deleteCredentials(account: string): Promise<void>;
6
- loadCredentials(account: string): Promise<string>;
7
- saveCredentials(account: string, credentials: SecureCredential): Promise<void>;
8
- initialize?(): Promise<void>;
9
- readonly service: string;
10
- displayName: any;
11
- readonly name: string;
12
- delete(account: string): Promise<void>;
13
- load(account: string, optional?: boolean): Promise<string>;
14
- save(account: string, secureValue: string): Promise<void>;
15
- };
16
- };
17
- export = _default;
@@ -1,6 +1,5 @@
1
- "use strict";
2
1
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
2
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
3
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
4
  *
6
5
  * This software and all information contained therein is
@@ -21,49 +20,64 @@
21
20
  * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
22
21
  * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
23
22
  */
24
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
25
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
26
- return new (P || (P = Promise))(function (resolve, reject) {
27
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
28
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
29
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
30
- step((generator = generator.apply(thisArg, _arguments || [])).next());
31
- });
32
- };
33
- const imperative_1 = require("@zowe/imperative");
34
- module.exports = class CredentialManagerOverrides extends imperative_1.AbstractCredentialManager {
35
- constructor(service, displayName) {
23
+ // import {AbstractCredentialManager, IProfileLoaded, Logger, SecureCredential} from "@zowe/imperative";
24
+ /*
25
+ * This is an example of overriding the CredentialManager component of the
26
+ * Imperative framework. You can enable it for a test by editing
27
+ *
28
+ * $ZOWE_CLI_HOME/settings/imperative.json
29
+ *
30
+ * to contain:
31
+ * {
32
+ * "overrides": {
33
+ * "CredentialManager": "@zowe/zowe-cli-sample-plugin"
34
+ * }
35
+ *
36
+ * You can then try this CredentialManager override with commands like the following:
37
+ *
38
+ * zowe profiles create zosmf-profile YourTestProfileName ...
39
+ * zowe profiles delete zosmf-profile YourTestProfileName
40
+ *
41
+ * This is just a sample of the mechanism. Do not try to actually use this to
42
+ * store any credentials. Instead, use the Imperative default CredentialManager,
43
+ * or write a real CredentialManager override of your own.
44
+ */
45
+ /*export = class CredentialManagerOverrides extends AbstractCredentialManager {
46
+
47
+ private consoleLog = Logger.getConsoleLogger();
48
+
49
+ constructor(service: string, displayName: string) {
36
50
  super(service, displayName);
37
- this.consoleLog = imperative_1.Logger.getConsoleLogger();
38
51
  }
39
- deleteCredentials(account) {
40
- return __awaiter(this, void 0, void 0, function* () {
41
- this.consoleLog.info("CredentialManager in sample-plugin is deleting:\n" +
42
- ` service = ${this.service}\n` +
43
- ` account = ${account}`);
44
- });
52
+
53
+ public async deleteCredentials(account: string) {
54
+ this.consoleLog.info("CredentialManager in sample-plugin is deleting:\n" +
55
+ ` service = ${this.service}\n` +
56
+ ` account = ${account}`
57
+ );
45
58
  }
46
- loadCredentials(account) {
47
- return __awaiter(this, void 0, void 0, function* () {
48
- this.consoleLog.info("CredentialManager in sample-plugin is loading:\n" +
49
- ` service = ${this.service}\n` +
50
- ` account = ${account}`);
51
- const loadedProfResult = {
52
- message: "Creds loaded from sample-plugin",
53
- type: "SomeTypeOfProfile",
54
- failNotFound: true
55
- };
56
- const loadResultString = JSON.stringify(loadedProfResult, null, 2);
57
- return Buffer.from(loadResultString).toString("base64");
58
- });
59
+
60
+ public async loadCredentials(account: string) {
61
+ this.consoleLog.info("CredentialManager in sample-plugin is loading:\n" +
62
+ ` service = ${this.service}\n` +
63
+ ` account = ${account}`
64
+ );
65
+ const loadedProfResult: IProfileLoaded = {
66
+ message: "Creds loaded from sample-plugin",
67
+ type: "SomeTypeOfProfile",
68
+ failNotFound: true
69
+ };
70
+ const loadResultString = JSON.stringify(loadedProfResult, null, 2);
71
+ return Buffer.from(loadResultString).toString("base64");
59
72
  }
60
- saveCredentials(account, credentials) {
61
- return __awaiter(this, void 0, void 0, function* () {
62
- this.consoleLog.info("CredentialManager in sample-plugin is saving these creds:\n" +
63
- ` service = ${this.service}\n` +
64
- ` account = ${account}\n` +
65
- ` credentials = ${credentials.length * Math.random()}`);
66
- });
73
+
74
+ public async saveCredentials(account: string, credentials: SecureCredential) {
75
+ this.consoleLog.info("CredentialManager in sample-plugin is saving these creds:\n" +
76
+ ` service = ${this.service}\n` +
77
+ ` account = ${account}\n` +
78
+ ` credentials = ${credentials.length * Math.random()}`
79
+ );
67
80
  }
68
81
  };
82
+ */
69
83
  //# sourceMappingURL=CredentialManager.override.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CredentialManager.override.js","sourceRoot":"","sources":["../../src/overrides/CredentialManager.override.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;;;;;;;;;;AAEF,iDA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;;;;;;;EAqBE;AAEF,wGAAwG;AAExG;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCE"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright (c) 2019 Broadcom. All Rights Reserved. The term
3
+ * Copyright (c) 2022 Broadcom. All Rights Reserved. The term
4
4
  * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
5
5
  *
6
6
  * This software and all information contained therein is
@@ -39,7 +39,7 @@ class IdmsRestClient extends imperative_1.RestClient {
39
39
  * @memberof IdmsRestClient
40
40
  */
41
41
  processError(original) {
42
- original.msg = "CA IDMS REST API Error:\n" + original.msg;
42
+ original.msg = "IDMS REST API Error:\n" + original.msg;
43
43
  let details = original.causeErrors;
44
44
  try {
45
45
  const json = JSON.parse(details);
@@ -1 +1 @@
1
- {"version":3,"file":"IdmsRestClient.js","sourceRoot":"","sources":["../../src/util/IdmsRestClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;;;AAEF,iDAAmF;AAEnF,MAAa,cAAe,SAAQ,uBAAU;IAC1C;;;OAGG;IACH,IAAW,GAAG;QACV,OAAO,mBAAM,CAAC,YAAY,EAAE,CAAC;IACjC,CAAC;IAED;;;;;OAKG;IACO,YAAY,CAAC,QAA0B;QAC7C,QAAQ,CAAC,GAAG,GAAG,2BAA2B,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC1D,IAAI,OAAO,GAAG,QAAQ,CAAC,WAAW,CAAC;QAEnC,IAAI;YACA,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACjC,4EAA4E;YAC5E,kCAAkC;YAClC,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;gBACpB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kDAAkD;oBAC7D,wDAAwD,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,C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AC,CAAC;gBACpG,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,yBAAyB;aAC/C;YAED,uEAAuE;YACvE,OAAO,GAAG,sBAAS,CAAC,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;SAC1D;QAAC,OAAO,CAAC,EAAE;YACR,wDAAwD;YACxD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mGAAmG,CAAC,CAAC;SACvH;QAED,QAAQ,CAAC,GAAG,IAAI,IAAI,GAAG,OAAO,CAAC,CAAC,kDAAkD;QAClF,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AAxCD,wCAwCC"}
package/package.json CHANGED
@@ -1,118 +1,122 @@
1
1
  {
2
- "name": "@broadcom/idms-for-zowe-cli",
3
- "version": "1.0.1",
4
- "description": "IDMS plug-in for Zowe CLI",
5
- "homepage": "https://github.gwd.broadcom.net/MFD/idms-cli#readme",
6
- "bugs": {
7
- "url": "https://github.gwd.broadcom.net/MFD/idms-cli/issues"
8
- },
9
- "keywords": [
10
- "zowe",
11
- "cli",
12
- "idms",
13
- "plugin"
2
+ "name": "@broadcom/idms-for-zowe-cli",
3
+ "version": "1.1.0",
4
+ "description": "IDMS plug-in for Zowe CLI",
5
+ "homepage": "https://github.gwd.broadcom.net/MFD/idms-cli#readme",
6
+ "bugs": {
7
+ "url": "https://github.gwd.broadcom.net/MFD/idms-cli/issues"
8
+ },
9
+ "keywords": [
10
+ "zowe",
11
+ "cli",
12
+ "idms",
13
+ "plugin"
14
+ ],
15
+ "repository": "",
16
+ "publishConfig": {
17
+ "registry": "https://registry.npmjs.org/"
18
+ },
19
+ "main": "lib/index.js",
20
+ "files": [
21
+ "lib"
22
+ ],
23
+ "scripts": {
24
+ "build": "node scripts/updateLicense.js && tsc --pretty && npm run checkTestsCompile",
25
+ "checkTestsCompile": "echo \"Checking that test source compiles...\" && tsc --project __tests__/test-tsconfig.json --noEmit ",
26
+ "prebuild": "npm run clean && npm run lint && echo Using TypeScript && tsc --version",
27
+ "clean": "rimraf lib",
28
+ "watch": "tsc --pretty --watch",
29
+ "prepublishOnly": "echo Look up for the output of prepublishOnly",
30
+ "lint": "eslint \"src/**/*.ts\"",
31
+ "test": "npm run test:unit && npm run test:integration && npm run test:system",
32
+ "test:system": "env-cmd -f __tests__/__resources__/env/system.env jest .*/__system__/.* --coverage false",
33
+ "test:integration": "env-cmd -f __tests__/__resources__/env/integration.env jest .*/__integration__/.* --coverage false",
34
+ "test:unit": "env-cmd -f __tests__/__resources__/env/unit.env jest --coverage --testPathIgnorePatterns \".*/__system__|__integration__/.*\"",
35
+ "installPlugin": "npm install && npm run clean && npm run build && zowe plugins install ."
36
+ },
37
+ "imperative": {
38
+ "configurationModule": "lib/imperative.js"
39
+ },
40
+ "peerDependencies": {
41
+ "@zowe/imperative": "^5.7.6"
42
+ },
43
+ "devDependencies": {
44
+ "@types/fs-extra": "^11.0.0",
45
+ "@types/jest": "^27.5.2",
46
+ "@types/node": "^18.11.18",
47
+ "@types/yargs": "17.0.19",
48
+ "@typescript-eslint/eslint-plugin": "^5.48.1",
49
+ "@typescript-eslint/parser": "^5.48.1",
50
+ "@zowe/cli": "^7.10.4",
51
+ "@zowe/imperative": "^5.8.3",
52
+ "env-cmd": "^10.1.0",
53
+ "eslint": "^8.31.0",
54
+ "eslint-plugin-jest": "^27.2.1",
55
+ "fs-extra": "^11.1.0",
56
+ "glob": "^8.0.3",
57
+ "jest": "^27.5.1",
58
+ "jest-cli": "^27.5.1",
59
+ "jest-environment-node": "^27.5.1",
60
+ "jest-environment-node-debug": "^2.0.0",
61
+ "jest-html-reporter": "^3.7.0",
62
+ "jest-junit": "^15.0.0",
63
+ "jest-stare": "^2.4.1",
64
+ "rimraf": "^3.0.2",
65
+ "shebang-regex": "^3.0.0",
66
+ "ts-jest": "^27.1.5",
67
+ "ts-node": "^10.9.1",
68
+ "typedoc": "^0.23.24",
69
+ "typescript": "^4.9.4",
70
+ "uuid": "^9.0.0"
71
+ },
72
+ "jest": {
73
+ "modulePathIgnorePatterns": [
74
+ "__tests__/__snapshots__/"
14
75
  ],
15
- "repository": "",
16
- "publishConfig": {
17
- "registry": "https://registry.npmjs.org/"
76
+ "testResultsProcessor": "jest-stare",
77
+ "transform": {
78
+ ".(ts)": "ts-jest"
18
79
  },
19
- "main": "lib/index.js",
20
- "files": [
21
- "lib"
80
+ "testRegex": "(test|spec)\\.ts$",
81
+ "moduleFileExtensions": [
82
+ "ts",
83
+ "js"
22
84
  ],
23
- "scripts": {
24
- "build": "node scripts/updateLicense.js && tsc --pretty && npm run checkTestsCompile",
25
- "checkTestsCompile": "echo \"Checking that test source compiles...\" && tsc --project __tests__/test-tsconfig.json --noEmit ",
26
- "prebuild": "npm run clean && npm run lint && echo Using TypeScript && tsc --version",
27
- "clean": "rimraf lib",
28
- "watch": "tsc --pretty --watch",
29
- "prepublishOnly": "npm run build",
30
- "lint": "tslint \"src/**/*.ts\"",
31
- "test": "npm run test:unit && npm run test:integration && npm run test:system",
32
- "test:system": "env-cmd __tests__/__resources__/env/system.env jest .*/__system__/.* --coverage false",
33
- "test:integration": "env-cmd __tests__/__resources__/env/integration.env jest .*/__integration__/.* --coverage false",
34
- "test:unit": "env-cmd __tests__/__resources__/env/unit.env jest --coverage --testPathIgnorePatterns \".*/__system__|__integration__/.*\"",
35
- "installPlugin": "npm install && npm run clean && npm run build && zowe plugins install ."
36
- },
37
- "imperative": {
38
- "configurationModule": "lib/imperative.js"
39
- },
40
- "peerDependencies": {
41
- "@zowe/cli": "^6.0.0",
42
- "@zowe/imperative": "^4.2.1"
43
- },
44
- "devDependencies": {
45
- "@types/fs-extra": "^8.0.0",
46
- "@types/jest": "^22.2.3",
47
- "@types/node": "^8.0.0",
48
- "@types/yargs": "8.0.2",
49
- "@zowe/cli": "^6.24.5",
50
- "@zowe/imperative": "^4.9.0",
51
- "env-cmd": "^8.0.2",
52
- "fs-extra": "^5.0.0",
53
- "jest": "^25.5.4",
54
- "jest-cli": "^25.5.4",
55
- "jest-environment-node": "^25.5.0",
56
- "jest-environment-node-debug": "^2.0.0",
57
- "jest-html-reporter": "^2.2.0",
58
- "jest-junit": "^3.6.0",
59
- "jest-stare": "^1.0.5",
60
- "rimraf": "^2.7.1",
61
- "ts-jest": "^26.4.1",
62
- "ts-node": "^3.2.0",
63
- "tslint": "^5.0.0",
64
- "typedoc": "^0.15.0",
65
- "typescript": "^3.8.0",
66
- "uuid": "^3.2.1"
67
- },
68
- "jest": {
69
- "modulePathIgnorePatterns": [
70
- "__tests__/__snapshots__/"
71
- ],
72
- "testResultsProcessor": "jest-stare",
73
- "transform": {
74
- ".(ts)": "ts-jest"
75
- },
76
- "testRegex": "(test|spec)\\.ts$",
77
- "moduleFileExtensions": [
78
- "ts",
79
- "js"
80
- ],
81
- "testPathIgnorePatterns": [
82
- "<rootDir>/__tests__/__results__"
83
- ],
84
- "testEnvironment": "node",
85
- "collectCoverageFrom": [
86
- "src/**/*.ts",
87
- "!**/__tests__/**",
88
- "!**/index.ts",
89
- "!**/main.ts"
90
- ],
91
- "collectCoverage": false,
92
- "coverageReporters": [
93
- "json",
94
- "lcov",
95
- "text",
96
- "cobertura"
97
- ],
98
- "coverageDirectory": "<rootDir>/__tests__/__results__/unit/coverage"
99
- },
100
- "jest-stare": {
101
- "resultDir": "__tests__/__results__/unit/jest-stare",
102
- "additionalResultsProcessors": [
103
- "jest-junit",
104
- "jest-html-reporter"
105
- ],
106
- "coverageLink": "../coverage/lcov-report/index.html"
107
- },
108
- "jest-junit": {
109
- "output": "__tests__/__results__/junit.xml"
110
- },
111
- "jest-html-reporter": {
112
- "pageTitle": "Zowe CLI Sample Plugin Test Results",
113
- "outputPath": "__tests__/__results__/results.html",
114
- "includeFailureMsg": true
115
- },
116
- "author": "Darkside",
117
- "license": "EPL-2.0"
85
+ "testPathIgnorePatterns": [
86
+ "<rootDir>/__tests__/__results__"
87
+ ],
88
+ "testEnvironment": "node",
89
+ "collectCoverageFrom": [
90
+ "src/**/*.ts",
91
+ "!**/__tests__/**",
92
+ "!**/index.ts",
93
+ "!**/main.ts"
94
+ ],
95
+ "collectCoverage": false,
96
+ "coverageReporters": [
97
+ "json",
98
+ "lcov",
99
+ "text",
100
+ "cobertura"
101
+ ],
102
+ "coverageDirectory": "<rootDir>/__tests__/__results__/unit/coverage"
103
+ },
104
+ "jest-stare": {
105
+ "resultDir": "__tests__/__results__/unit/jest-stare",
106
+ "additionalResultsProcessors": [
107
+ "jest-junit",
108
+ "jest-html-reporter"
109
+ ],
110
+ "coverageLink": "../coverage/lcov-report/index.html"
111
+ },
112
+ "jest-junit": {
113
+ "output": "__tests__/__results__/junit.xml"
114
+ },
115
+ "jest-html-reporter": {
116
+ "pageTitle": "Zowe CLI Sample Plugin Test Results",
117
+ "outputPath": "__tests__/__results__/results.html",
118
+ "includeFailureMsg": true
119
+ },
120
+ "author": "Broadcom",
121
+ "license": "SEE LICENSE IN LICENSE"
118
122
  }
package/CHANGELOG.md DELETED
@@ -1,16 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to the Zowe CLI package will be documented in this file.
4
-
5
- ## Recent Changes
6
-
7
- - Updated UserTasks and TransactionDetails naming in endpoint definition to correct install bug on *nix systems
8
-
9
- ## `1.0.0`
10
-
11
- - Remove overrides config from imperative config
12
-
13
- ## `0.0.1`
14
-
15
- - Initial release
16
-