Skip to content

pavittarx/moleculer-snippets

master
Switch branches/tags
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.
    1. Make sure you have Intellisense enabled in vscode.
    2. 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?

  1. Fork & Clone this repo & open it in vscode

git clone https://github.com/pavittarx/moleculer-snippets.json

  1. Edit JSON snippet files in snippets/.
  2. Add your own snippets, make sure to follow the pattern used in earlier snippets. Refactor, into new files if needed.
  3. Test your snippets by pressing F5.
  4. 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

About

vscode extension that provides snippets support for moleculerjs microservices framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published