{"id":15722651,"url":"https://github.com/ts-defold/tsd-template","last_synced_at":"2025-07-19T21:34:06.641Z","repository":{"id":37886058,"uuid":"302703940","full_name":"ts-defold/tsd-template","owner":"ts-defold","description":"Boilerplate TypeScript template with @ts-defold","archived":false,"fork":false,"pushed_at":"2025-06-08T15:22:07.000Z","size":375,"stargazers_count":18,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-08T16:27:01.185Z","etag":null,"topics":["defold","defold-game","game-development","lua","ts-defold-template","typescript"],"latest_commit_sha":null,"homepage":"https://ts-defold.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ts-defold.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-10-09T17:00:55.000Z","updated_at":"2025-06-08T15:22:11.000Z","dependencies_parsed_at":"2024-02-04T07:22:41.246Z","dependency_job_id":"b7c73032-3970-4703-bde5-fe1af4ba2d5c","html_url":"https://github.com/ts-defold/tsd-template","commit_stats":{"total_commits":110,"total_committers":5,"mean_commits":22.0,"dds":"0.24545454545454548","last_synced_commit":"226de3ea8bdf84f87fcffb5f826a012cc8e79865"},"previous_names":[],"tags_count":14,"template":true,"template_full_name":null,"purl":"pkg:github/ts-defold/tsd-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ts-defold%2Ftsd-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ts-defold%2Ftsd-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ts-defold%2Ftsd-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ts-defold%2Ftsd-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ts-defold","download_url":"https://codeload.github.com/ts-defold/tsd-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ts-defold%2Ftsd-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266019657,"owners_count":23864916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["defold","defold-game","game-development","lua","ts-defold-template","typescript"],"created_at":"2024-10-03T22:08:46.602Z","updated_at":"2025-07-19T21:34:06.618Z","avatar_url":"https://github.com/ts-defold.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Defold TypeScript Template (minimal)\n\n\u003ca href=\"https://discord.gg/eukcq5m\"\u003e\u003cimg alt=\"Chat with us!\" src=\"https://img.shields.io/discord/766898804896038942.svg?colorB=7581dc\u0026logo=discord\u0026logoColor=white\"\u003e\u003c/a\u003e\n\nA dev environment for [Defold](https://defold.com/) that transpiles TypeScript into lua using [TypeScriptToLua](https://github.com/TypeScriptToLua/TypeScriptToLua).\n\n## Features\n\n- Full Lua and Defold API type definitions for TypeScript auto-complete and type checking\n- Library of types for Defold extensions via `npm run resolve`\n- Eslint config for handling the caveats of TypeScriptToLua and keeping your code correct\n- Handles script, gui_script, and module exports using familiar ES6 export syntax\n- Full BoilerPlate game project ready to transpile and go\n- File watcher via `npm run dev` to transpile on save\n\n_Note that you will need to have [Node.js](https://nodejs.org) installed._\n\n## Quick Start\n\n- Use `npm run dev` to start a watcher that compiles and emits lua and script when you save\n- Use `npm run build` to just compile your ts, sans watcher\n\n## Installation\n\n1. Fork this template or use [degit](https://www.npmjs.com/package/degit) to download the template locally\n\n```bash\nnpx degit ts-defold/tsd-template my-game\n# or\ngit clone https://github.com/ts-defold/tsd-template.git my-game\n```\n\n2. Initialize\n\n```bash\ncd my-game\nnpm install\n```\n\n3. Generate\n\n```bash\nnpm run build # Transpile the TypeScript files to lua\n# or\nnpm run dev # Watch for changes and regenerate files on save\n```\n\n4. Code\n\n```\ncode .\n```\n\n5. Open `app/game.project` in Defold\n\n- Start making games with TypesScript!\n\n\u003cp align=\"center\" class=\"h4\"\u003e\n  TypeScript :heart: Defold\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fts-defold%2Ftsd-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fts-defold%2Ftsd-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fts-defold%2Ftsd-template/lists"}