This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Conditional Settings
Marcel Kloubert edited this page Jun 13, 2021
·
1 revision
Many settings support an if
property, which, when defined, executes (JavaScript) code to check if a condition matches or not, and decides if the underlying entry should be handled (or is available).
The following example, runs a npm install
on startup, only if node_modules
folder does not exist.
{
"ego.power-tools": {
"startup": [
{
"command": "npm install",
"if": " !$fs.existsSync( $v['workspaceRoot'] + '/node_modules' ) "
}
]
}
}
The complete list of functions, modules and constants, can be found at the Executable Settings page.
licensed under GDFL 1.3 - © Next.e.GO Mobile SE