@cccarv82/freya 2.3.10 → 2.3.12
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/bin/freya.js +8 -3
- package/cli/vis-network.min.js +34 -0
- package/cli/web-ui.js +102 -37
- package/cli/web.js +319 -26
- package/package.json +1 -1
package/bin/freya.js
CHANGED
|
@@ -8,12 +8,11 @@ const { cmdWeb } = require('../cli/web');
|
|
|
8
8
|
const DEFAULT_PORT = 3872;
|
|
9
9
|
|
|
10
10
|
function usage() {
|
|
11
|
-
return `
|
|
12
|
-
FREYA web
|
|
11
|
+
return `FREYA web
|
|
13
12
|
|
|
14
13
|
Usage:
|
|
15
14
|
freya [--port <n>] [--dir <path>] [--no-open] [--dev]
|
|
16
|
-
|
|
15
|
+
freya --version | -v
|
|
17
16
|
Options:
|
|
18
17
|
--port <n> Port to bind (default: ${DEFAULT_PORT})
|
|
19
18
|
--dir <path> Workspace directory (default: ./freya)
|
|
@@ -64,6 +63,12 @@ async function run(argv) {
|
|
|
64
63
|
return;
|
|
65
64
|
}
|
|
66
65
|
|
|
66
|
+
if (flags.has('--version') || flags.has('-v')) {
|
|
67
|
+
const pkg = require('../package.json');
|
|
68
|
+
process.stdout.write(`${pkg.version}\n`);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
|
|
67
72
|
if (positionals.length > 0) {
|
|
68
73
|
process.stderr.write(`Unknown arguments: ${positionals.join(' ')}\n`);
|
|
69
74
|
process.stdout.write(usage());
|