Awesome
vscode-nestjs-snippets
<p align="center"> <a title="License MIT" href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-brightgreen.svg" alt="License MIT" /></a> <a title="Version" href="https://marketplace.visualstudio.com/items?itemName=ashinzekene.nestjs"><img src="https://vsmarketplacebadge.apphb.com/version-short/ashinzekene.nestjs.svg" alt="Version" /></a> <a title="Installs" href="https://marketplace.visualstudio.com/items?itemName=ashinzekene.nestjs"><img src="https://vsmarketplacebadge.apphb.com/installs/ashinzekene.nestjs.svg" alt="Installs" /></a> <a title="Ratings" href="https://marketplace.visualstudio.com/items?itemName=ashinzekene.nestjs"><img src="https://vsmarketplacebadge.apphb.com/rating/ashinzekene.nestjs.svg" alt="Ratings" /></a> </p> <p align="center"> <img src="https://github.com/ashinzekene/vscode-nestjs-snippets/blob/master/nestjs.jpg?raw=true" alt="NESTJS" /> <h1 align="center">NESTJS SNIPPETS FOR VSCODE</h1> <p align="center">This extension adds snippets for working with nestjs in Vscode</p> </p>Screenshot
Usage
Snippet | Prefix | Purpose |
---|---|---|
Nest Controller | n-controller | NestJS Controller |
Nest v4 Middlware | n-v4-middleware | NestJS Middleware Version 4 |
Nest v4 Module | n-v4-module | NestJS Module v4 |
Nest Root Module | n-module-root | NestJS Root Module |
Nest NestModule | n-module-nest | NestJS Module Implementing NestModule |
Nest Mongoose Service | n-mongoose-service | NestJS Service for Mongoose |
Nest Mongoose Interface | n-mongoose-interface | NestJS Interface for mongoose |
Nest Unit Test | n-test | NestJS Unit Test |
Nest Service Unit Test | n-test-service | NestJS Service Unit Test |
Nest Sequelize Entity | n-sequelize-entity | NestJS Sequelize Entity |
Nest Sequelize Provider | n-sequelize-provider | NestJS Sequelize Provider |
Nest Sequelize Database Provider | n-sequelize-database-provider | NestJS Sequelize Provider |
Nest Interceptor | n-interceptor | NestJS Interceptor |
Nest Guard | n-guard | NestJS Guard |
Nest Provider | n-provider | NestJS Provider |
Nest Module | n-module | NestJS Module |
Nest Global Module | n-module-global | NestJS Global Module |
Nest Middleware | n-middleware | NestJS Middleware |
Nest Pipe | n-pipe | NestJS Pipe |
Nest TypeORM Entity | n-typeorm-entity | NestJS TypeORM Entity |
Nest TypeORM Repository | n-typeorm-repository | NestJS TypeORM Repository |
Installation
- Install Visual Studio Code 1.10.0 or higher
- Launch Code
- From the command palette
Ctrl
-Shift
-P
(Windows, Linux) orCmd
-Shift
-P
(OSX) - Select
Install Extension
- Choose the extension
- Reload Visual Studio Code
OR
- Type
Ctrl
-Shift
-P
(Windows, Linux) orCmd
-Shift
-P
(OSX) - Type
ext install ashinzekene.nestjs
Contributing
Contributions are highly welcome
Release Notes
1.3.0 - 04-03-2020
-
added snippet for service unit test Thanks to @lupu60