docs: custom module nativeRequire
This commit is contained in:
parent
b1ed680335
commit
471929b476
4 changed files with 10 additions and 2 deletions
|
|
@ -1,10 +1,13 @@
|
|||
# Changelog
|
||||
|
||||
## 1.7.9
|
||||
## 1.8.0
|
||||
|
||||
- bug fixes
|
||||
- project tree: layout issue with deeply nested widgets
|
||||
|
||||
- custom module
|
||||
- add `nativeRequire` function (allows loading native node modules or locally installed moduled)
|
||||
|
||||
## 1.7.8
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ The **server** can be configured with many options, either from a terminal or wi
|
|||
|
||||
Path to a custom module file (.js).
|
||||
|
||||
**WARNING:** custom module can access the file system, use at your own risk.
|
||||
|
||||
|
||||
!!! quote ""
|
||||
#### `port`
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@
|
|||
- Project tree: toggle project tree's visibility
|
||||
- Inspector: toggle inspector's visibility
|
||||
- Relative units (%): when enabled, newly created widgets will have their position and size set in percents.
|
||||
- Console
|
||||
- Enable: toggle console's state
|
||||
- Clear console: remove logged messages from the console
|
||||
- Fullscreen: toggle fullscreen
|
||||
- Prevent sleep (mobile only): attempt to prevent device from going to sleep when idle
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ module.exports = {
|
|||
return fs.existsSync(arg) ? true : 'State file not found: ' + arg
|
||||
}
|
||||
},
|
||||
'c': {alias: 'custom-module', type: 'string', file: {name: 'OSC Custom module (.js)', extensions: ['js']}, describe: 'custom module file to load (.js)',
|
||||
'c': {alias: 'custom-module', type: 'string', file: {name: 'OSC Custom module (.js)', extensions: ['js']}, describe: 'custom module file to load (.js)\n WARNING: custom module can access the file system, use at your own risk.',
|
||||
check: (arg)=>{
|
||||
return fs.existsSync(arg) ? true : 'Custom module file not found: ' + arg
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue