Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pavittarx/moleculer-snippets

vscode extension that provides snippets support for moleculerjs microservices framework
https://github.com/pavittarx/moleculer-snippets

Last synced: 19 days ago
JSON representation

vscode extension that provides snippets support for moleculerjs microservices framework

Awesome Lists containing this project

README

        

# Moleculer Snippets
VScode snippets for moleculer microservices framework.

## Installation
Search for `Moleculer Snippets` in vscode extensions or simply [click here](https://marketplace.visualstudio.com/items?itemName=pavittarx.moleculer-snippets)

## How to use
Type "mol" in any Javascript or Typescript file and you may see all the available snippets. [Read More](https://moleculer.services)

* 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](https://github.com/pavittarx/moleculer-snippets) & Create a PR.

### How to contribute?
1. Fork & Clone this repo & open it in vscode
> git clone https://github.com/pavittarx/moleculer-snippets.json

2. Edit JSON snippet files in `snippets/`.
3. Add your own snippets, make sure to follow the pattern used in earlier snippets. Refactor, into new files if needed.
4. Test your snippets by pressing `F5`.
5. 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](https://github.com/pavittarx)
* or you can also Buy me a [coffee](https://www.buymeacoffee.com/pavittarx).

## Author
[@pavittarx](https://github.com/pavittarx)

## License
MIT