Ts.ED Helper
VSCode extension to quickly generate Ts.ED controllers by simply right-clicking your project folders.
Features
Requirements
Visual Studio Code 1.59.0+
Configuration Settings
{
"configuration": {
"lang": "ts",
"filename": "Server",
"naming": "lower+dot"
},
"controllers": {
"async": true,
"active": {
"getAll": true,
"getOne": true,
"delete": true,
"patch": true,
"put": true,
"post": true
}
},
"middlewares": {
"addToServerConfig": true
},
"services": {
"injectable": true
}
}
configuration
lang
- Language extension, default ts
filename
- Server configuration filename, default Server
naming
- Naming style, can combine (lower|upper)+dot - example lower+dot would produce a controller named Name.controller.ts
whereas upper would produce NameController.ts
, default lower+dot
controllers
async
- Generate async methods with promises if true, default true
active
- Generate methods or disable individually, all default true
middlewares
addToServerConfig
- If true, add generated middleware path to server config componentsScan, default true
services
injectable
- Add injectable decorators to generated services, default true
Known Issues
None currently
Release Notes
1.1.0
- Middleware generation commands
- Middleware configuration options
- General configuration options for naming, language etc
1.0.1
- Logo updated, badge added
1.0.0
- Initial release of ts-ed-helper
Enjoy!