Giter VIP home page Giter VIP logo

love-ts's Introduction

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");

love-ts's People

Contributors

hazzard993 avatar juanvillacortac avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.