Skip to content

AndalYLP/rbxts-transformer-inline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


rbxts-transformer-inline

A debugging transformer, lets you get better debugging in roblox-ts

Npm package

 

Main Feature 🔥

automatically adds $file symbol to your logging methods.

log.Info("Hello world")
log.Info("src/sever/example.ts Hello world")
works with templates, variables and strings

Symbols

$line

get the line you are on.

const firstLine = $line

print(firstLine, $line)
local firstLine = 1

print(1, 3)

$column

get the column you are on.

you get the column from the start of the symbol
const column = $column

print(column, $column)
local column = 16

print(16, 15)

$file

get the file you are on.

const thisFile = $file

print(thisFile)
local thisFile = "src/sever/example.ts"

print(thisFile)

configuration

FileSymbolFormat [string]

lets you add some things to the transform result.

%l

add the line info: "%main:%l" -> src/server/example.ts:1

%c

add the column info: "%main:%c" -> src/server/example.ts:1

from the start of the $file symbol

%main

add the file info (you should always include this): %main -> src/server/example.ts

CustomLogger [object]

Enabled [boolean]

enables or disables this feature.

default: true

PackageName [string]

the name of the package for your logging class.

default: @rbxts/log

LogMethods [string[]]

the methods used to log messages within your logging class.

default: ["Verbose", "Debug", "Info", "Warn", "Error", "Fatal"]


Released under the MIT License.

MIT License

About

Transformer for Roblox Typescript compiler, get better logging.

Topics

Resources

License

Stars

Watchers

Forks

Contributors