{"id":18665383,"url":"https://github.com/robertklep/homey-app-bundler","last_synced_at":"2025-06-12T21:33:56.568Z","repository":{"id":142182107,"uuid":"568378934","full_name":"robertklep/homey-app-bundler","owner":"robertklep","description":"Bundle Homey apps before `homey app run` to dramatically decrease installation times.","archived":false,"fork":false,"pushed_at":"2022-11-20T12:09:18.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-15T02:43:04.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertklep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-11-20T10:56:51.000Z","updated_at":"2022-11-20T11:18:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"c8ea629a-2f5a-4c9e-b840-c66ddeaf6253","html_url":"https://github.com/robertklep/homey-app-bundler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertklep%2Fhomey-app-bundler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertklep%2Fhomey-app-bundler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertklep%2Fhomey-app-bundler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertklep%2Fhomey-app-bundler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertklep","download_url":"https://codeload.github.com/robertklep/homey-app-bundler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239492679,"owners_count":19647994,"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":[],"created_at":"2024-11-07T08:27:27.339Z","updated_at":"2025-02-18T14:50:11.181Z","avatar_url":"https://github.com/robertklep.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Homey App Bundler\n\nA shell script for Homey app developers to dramatically decrease installation times (the time it takes for `homey app run` to transfer and install the app on your Homey) by bundling all its resources into a single file.\n\n## Prerequisites\n\nDepends on [`@vercel/ncc`](https://github.com/vercel/ncc), which should be installed globally:\n```\n$ npm i -g @vercel/ncc\n```\n\n## Installation\n\nDownload the `homey-app-bundle` script and copy it to somewhere in your `$PATH`. Make sure it's executable:\n```\n$ chmod 755 /path/to/homey-app-bundle\n```\n\n## How to use\n\nInstead of using `homey app run`, use `homey-app-bundle`\n\n## What it does\n\nThe script creates a temporary directory to where it copies all app files, _except `node_modules` and `.homeybuild`_. It then runs `ncc` to bundle your `app.js` file including all its dependencies into a single file. Lastly, it will run `homey app run` from inside the temporary directory. Once you stop the app, the temporary directory will be removed automatically.\n\nThe script should not change anything in your local app directory.\n\n## Disclaimer\n\nOnly tested on a _very_ limited subset of apps, so it will likely not work with all apps (especially SDKv2 apps are problematic at the moment). YMMV.\n\nKnown issues:\n* apps that load requirements (using `require()`) in `api.js` will fail unless those requirements are also used in/from the main `app.js`\n* the use of modules like `require-all` will very likely cause the bundler not to work\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertklep%2Fhomey-app-bundler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertklep%2Fhomey-app-bundler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertklep%2Fhomey-app-bundler/lists"}