Skip to content

Instantly share code, notes, and snippets.

@sebastianwahn
sebastianwahn / some.controller.ts
Created December 30, 2017 15:24
IntelliJ File template for NestJS
#set($parts=$NAME.split('\.') )
#set($rawClassName=$parts.get(0))
#set($firstRawClassNameLetter=$parts.get(0).charAt(0).toString())
#set($firstClassNameLetter=$parts.get(0).charAt(0).toString().toUpperCase())
#set($rawTypeName=$parts.get(1))
#set($firstRawTypeNameLetter=$parts.get(1).charAt(0).toString())
#set($firstTypeNameLetter=$parts.get(1).charAt(0).toString().toUpperCase())
#set($className=$parts.get(0).replaceFirst($firstRawClassNameLetter, $firstClassNameLetter))
#set($typeName=$parts.get(1).replaceFirst($firstRawTypeNameLetter, $firstTypeNameLetter))
@sebastianwahn
sebastianwahn / some.controller.ts
Created December 30, 2017 15:23
IntelliJ File template for NestJS (debug)
#set($parts=$NAME.split('\.') )
#set($rawClassName=$parts.get(0))
// ${rawClassName}
#set($firstRawClassNameLetter=$parts.get(0).charAt(0).toString())
// ${firstRawClassNameLetter}
#set($firstClassNameLetter=$parts.get(0).charAt(0).toString().toUpperCase())
// ${firstClassNameLetter}
#set($rawTypeName=$parts.get(1))