Skip to content

A tool for managing TypeScript LOVE 2D projects

Notifications You must be signed in to change notification settings

hazzard993/love-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LOVE TS

A command line tool to manage and release LÖVE 2D TypeScript projects.

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

Features

  • One command to start a project. (love-ts start or love-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)
  • 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)
  • 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.

Creating a Project

love-ts init
love-ts init --typings

Running a Project

love-ts start
love-ts .
love-ts /path/to/project

Watching a Project

love-ts watch

Releasing a Project

love-ts release
love-ts release --library

Resources

Resource files should be placed into the res/ folder.

  res/
+   image.png
  src/
    main.ts

main.ts

love.graphics.newImage("res/image.png");