A Workflow that runs on pull requests and diffs any api changes based on
openapi.json file in project's root directory.
- To start developing, two processes must be running in parallel
npm install
npm run package:watch:local # This compiles ts files and watches for changes
npm run dev:nodemon # This starts a local development server on localhost:5050- In local development environment, source code is configured to get...
- base branch's openapi info from
.local/examples/openapi-base.json - HEAD's openapi info from
.local/examples/openapi-head.json
- base branch's openapi info from
- Make a directory as follows and add
openapi-base.json,openapi-head.jsonof your choice for development.- These files MUST be openapi V3-compatible.
(project root)...
.local
examples
openapi-base.json
openapi-head.json
...
- Go to http://localhost:5050 on your browser and start developing.
- All compiled and bundled js files must be commited together in the repository
under
dist/directory. - To format, lint, test, package sources run
npm run allThis Workflow was generated by using actions/typescript-action