It looks like this is the way to go. These instructions however fail as cheerful as these on a debian 8. I am a bit lost? Example when trying to run ./mw-ocg-service.js -c localsettings.js :
/.../w/extensions/Collection/OfflineContentGenerator/lib/cli.js:33 config = require(configFile)(config) || config; ^ TypeError: object is not a function at Object.exports.parseConfig (/.../w/extensions/Collection/OfflineContentGenerator/lib/cli.js:33:31) at Object.<anonymous> (/.../w/extensions/Collection/OfflineContentGenerator/mw-ocg-service.js:46:18) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:906:3
I guess it will be nice to use this instead of mwlib since I believe that a lot of effort has been put into this software.
I have added a more verbose version on how I got here at this spot.