1.3.6 • Published 12 months ago

tsoa-workers v1.3.6

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

tsoa-workers

This is a lib is to make it possible to run the fantastic TSOA-library in Cloudflare workers.

To avoid any node dependencies ensure that you import @tsoa/runtime in your routes rather than tsoa

After a bit of misunderstanding the only thing needed to add is to a new handlebars-template.

Examples

Check out the examples folder for how to set up a project using tsoa-workers. The only change needed compared to vanilla tsoa is just a single line in the tsoa.json-file to switch the middleware template:

{
  "entryFile": "src/app.ts",
  "noImplicitAdditionalProperties": "throw-on-extras",
  "controllerPathGlobs": ["src/**/*Controller.ts"],
  "spec": {
    "outputDirectory": "build",
    "specVersion": 3,
  },
  "routes": {
    "routesDir": "build",
    "middlewareTemplate": "node_modules/tsoa-workers/cloudworker-router.hbs"

  }
}
1.3.6

12 months ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago