{"id":19986173,"url":"https://github.com/fuse-box/fuse-box-aurelia-loader","last_synced_at":"2025-07-22T20:35:16.052Z","repository":{"id":46759766,"uuid":"81938690","full_name":"fuse-box/fuse-box-aurelia-loader","owner":"fuse-box","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-07T08:58:52.000Z","size":1655,"stargazers_count":14,"open_issues_count":5,"forks_count":2,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-07-06T16:04:03.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fuse-box.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":"2017-02-14T11:29:52.000Z","updated_at":"2019-02-05T03:38:33.000Z","dependencies_parsed_at":"2023-01-24T15:31:03.791Z","dependency_job_id":null,"html_url":"https://github.com/fuse-box/fuse-box-aurelia-loader","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/fuse-box/fuse-box-aurelia-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuse-box%2Ffuse-box-aurelia-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuse-box%2Ffuse-box-aurelia-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuse-box%2Ffuse-box-aurelia-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuse-box%2Ffuse-box-aurelia-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuse-box","download_url":"https://codeload.github.com/fuse-box/fuse-box-aurelia-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuse-box%2Ffuse-box-aurelia-loader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266567870,"owners_count":23949432,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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-11-13T04:28:14.484Z","updated_at":"2025-07-22T20:35:16.023Z","avatar_url":"https://github.com/fuse-box.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fuse-box-aurelia-loader\n\n\n### Note\n\nSome features of Fusebox can not be used with this Aurelia loader\n * [rollup](http://fuse-box.org/page/rollup)\n * [quantum](http://fuse-box.org/page/quantum)\n * [code splitting](http://fuse-box.org/page/code-splitting)\n\nSome of these might get added later, feel free to make PR to make these work.\n\n\n### How to install\n```npm install fuse-box-aurelia-loader```\n\n\n### How to use\n\n```javascript\n\n// optional..\n// activate logging (when aurelia developmentLogging is used)\n// have this as optional, since it prints out a lot.\nwindow.FUSEBOX_AURELIA_LOADER_LOGGING = true; \n\n\n//These can also be set by using the \"EnvPlugin\" in fuse build setup\n// EnvPlugin({ \n//    FB_AU_LOG: false,\n//})\n\n// TIP: If you are having issues check console for FuseBox.import(\"process\").env to make sure it set\n// See \"autoLoadAureliaLoaders\" in next code block in injecting during bundle\n\n\n\n// The next 2 import statements can be replaced by plugin in your fuse build setup\n// See \"autoLoadAureliaLoaders\" in next code block\n// add custom loader for fuse\nimport 'fuse-box-aurelia-loader';\n// start aurelia bootstrapper\nimport 'aurelia-bootstrapper';\n\n\n// aurelia configuration\nexport function configure(aurelia) {\n  aurelia.use\n    .standardConfiguration()\n    .developmentLogging()\n\n  aurelia.start().then(() =\u003e aurelia.setRoot());\n}\n```\n\n\n### Plugin sample\nSimple auto load plugin to inject the loaders\n\n```javascript\nvar autoLoadAureliaLoaders =function() {\n    var loader = function(){}\n    loader.prototype.init = function(context) {}\n    loader.prototype.bundleEnd = function(context) {\n        context.source.addContent(`FuseBox.import(\"fuse-box-aurelia-loader\")`);\n        context.source.addContent(`FuseBox.import(\"aurelia-bootstrapper\")`);\n    }\n    return new loader();\n}\n```\n\nWant browser to refresh when u make edits? (important!!! need hmr() and cache(true) on app bundle)\n``` javascript\nvar autoReload = function (production) {\n    var autoReload = function () {}\n    autoReload.prototype.init = function () { }\n    autoReload.prototype.bundleEnd = function () {\n        context.source.addContent(`\n            const customizedHMRPlugin = {\n                hmrUpdate: ({ type, path, content }) =\u003e {\n                    console.log(\"reload plugin trigger\")\n                        location.reload();\n                        return true;\n                }\n            }\n            console.log(\"adding reload plugin\")\n            if(!window.addedPlug){\n                console.log(\"added reload plugin\")\n                window.addedPlug = true;\n                FuseBox.addPlugin(customizedHMRPlugin);\n            }\n            `);\n    }\n    return new autoReload(production);\n}\n\n```\n\n\n### How to develop/improve loader\n * run `node setup` to to npm install in root and sample folder\n * run `gulp watch` to start sample\n * run `gulp build` to create new build\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuse-box%2Ffuse-box-aurelia-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuse-box%2Ffuse-box-aurelia-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuse-box%2Ffuse-box-aurelia-loader/lists"}