Skip to content

Instantly share code, notes, and snippets.

@iksena
Created January 16, 2021 17:15
Show Gist options
  • Save iksena/f5780a2f51f2ccfdaa5699d4182b032d to your computer and use it in GitHub Desktop.
Save iksena/f5780a2f51f2ccfdaa5699d4182b032d to your computer and use it in GitHub Desktop.
yo microservice with compose route
const Generator = require('yeoman-generator');
class MicroserviceGenerator extends Generator {
// ...constructor
initializing() {
this.composeWith(require.resolve('../route'));
}
// ...other tasks
}
module.exports = MicroserviceGenerator;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment