UNPKG

@carlosbajo/roket-micro

Version:

framework para microservicios con google/pubsub

28 lines (20 loc) 583 B
const shell = require('shelljs'); /** * Adds mark check symbol */ if (!shell.which('git')) { shell.echo('Sorry, this script requires git'); shell.exit(1); } if (!shell.test('-e', 'internals/templates')) { shell.echo('The example is deleted already.'); shell.exit(1); } process.stdout.write('Cleanup started...'); // Commit the changes if (shell.exec('git add . --all && git commit -qm "Remove default example"').code !== 0) { shell.echo('\nError: Git commit failed'); shell.exit(1); } process.stdout.write(' ✓'); shell.echo('\nCleanup done. Happy Coding!!!');