$ npm install pinoccio-arduino-compilenode module for compiling sketches for pinccio using the arduino ide from the command line
you can use this to just generate a hex file to flash later or build and upload a hex file immediatly
var build = require('pinoccio-arduino-compile');
var output = build("path to ino",{
arduino:"path to arduino executable",
firmware:"path to checkout of https://github.com/pinoccio/firmware-pinoccio",
},function(err,data){
console.log(err);
/*
data is an object with
{
id:the build directory name. reuse this value for incremental recompile,
hex: the path to the generated hex file
}
*/
});
https://github.com/arduino/Arduino/blob/ide-1.5.x/build/shared/manpage.adoc