Requires LÖVE 2D, NPM (installed via Node.js) and Yarn.
love, npm and yarn should all be executable within a console.
LOVE TS is available via NPMJS.
yarn global add love-ts
Upon installation love-ts should now be available via the CLI.
love-ts help
- One command to start a project. (
love-ts startorlove-ts .)- Errors are traced back to their original TypeScript source files.
- One command to start, watch and dynamically update a running LÖVE 2D project with updating TypeScript code. (
love-ts watch) - Can initialize a skeleton project within a directory. (
love-ts init)- Can initialize an even smaller project with typing information only. (
love-ts init --typings)
- Can initialize an even smaller project with typing information only. (
- One command to bundle output Lua files, resources and even dependencies into an output .love file. (
love-ts release)- Can package projects as libraries for other projects. (
love-ts release --library)
- Can package projects as libraries for other projects. (
- Lua libraries can be installed to node_modules from GitHub and immediately be used in the project.
- Can type-check and run projects without installing their dependencies.
love-ts init
love-ts init --typingslove-ts start
love-ts .
love-ts /path/to/projectlove-ts watchlove-ts release
love-ts release --libraryResource files should be placed into the res/ folder.
res/
+ image.png
src/
main.tsmain.ts
love.graphics.newImage("res/image.png");