1.3.6 • Published 2 years ago

tsoa-workers v1.3.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago