There might be several tasks that must be run for running sample, for example adding another plugin except io.jxcore.node or minifying css and js files... We could create gulpfile.js for each sample that will have task called "build". In samples package.json:
"scripts": {
"build": "gulp build"
}
So when running jxc --sample express_perf for example, it will execute npm build (that will start gulp build).