routest-to-swagger v0.0.1
installation
npm install routest-to-swagger --save-devusage
command line
$ routest-to-swagger --aws --glob 'spec/routes/*.js' --output build/swagger.jsonin package.json file
"scripts": {
"build:swagger": "routest-to-swagger --aws --glob 'spec/routes/*.js' --output build/swagger.json"
}the --aws flag
the --aws flag is optional. AWS has some ridiculous restrictions on how variables can be
named within a path. If you are using this to upload a swagger file to AWS, add this flag.
development notes
the build is included in the repo because I cannot figure out how to make postinstall work with babel.
As such, this project must be built before the version updates will be meaningful. Below are the scripts
that can be used to build the project
tldr
npm run build:cleanbuilding
build the whole project
npm run buildremove the project's previous build and then build the whole project
npm run build:cleanremove the project's previous build
npm run cleanbuild the lib directory
npm run build:libremove the build's previous lib directory and then re-build the lib
npm run build:lib:cleanremove the build's previous lib directory
npm run cleanbuild the bin directory
npm run build:binremove the build's previous bin directory and then re-build the bin
npm run build:bin:cleanremove the build's previous bin directory
npm run clean9 years ago