1.0.1 • Published 7 years ago
openapi-crud-generator v1.0.1
openapi-crud-generator
Only supported flag currently is --print-template which will print the built-in template to the console and exit.
installation
npm i -g openapi-crud-generatorusage
openapi-crud-generator [--print-template]If there is a file in the directory that you run this command in called template.json, the tool will use this instead of the built-in one. You can use the --print-template option to get a copy of the built-in template which you can then tweak and save as template.json to use custom base templates. Check lib/buildTemplate.js to see what properties are overridden / set by this tool.
files
cli.jsis the main CLI entrypointlib/makeCrud.jsis responsible for collecting data from the userlib/buildTemplate.jsis responsible for augmenting the built-in template with data collected from the user