@lvce-editor/server 0.121.19 → 0.121.21

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/README.md CHANGED
@@ -5,3 +5,15 @@ The server process is a nodejs process that
5
5
  - runs a static file server that serves the html, css and javascript to the browser
6
6
  - can accept WebSocket connections, it sends the WebSocket connection to `shared-process`
7
7
  - spawns the `shared-process`
8
+
9
+ The Electron CLI and desktop main process read persistent command-line arguments from `argv.json` in the application configuration directory. On Linux, this is `$XDG_CONFIG_HOME/lvce-oss/argv.json`, or `~/.config/lvce-oss/argv.json` when `XDG_CONFIG_HOME` is unset. Use JSONC and the same option names as the CLI, for example:
10
+
11
+ ```jsonc
12
+ {
13
+ "link": ["/path/to/extension", "/path/to/another extension"],
14
+ "asar": true,
15
+ "electron-version": "44.1.2"
16
+ }
17
+ ```
18
+
19
+ Configured values are applied before command-line arguments, so an explicit argument takes precedence. Set a boolean to `false` to leave a boolean option disabled. `--transient` uses isolated configuration and does not read the persistent file.
@@ -2,7 +2,7 @@ This project incorporates components from the projects listed below, that may ha
2
2
  differing from this project:
3
3
 
4
4
 
5
- 1) License Notice for static/3a09b45/icons (from https://github.com/microsoft/vscode-codicons)
5
+ 1) License Notice for static/3ce1cf7/icons (from https://github.com/microsoft/vscode-codicons)
6
6
  ---------------------------------------
7
7
 
8
8
  Attribution 4.0 International
@@ -402,7 +402,7 @@ public licenses.
402
402
  Creative Commons may be contacted at creativecommons.org.
403
403
 
404
404
 
405
- 2) License Notice for static/3a09b45/fonts/FiraCode-VariableFont.ttf (from https://github.com/tonsky/FiraCode)
405
+ 2) License Notice for static/3ce1cf7/fonts/FiraCode-VariableFont.ttf (from https://github.com/tonsky/FiraCode)
406
406
  ---------------------------------------
407
407
 
408
408
  Copyright (c) 2014, The Fira Code Project Authors (https://github.com/tonsky/FiraCode)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/server",
3
- "version": "0.121.19",
3
+ "version": "0.121.21",
4
4
  "description": "Run LVCE Editor as a server.",
5
5
  "main": "index.js",
6
6
  "bin": "bin/server.js",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@lvce-editor/jsonc-parser": "^1.5.2",
24
- "@lvce-editor/shared-process": "0.121.19",
25
- "@lvce-editor/static-server": "0.121.19"
24
+ "@lvce-editor/shared-process": "0.121.21",
25
+ "@lvce-editor/static-server": "0.121.21"
26
26
  }
27
27
  }
package/src/server.js CHANGED
@@ -13,8 +13,10 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
13
13
  const ROOT = resolve(__dirname, '../')
14
14
 
15
15
  const { argv, env } = process
16
- const configArguments = await ArgvConfig.load(ArgvConfig.getArgvConfigPath())
17
- ArgvConfig.prepend(argv, configArguments)
16
+ if (env.LVCE_ARGV_CONFIG_LOADED !== '1') {
17
+ const configArguments = await ArgvConfig.load(ArgvConfig.getArgvConfigPath())
18
+ ArgvConfig.prepend(argv, configArguments)
19
+ }
18
20
 
19
21
  // TODO pass argv to shared process instead of using environment variables / global variables
20
22
  const argvSliced = argv.slice(2)
@@ -78,7 +80,7 @@ const isStatic = (url) => {
78
80
  if (url === '/index.html' || url.startsWith('/index.html?')) {
79
81
  return !hasLinkedExtensions
80
82
  }
81
- if (url.startsWith('/3a09b45')) {
83
+ if (url.startsWith('/3ce1cf7')) {
82
84
  return true
83
85
  }
84
86
  if (url.startsWith('/favicon.ico')) {