Moleculer Snippets
VScode snippets for moleculer microservices framework.
Installation
Search for Moleculer Snippets in vscode extensions or simply click here
How to use
Type "mol" in any Javascript or Typescript file and you may see all the available snippets. Read More
- Try using
Alt+Space , if you don't see snippet suggestions.
- If you are unable to view the snippets after installing the extension.
- Make sure you have Intellisense enabled in vscode.
- Restart VSCode
Features
- Generate Configuration File
moleculer.config.js (Default, Clean & Minimal Versions)
- Services Snippets (Default, Clean & Minimal Versions)
- Insert Service Lifecycle hooks (For Minimal Version Services)
- Snippets for few Middleware functions. (Boilerplate, Emit, LocalAction, RemoteAction)
Known Issues
- Javascript Snippets are usable in typescript files, but no types have been added.
- There are more possible snippets. Please let me know, what other snippets would you prefer?
Contributions
Fork this repository & Create a PR.
How to contribute?
- Fork & Clone this repo & open it in vscode
git clone https://github.com/pavittarx/moleculer-snippets.json
- Edit JSON snippet files in
snippets/ .
- Add your own snippets, make sure to follow the pattern used in earlier snippets. Refactor, into new files if needed.
- Test your snippets by pressing
F5 .
- Push & Open a PR.include moleculer in prefixes & description.
Release Notes
2.0.0
- Refactoring Snippets into multiple files
- More descriptive snippets
Support
- Star this repository on Github
- or you can also Buy me a coffee.
Author
@pavittarx
License
MIT
| |