SkyAPI v2 is based on Open API Specification.
npm run build:release
All outputs go inside the dist/
folder:
npm run build:json
npm run build:yaml
npm run build:sdk
npm run build # all
npm run build:release # use this before publishing the module to NPM
- Add your lambda as
devDependency
in package.json - Add reference to your lambda in
spec/openapi.yml
- Execute
npm run build
A non Open API compliant v1 lambda can be added as follows:
- Add your lambda as separate template in
codegen/templates/
- Add your lambda as additional partial in
codegen/render.js
- Include your partial in
codegen/templates/main.js
- Execute
npm run build
Enable debug logs:
DEBUG=@skycatch/* node app.js