@titanium/turbo
Version:
🚀 Turbo is the awesome framework for turbo charging your Titanium cross-platform native mobile app development!
31 lines (27 loc) • 805 B
JavaScript
/* global process, fail */
// requires
const eslint = require('@seadub/danger-plugin-eslint').default;
const junit = require('@seadub/danger-plugin-junit').default;
const dependencies = require('@seadub/danger-plugin-dependencies').default;
async function main() {
await Promise.all([
eslint(),
junit({ pathToReport: './TEST-*.xml' }),
dependencies({ type: 'npm' }),
warnIfNoChangelog()
]);
}
main()
.then(() => process.exit(0))
.catch(err => {
fail(err.toString());
process.exit(1);
});
function warnIfNoChangelog() {
const changeLogEdited = danger.git.modified_files.includes('CHANGELOG.md');
if (!changeLogEdited) {
warn(
"Please ensure to add a changelog entry for your changes. Edit the `CHANGELOG.md` file and add your change under the `Unreleased items` header"
)
}
}