systemview 1.1.1 → 1.1.2

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/cli/index.js CHANGED
@@ -21,12 +21,17 @@ const { clear, debug } = flags;
21
21
  if (input.includes(`help`)) {
22
22
  cli.showHelp(0);
23
23
  }
24
- if (input.includes("start")) {
24
+ if (input[0] === "start") {
25
25
  // Start React app
26
- log("Launching SystemView UI...");
26
+ const arg = parseInt(input[1]);
27
+ const port = isNaN(arg) ? 3000 : arg;
28
+ const env = Object.create(process.env);
29
+ env.PORT = port;
30
+ log(`Launching SystemView UI @http://localhost:${port}/`);
27
31
  const reactAppProcess = spawn("npm", ["start"], {
28
- stdio: ["ignore", "ignore", "ignore"],
32
+ stdio: ["inherit"],
29
33
  shell: true,
34
+ env,
30
35
  });
31
36
 
32
37
  reactAppProcess.on("close", (code) => {
package/cli/utils/log.js CHANGED
@@ -2,8 +2,8 @@ const alert = require("cli-alerts");
2
2
 
3
3
  module.exports = (info) => {
4
4
  alert({
5
- type: `warning`,
6
- name: `DEBUG LOG`,
5
+ type: `info`,
6
+ name: `SystemView`,
7
7
  msg: ``,
8
8
  });
9
9
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "systemview",
3
3
  "description": "A documentation and testing suite for SystemLynx",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "license": "UNLICENSED",
6
6
  "bin": {
7
7
  "systemview": "cli/index.js"