This extension for Visual Studio Code adds snippets for HerbsJS.
Type the keywords in snippet e.g., "step" and press enter. Alternatively, one can also just press Ctrl+Space (Windows, Linux) or Cmd+Space (OSX) to access the available snippets in the editor.
Trigger | Content |
---|---|
uc→ |
Generate Herbs entire UseCase ... usecase("My use case definition", { ... |
step→ |
Create a Herbs step "Description of step": step( (ctx) => { return Ok() } ) |
ifstep→ |
Create a Herbs conditional Step "Description of conditional rule": ifElse( { |
usec→ |
Generate instantiation of Herbs Usecase with all available functions |
Trigger | Content |
---|---|
ent→ |
Generate entire Herbs entity entity('user', { prop: field(type) } ) |
fie→ |
Create a Herbs entity field name: field(type) |
fiev→ |
Create a Herbs entity field with validation params name: field(type, { validation: { presence: true } } } ) |
fjs→ |
Generate instantiation Herbs Entity Entity.fromJSON(params) |
Trigger | Content |
---|---|
spec→ |
Generate Aloe spec ... const spec = spec({... |
scenario→ |
Generate Aloe scenario ... 'Scenario name': scenario({... |
- Install Visual Studio Code
- Launch VS Code
- From the command palette Ctrl+Shift+P (Windows, Linux) or Cmd+Shift+P (OSX)
- Type ext install or just simply select Install Extension or access the marketplace link
- Choose the extension - Herbs Snippets
- Relaunch VS Code
- Add aloe snippets
- Return Ok Fix
- Update snippets
- Fix of the automatic deploy
- Fix of Gotu snippets
- Improve the documentation
- Initial release of Herbs Snippets
Enjoy!