Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 986 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 986 Bytes

viz-fluent-commands

Small node module for building tcp commands for VizRT's scripting interface in Viz Engine fluently (experimental).

##Considerations Based on the wiki article the approach for fluent interfaces in JavaScript could be to use prototype inheritance. In general an object method returns a reference to itself to allow for cascaded method calls.

Testing

Started setting up a test environment based on mocha. Used in Visual Studio Code by creating a new task in my launch.json (setup in VS Code):

{
	"name": "Run mocha tests",
	"type": "node",
	"program": "C:/Users/Rajko/AppData/Roaming/npm/node_modules/mocha/bin/_mocha",
	"stopOnEntry": false,
	"args": ["test/**/*.js"],
	"cwd": ".",
	"runtimeExecutable": null,
	"env": {
		"NODE_ENV": "production"	
	},
	"sourceMaps": false,
	"outDir": "test/"
}