Skip to content

Commit

Permalink
feat:added snippet for pipe
Browse files Browse the repository at this point in the history
added link to @wbhob's profile'
  • Loading branch information
ashinzekene committed Oct 16, 2018
1 parent bf89094 commit dd3bdbd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 4,18 @@ All notable changes to the "nestjs" extension will be documented in this file.

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

<a name="1.1.0"></a>

## 1.1.0 - 16-08-2018

- added snippet for pipes

<a name="1.0.0"></a>

## 1.0.0

- New Naming convention
- Thanks to @wbhob for the more efficient naming convention
- Thanks to [@wbhob](https://github.com/wbhob) for the more efficient naming convention

<a name="0.3.0"></a>

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 37,7 @@ Nest Provider | n-provider | NestJS
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 |

## Installation

Expand All @@ -58,9 59,7 @@ Contributions are highly welcome

## Release Notes

## 1.0.0
## 1.1.0 - 16-08-2018

- New Naming convention
- Thanks to @wbhob for the more efficient naming convention
- added snippet for pipes


5 changes: 3 additions & 2 deletions scripts/README-TEMPLATE2.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 18,7 @@ Contributions are highly welcome

## Release Notes

## 0.3.0
## 1.1.0 - 16-08-2018

- added snippet for pipes

- Added snippets for v5!!!
14 changes: 14 additions & 0 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,5 290,19 @@
"\t}",
"}"
]
},
"Nest Pipe": {
"prefix": "n-pipe",
"description": "NestJS Pipe",
"body": [
"import { PipeTransform, Injectable, ArgumentMetadata } from '@nestjs/common';",
"",
"@Injectable()",
"export class ${1:Validation}Pipe implements PipeTransform {",
" transform(value: any, metadata: ArgumentMetadata) {",
" return ${0:value};",
" }",
"}"
]
}
}

1 comment on commit dd3bdbd

@wbhob
Copy link
Contributor

@wbhob wbhob commented on dd3bdbd Oct 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thank you for the mention 😄

Please sign in to comment.