Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Primavera SnippetsNew to Visual Studio Code? Get it now.
Primavera Snippets

Primavera Snippets

aambertin

|
149 installs
| (0) | Free
Code snippets and generators for the Primavera framework.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

primavera-snippets README

Code snippets to leverage the Primavera framework and quickly build Node.js and serverless API's.

Features

"Full-file" snippets start with #. The following are available:

  • controller: create a new controller class, imports and sample methods included
  • middleware: create a new middleware class, imports and sample methods included
  • service: create a new service container class to group @Resolve methods, imports included
  • model: create a mongoose-decorators model class, imports included
  • injectable: create an @Injectable component class, imports included

"In-file" snippets start with @. The following are available:

  • controller: create just a basic controller class structure, no imports, no methods.
  • service: create a @Resolve methods
  • resolve: create a @ResolveWith method to dynamically invoke services
  • inject: create an @Inject CI resolver (in-memory)

Requirements

Your project needs to be using Primavera Framework... quite obviously. https://npm.com/package/primavera to get started.

For more information

  • Primavera Framework
  • Primavera Generator

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft