@sasjs/cli 6.4.8 → 6.6.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 (33) hide show
  1. package/README.md +1 -0
  2. package/build/commands/build/build.js +66 -29
  3. package/build/commands/build/buildDeployCommand.d.ts +6 -0
  4. package/build/commands/build/buildDeployCommand.js +120 -0
  5. package/build/commands/build/spec/build.spec.js +31 -1
  6. package/build/commands/build/spec/buildDeployCommand.spec.d.ts +1 -0
  7. package/build/commands/build/spec/buildDeployCommand.spec.js +234 -0
  8. package/build/commands/compile/compile.js +168 -33
  9. package/build/commands/compile/compileCommand.js +1 -1
  10. package/build/commands/compile/internal/checkCompileStatus.js +30 -11
  11. package/build/commands/compile/internal/compileFile.js +16 -7
  12. package/build/commands/compile/internal/compileManifest.d.ts +36 -0
  13. package/build/commands/compile/internal/compileManifest.js +610 -0
  14. package/build/commands/compile/internal/index.d.ts +2 -0
  15. package/build/commands/compile/internal/index.js +2 -0
  16. package/build/commands/compile/internal/passThrough.d.ts +12 -0
  17. package/build/commands/compile/internal/passThrough.js +17 -0
  18. package/build/commands/compile/internal/spec/compileTestFile.spec.js +9 -6
  19. package/build/commands/compile/spec/checkCompileStatus.spec.d.ts +1 -0
  20. package/build/commands/compile/spec/checkCompileStatus.spec.js +221 -0
  21. package/build/commands/compile/spec/compileCommand.spec.js +9 -2
  22. package/build/commands/compile/spec/compileManifest.spec.d.ts +1 -0
  23. package/build/commands/compile/spec/compileManifest.spec.js +401 -0
  24. package/build/commands/compile/spec/passThrough.spec.d.ts +1 -0
  25. package/build/commands/compile/spec/passThrough.spec.js +160 -0
  26. package/build/commands/deploy/spec/cbd.spec.js +11 -7
  27. package/build/commands/help/help.js +11 -0
  28. package/build/commands/testing/spec/testCommand.spec.js +12 -0
  29. package/build/commands/testing/spec/testing.spec.js +8 -2
  30. package/build/commands/testing/testCommand.js +3 -1
  31. package/build/types/command/commandAliases.js +2 -0
  32. package/build/types/command/commandFactory.js +2 -0
  33. package/package.json +1 -1
@@ -116,8 +116,11 @@ describe('sasjs test', function () {
116
116
  return [4 /*yield*/, copyTestFiles(target.name)];
117
117
  case 2:
118
118
  _a.sent();
119
- return [4 /*yield*/, (0, __1.build)(target)];
119
+ return [4 /*yield*/, (0, __1.compile)(target)];
120
120
  case 3:
121
+ _a.sent();
122
+ return [4 /*yield*/, (0, __1.build)(target)];
123
+ case 4:
121
124
  _a.sent();
122
125
  process.logger = new utils_1.Logger(utils_1.LogLevel.Off);
123
126
  return [2 /*return*/];
@@ -443,8 +446,11 @@ describe('sasjs test', function () {
443
446
  return [4 /*yield*/, copyTestFiles(target.name)];
444
447
  case 2:
445
448
  _a.sent();
446
- return [4 /*yield*/, (0, __1.build)(target)];
449
+ return [4 /*yield*/, (0, __1.compile)(target)];
447
450
  case 3:
451
+ _a.sent();
452
+ return [4 /*yield*/, (0, __1.build)(target)];
453
+ case 4:
448
454
  _a.sent();
449
455
  process.logger = new utils_1.Logger(utils_1.LogLevel.Off);
450
456
  return [2 /*return*/];
@@ -59,6 +59,7 @@ var test_1 = require("./test");
59
59
  var syntax = 'test [filteringString..]';
60
60
  var usage = 'Usage: sasjs test [filtering-strings..] --source <test-flow-path> --outDirectory <folder-path> --target <target-name> --force';
61
61
  var description = 'Triggers SAS unit tests.';
62
+ var aliases = ['t'];
62
63
  var examples = [
63
64
  {
64
65
  command: 'sasjs test jobs/standalone1 jobs/standalone2 --source <test-flow-path> --outDirectory <folder-path> --target <target-name> --force',
@@ -94,7 +95,8 @@ var TestCommand = /** @class */ (function (_super) {
94
95
  syntax: syntax,
95
96
  usage: usage,
96
97
  description: description,
97
- examples: examples
98
+ examples: examples,
99
+ aliases: aliases
98
100
  }) || this;
99
101
  }
100
102
  TestCommand.prototype.execute = function () {
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getAllSupportedAliases = exports.aliasMap = void 0;
4
4
  exports.aliasMap = new Map([
5
5
  ['build', ['b']],
6
+ ['builddeploy', ['bd']],
6
7
  ['compile', ['c']],
7
8
  ['compilebuild', ['cb']],
8
9
  ['compilebuilddeploy', ['cbd']],
@@ -12,6 +13,7 @@ exports.aliasMap = new Map([
12
13
  ['help', ['h']],
13
14
  ['request', ['rq']],
14
15
  ['run', ['r']],
16
+ ['test', ['t']],
15
17
  ['version', ['v', '-v', '--version']],
16
18
  ['web', ['w']]
17
19
  ]);
@@ -4,6 +4,7 @@ exports.getAllSupportedCommands = exports.commandFactory = void 0;
4
4
  var addCommand_1 = require("../../commands/add/addCommand");
5
5
  var authCommand_1 = require("../../commands/auth/authCommand");
6
6
  var buildCommand_1 = require("../../commands/build/buildCommand");
7
+ var buildDeployCommand_1 = require("../../commands/build/buildDeployCommand");
7
8
  var compileBuildCommand_1 = require("../../commands/build/compileBuildCommand");
8
9
  var compileCommand_1 = require("../../commands/compile/compileCommand");
9
10
  var contextCommand_1 = require("../../commands/context/contextCommand");
@@ -30,6 +31,7 @@ exports.commandFactory = new Map([
30
31
  ['add', function (args) { return new addCommand_1.AddCommand(args); }],
31
32
  ['auth', function (args) { return new authCommand_1.AuthCommand(args); }],
32
33
  ['build', function (args) { return new buildCommand_1.BuildCommand(args); }],
34
+ ['builddeploy', function (args) { return new buildDeployCommand_1.BuildDeployCommand(args); }],
33
35
  ['compile', function (args) { return new compileCommand_1.CompileCommand(args); }],
34
36
  ['compilebuild', function (args) { return new compileBuildCommand_1.CompileBuildCommand(args); }],
35
37
  [
package/package.json CHANGED
@@ -123,5 +123,5 @@
123
123
  "ws": "8.21.0",
124
124
  "nanoid": "3.3.18"
125
125
  },
126
- "version": "6.4.8"
126
+ "version": "6.6.0"
127
127
  }