{"id":18304606,"url":"https://github.com/numtel/meteor-publicsources","last_synced_at":"2025-04-05T15:31:21.750Z","repository":{"id":26131792,"uuid":"29576703","full_name":"numtel/meteor-publicsources","owner":"numtel","description":"Create bundles in public directory for lazy-loading components","archived":false,"fork":false,"pushed_at":"2015-06-02T20:09:04.000Z","size":181,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-04T07:51:20.376Z","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-01-21T07:08:39.000Z","updated_at":"2023-05-08T19:47:36.000Z","dependencies_parsed_at":"2022-08-25T18:21:33.932Z","dependency_job_id":null,"html_url":"https://github.com/numtel/meteor-publicsources","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/numtel%2Fmeteor-publicsources","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-publicsources/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-publicsources/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/numtel%2Fmeteor-publicsources/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/numtel","download_url":"https://codeload.github.com/numtel/meteor-publicsources/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247358662,"owners_count":20926266,"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-05T15:29:33.610Z","updated_at":"2025-04-05T15:31:20.958Z","avatar_url":"https://github.com/numtel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# numtel:publicsources\n\n## Notice\n\n**:new: This package has been made obsolete by the new [`numtel:lazy-bundles` package](https://github.com/numtel/meteor-lazy-bundles).**\n\nBy default, Meteor does not perform any special handling on files placed inside the `public` directory of your application.\n\nWith this package, you can place a `custom.publicsources.json` file 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\nSee [a full application example](https://github.com/numtel/meteor-component-example)...\n\n## Installation\n\n```\nmeteor add numtel:publicsources\n```\n\n## Bundle Description Syntax\n\nInside of a `custom.publicsources.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 `custom.publicsources.json` as long as it includes the extension `.publicsources.json`. (e.g. `myapp.publicsources.json` is also valid)\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* Filenames presented are relative to the `public` directory. Files may also be loaded from the `private` directory (e.g. `../private/somefile.js`)\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## Usage\n\nCombine with a library loader integrated into `iron:router` for the full experience:\n\n* [miro:preloader](https://github.com/MiroHibler/meteor-preloader) - Library for loading `.js` and `.css` files when browsing to a route\n* [manuelschoebel:wait-on-lib](https://github.com/DerMambo/wait-on-lib) - Simple library for loading `.js` files on browsing to a route\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\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 status in the browser.\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-publicsources","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnumtel%2Fmeteor-publicsources","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnumtel%2Fmeteor-publicsources/lists"}