This is the Grunt frontend for the Socko-framework. It works mostly identical to the Socko-CLI application working on directories and files. You might read the introduction there first to get an overview of SOCKO's features.
Install the plugin using
npm install grunt-socko --save-dev
In your Gruntfile.js, load the tasks of the plugin by adding the line
Now you're equipped with a "socko" task, that you can configure and run using the usual Grunt features.
The plugin does not work with the usual Grunt files-options as it specifically requires one input, one output and one node. You can configure those in the options object of your task configuration:
socko:nodeA:options:input: "basic"output: "output.basic"node: "nodeA"nodeB:options:input: "basic"output: "output.basic"node: "nodeA:nodeB"
The following options are required:
For other options, please see the API documentation of the SockoOptionsInterface
Please see the notes from the CLI about the breaking changes between SOCKO! 1 and 2