@scifeon/sdk 0.92.0 → 0.94.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.
@@ -18,7 +18,7 @@ const webpack_runner_1 = require("../../webpack-runner");
18
18
  class BuildCommand {
19
19
  execute(options) {
20
20
  return __awaiter(this, void 0, void 0, function* () {
21
- if (!fs.existsSync(config_1.config.wwwDir)) {
21
+ if (!fs.existsSync(config_1.config.wwwDir) || (options === null || options === void 0 ? void 0 : options.branch)) {
22
22
  let branch = "";
23
23
  if (options === null || options === void 0 ? void 0 : options.branch) {
24
24
  branch = `-${options.branch}`;
package/dist/cli/index.js CHANGED
@@ -69,7 +69,7 @@ class ScifeonCLI {
69
69
  .option("--branch <branch>", "Platform branch to use for SDK types.")
70
70
  .allowUnknownOption()
71
71
  .description("Build the App into the folder /build.\n")
72
- .action((filename, options, command) => __awaiter(this, void 0, void 0, function* () { return new build_1.BuildCommand().execute(options); }));
72
+ .action((options) => __awaiter(this, void 0, void 0, function* () { return new build_1.BuildCommand().execute(options); }));
73
73
  this.program
74
74
  .command("clean")
75
75
  .description("Remove the /build-folder.\n")
@@ -79,7 +79,7 @@ class ScifeonCLI {
79
79
  .allowUnknownOption()
80
80
  .option("--disable-browser-launch", "Don't launch http://localhost:5000 in the default browser.")
81
81
  .description("Starts Scifeon development version and builds App with watch-mode.\n")
82
- .action((filename, options, command) => __awaiter(this, void 0, void 0, function* () {
82
+ .action((options) => __awaiter(this, void 0, void 0, function* () {
83
83
  return new debug_1.DebugCommand()
84
84
  .execute(options.disableBrowserLaunch !== undefined && options.disableBrowserLaunch);
85
85
  }));
@@ -106,7 +106,7 @@ class ScifeonCLI {
106
106
  .option("--html-report")
107
107
  .option("--dir <dir>")
108
108
  .description("Run all unit-tests located in the /test/unit-folder.\n")
109
- .action((filename, options, command) => new unit_test_1.TestCommand().execute(options));
109
+ .action(options => new unit_test_1.TestCommand().execute(options));
110
110
  this.program
111
111
  .command("e2e-test")
112
112
  .option("--url <url>", "URL for the scifeon instance to test", "http://localhost:5000")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scifeon/sdk",
3
- "version": "0.92.0",
3
+ "version": "0.94.0",
4
4
  "description": "A tool for developing Apps for Scifeon.",
5
5
  "author": {
6
6
  "name": "Scifeon",