{"id":18304623,"url":"https://github.com/numtel/meteor-lazy-bundles","last_synced_at":"2026-03-12T19:14:22.713Z","repository":{"id":32975557,"uuid":"36597653","full_name":"numtel/meteor-lazy-bundles","owner":"numtel","description":"Create bundles for lazy-loading components, optionally with authentication","archived":false,"fork":false,"pushed_at":"2015-11-25T02:31:14.000Z","size":11,"stargazers_count":29,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T15:35:35.388Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/numtel.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}},"created_at":"2015-05-31T10:11:42.000Z","updated_at":"2020-07-19T05:36:43.000Z","dependencies_parsed_at":"2022-08-07T19:16:00.951Z","dependency_job_id":null,"html_url":"https://github.com/numtel/meteor-lazy-bundles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/numtel/meteor-lazy-bundles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-lazy-bundles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-lazy-bundles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-lazy-bundles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-lazy-bundles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numtel","download_url":"https://codeload.github.com/numtel/meteor-lazy-bundles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-lazy-bundles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30439658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-05T15:29:38.914Z","updated_at":"2026-03-12T19:14:22.686Z","avatar_url":"https://github.com/numtel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# numtel:lazy-bundles [![Build Status](https://travis-ci.org/numtel/meteor-lazy-bundles.svg?branch=master)](https://travis-ci.org/numtel/meteor-lazy-bundles)\n\nBy default, Meteor does not perform any special handling on files placed inside the `public` and `private` directories of your application.\n\nWith this package, you can place `xxx.publicbundles.json` or `xxx.privatebundles.json` files in your application directory with a description of bundles of source files to process for client-side lazy-loading.\n\nSource files will be transpiled and collected into a single `.js` and `.css` file for each bundle.\n\n\u003e This package supersedes [`numtel:publicsources`](https://github.com/numtel/meteor-publicsources) and [`numtel:privatesources`](https://github.com/numtel/meteor-privatesources).\n\n## Installation\n\n```\nmeteor add numtel:lazy-bundles\n```\n\n## Public Bundle Descriptions\n\nInside of a `xxx.publicbundles.json` file in the root of your application, you may describe bundles of source files to serve to the client. The filename may be different than `xxx.publicbundles.json` as long as it includes the extension `.publicbundles.json`. (e.g. `myapp.publicbundles.json` is also valid)\n\nFilenames specified inside of each bundle are relative to the application's `public` directory.\n\nThe following example will serve `admin.js`, `admin.js.map`, `admin.css`, and `admin.css.map`:\n\n```javascript\n{\n  \"admin\": [ \n    \"admin/templates.html\",\n    \"admin/styles.less\",\n    \"admin/main.coffee\"\n  ]\n}\n```\n\n* Listed filenames may be glob patterns in order to include multiple files without manually specifying each filename, as defined by [`glob` NPM package](https://github.com/isaacs/node-glob). See [`test/test-glob.publicbundles.json`](test/test-glob.publicbundles.json) for an example using a glob.\n* Bundle names may contain slashes to simulate a directory path\n* `.html` files are automatically sorted to the beginning of a bundle but other template filetypes are not. Be sure to include template files like `.jade` first in the bundle so that subsequent scripts will have access to apply helpers, events and handlers.\n\n## Private Bundle Descriptions\n\nPrivate bundles may be specified exactly the same as public bundles except with the `.privatebundles.json` extension.\n\nFilenames specified inside of each private bundle are relative to the application's `private` directory.\n\nTo obtain asset data directly from your application's server code, you may use the built-in method, `Assets.getText()`. Otherwise, load the files using the provided `iron:router` plugin described below.\n\n## Minified Output\n\nFor production output, bundles may be minified using the available setting.\n\nSee [`test/test-minified.publicbundles.json`](test/test-minified.publicbundles.json) for a minified bundle example.\n\n## Iron Router integration\n\nCombine with the [`miro:preloader` package](https://github.com/MiroHibler/meteor-preloader) to dynamically load the bundled `.js` and `.css` files when browsing to a route\n\n```javascript\n// Route example using miro:preloader\nRouter.route('/', function () {\n  this.render('hello');\n}, {\n  controller: 'PreloadController',\n  preload: {\n    styles: 'hello.css',\n    sync: 'hello.js'\n  }\n});\n```\n\n### Private bundle authentication plugin\n\nPrivate bundles can be loaded on the client using the provided `iron:router` plugin.\n\nSee [`test/server/router.js`](test/server/router.js) for an example of how to configure the authentication plugin.\n\n## Notes\n\n* If adding a new source handler package (e.g. `mquandalle:jade`), you must restart Meteor for this package to recognize the change.\n* If using a glob, Meteor must be restarted to search for new/deleted files.\n\n## Test application\n\nTest cases for this package are not executed using the normal `meteor test-packages` command. Instead, start the Meteor app inside of the `test` directory and see the results in the console.\n\n```bash\n$ git clone https://github.com/numtel/meteor-lazy-bundles\n\n$ cd meteor-lazy-bundles/test\n\n# Test results will be output to the console\n$ meteor\n```\n\nTest cases are described in [`test/server/index.js`](test/server/index.js).\n\n## License\n\nMIT\n\nPortions copyright Maxime Quandalle @mquandalle\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtel%2Fmeteor-lazy-bundles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumtel%2Fmeteor-lazy-bundles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtel%2Fmeteor-lazy-bundles/lists"}