Usage in package.json
{
...,
"devDependencies" : {
"ci-common" : "npm:@coremail/ci-common",
}
...,
}
Sample task (run checkstyle & maven)
const {mvn, checkstyle, exit} = require('ci-common');
checkstyle(['.', '-x', '\\.git|\\.idea|node_modules|target']) || exit();
mvn(null, ['test']) || exit();