new VMScriptObj()
VMScript Object.
- Source:
Methods
-
parse(file_path)
-
Reads the file contents and runs it in this context using node.js's vm.
This is intended to be used internally. Can parse json and js files.
Runs a jshint if there is a problem loading the file.Parameters:
Name Type Description file_pathString | Path The file path.
- Source:
-
vms(name, depends, callback)
-
Exposes function to global scope for registering dependencies.
Parameters:
Name Type Description nameString The name of this vmscript.
dependsString | Array Dependencies.
callbackfunction Call Back function to execute when dependencies are met.
- Source:
-
watch(file_path, opts)
-
Function used to watch the file or directory for changes.
Parameters:
Name Type Description file_pathString | Path The file path.
optsObject Options.
- Source: