A tool to generate things for Mymoid.
Managing services repositories. We want to create many services in mymoid, with many setups, dependencies ... The problem is keeping updated the stack to create new services from a scaffold project.
This allows you to generate a new service from a scaffold node or java.
This module is distributed via [npm][npm] which is bundled with [node][node] and
should be installed as one of your project's devDependencies
:
npm install -g mymo-cli
This module is a CLI. The good place for it is in your npm scripts.
{
"scripts": {
"generate": "mymo-cli generate"
}
}
This is currently the only available command. Below is a list of the available options (which are parsed with the amazing yargs):
The name of the service. This is the directory where mymoid-cli
clone the
scaffold project. mymoid-cli
create the npm package for you.
Posible values are: postgress or mongo. This options create a typeorm integration.
For external service integration.
Defaults to Entity
Replace entity name.
Defaults to mymoid pivate repository called mymoidapis-node-scaffold
. This is
where myomid-cli
will look for your scaffold project. Whatever you provide
will be resolved as relative to where you're executing the command
(process.cwd
).