{"id":13805424,"url":"https://github.com/duizendnegen/ember-cli-lazy-load","last_synced_at":"2025-09-14T13:09:55.016Z","repository":{"id":57223338,"uuid":"49583996","full_name":"duizendnegen/ember-cli-lazy-load","owner":"duizendnegen","description":"Support lazily loading your Ember app via splitting it up into Bundles","archived":false,"fork":false,"pushed_at":"2020-09-12T13:48:42.000Z","size":69,"stargazers_count":42,"open_issues_count":8,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-04T17:33:56.043Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duizendnegen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-13T15:52:20.000Z","updated_at":"2023-04-21T16:42:21.000Z","dependencies_parsed_at":"2022-08-24T15:41:45.820Z","dependency_job_id":null,"html_url":"https://github.com/duizendnegen/ember-cli-lazy-load","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/duizendnegen/ember-cli-lazy-load","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duizendnegen%2Fember-cli-lazy-load","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duizendnegen%2Fember-cli-lazy-load/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duizendnegen%2Fember-cli-lazy-load/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duizendnegen%2Fember-cli-lazy-load/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duizendnegen","download_url":"https://codeload.github.com/duizendnegen/ember-cli-lazy-load/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duizendnegen%2Fember-cli-lazy-load/sbom","scorecard":{"id":359403,"data":{"date":"2025-08-11","repo":{"name":"github.com/duizendnegen/ember-cli-lazy-load","commit":"c4e45fb73134ab3fa29c358a6eee61dec30f9fed"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 3/25 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T10:24:12.495Z","repository_id":57223338,"created_at":"2025-08-18T10:24:12.495Z","updated_at":"2025-08-18T10:24:12.495Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275108417,"owners_count":25406858,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-08-04T01:01:01.012Z","updated_at":"2025-09-14T13:09:54.967Z","avatar_url":"https://github.com/duizendnegen.png","language":"JavaScript","funding_links":[],"categories":["Packages"],"sub_categories":["Code Splitting"],"readme":"# Ember-cli-lazy-load\n\nEmber Cli Lazy Load supports lazily loading your Ember application, by splitting the app up into bundles. It comes with [a dummy app](https://github.com/duizendnegen/ember-cli-lazy-load/tree/master/tests/dummy) that implements a basic lazy loading scenario.\n\nRequirements: `ember-cli` \u003e= 2.3.0\nFor `ember-cli` == 2.2.0, use release `0.2.2`.\n\nWhenever [ember-engines](https://github.com/dgeb/ember-engines) land their version of lazy loading, this add-on will be deprecated.\n\n## Installation\n\n* `ember install ember-cli-lazy-load`\n\n## Getting started\n\n#### 1. Configure your bundles in `config/bundles.js`\n\n```javascript\n\nindex: {\n  //Minisearch file patterns for the content of the bundle\n  files: [\n    \"**/templates/index.js\",\n    \"**/controllers/index.js\",\n    \"**/components/my-cat/**.js\"\n  ],\n\n  //The name of the routes if you are using the lazy-route mixin, no minisearch expressions are allowed here.\n  routes: [\"index\", \"...\"]\n  //The dependencies for this bundle. They will loaded in the same batch as the actual bundle\n  //The dependencies have to be loaded prior to the dependent bundles.\n  dependencies: [\"about\"],\n},\nabout: {\n  files: [\n    \"**/templates/about.js\",\n    \"**/controllers/about.js\",\n    \"**/components/my-item/**.js\"\n  ],\n  routes: [\"about\", \"more routes for this bundle \"]\n}\n```\n\n\n\n#### 2. Modify `config/environment.js` to include the bundle files\n\n```javascript\nvar bundles = require(\"./bundles\");\nmodule.exports = function(environment) {\n  var ENV = {\n    bundles: bundles(environment),\n```\n\n#### 3. Modify your `ember-cli-build.js` to use the custom bundle build flow.\n\n```javascript\nvar EmberApp = require(\"ember-cli-lazy-load/ember-app\");\nvar bundles = require(\"./config/bundles\")();\n\nmodule.exports = function(defaults) {\n  var app = new EmberApp(defaults, {\n    // Add options here\n    bundles: bundles\n  }\n```\n\n#### 4. Add Mixin to your routes\n\n```javascript\n\nimport Ember from \"ember\";\nimport LazyRouteMixin from 'ember-cli-lazy-load/mixins/lazy-route';\n\nexport default Ember.Route.extend(LazyRouteMixin, {});\n\n```\n\nif you already override `beforeModel`, ensure that you execute and await the super call:\n\n```javascript\nimport Ember from \"ember\";\nimport LazyRouteMixin from 'ember-cli-lazy-load/mixins/lazy-route';\n\nexport default Ember.Route.extend(LazyRouteMixin,{\n  beforeModel: function(transition, queryParams){\n      return this._super(transition,queryParams).then(()=\u003e{\n        // do the other beforeModel operations\n      });\n    }\n});\n```\n\n## Running\n\n* `ember server`\n* Visit your app at http://localhost:4200.\n\n## Running Tests\n\n* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)\n* `ember test`\n* `ember test --server`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduizendnegen%2Fember-cli-lazy-load","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduizendnegen%2Fember-cli-lazy-load","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduizendnegen%2Fember-cli-lazy-load/lists"}