{"id":16678457,"url":"https://github.com/2fd/system-smart","last_synced_at":"2025-10-10T20:02:28.908Z","repository":{"id":70247102,"uuid":"84269961","full_name":"2fd/system-smart","owner":"2fd","description":"Smart bundle for systemjs","archived":false,"fork":false,"pushed_at":"2017-03-08T07:03:00.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T07:13:44.238Z","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/2fd.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-08T02:38:33.000Z","updated_at":"2017-03-08T07:00:05.000Z","dependencies_parsed_at":"2023-05-09T20:00:40.935Z","dependency_job_id":null,"html_url":"https://github.com/2fd/system-smart","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/2fd/system-smart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2fd%2Fsystem-smart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2fd%2Fsystem-smart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2fd%2Fsystem-smart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2fd%2Fsystem-smart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/2fd","download_url":"https://codeload.github.com/2fd/system-smart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/2fd%2Fsystem-smart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273832745,"owners_count":25176267,"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-05T02:00:09.113Z","response_time":402,"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-10-12T13:29:22.158Z","updated_at":"2025-10-10T20:02:23.871Z","avatar_url":"https://github.com/2fd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# system-smart\n\n[![Build Status](https://travis-ci.org/2fd/system-smart.svg?branch=master)](https://travis-ci.org/2fd/system-smart)\n\nSmart bundle genrator for [systemjs/builder](https://github.com/systemjs/builder)\n\n\n## Use\n\nGenerate smart bundles\n\n```javascript\n\n    var Builder = require('systemjs-builder');\n    require('system-smart');\n\n    var builder = new Builder(/* ... */);\n\n    builder\n        .smart(['entrypoint-a.js', 'entrypoint-b.js' /* , 'other entrypoints'*/], './dist')\n        .then(result =\u003e {\n            // result =\n            [\n                { // entrypoint-a.js\n                    hash: '[SHA1]', // content hash\n                    name: '[SHA1].bundle.js', // output filename\n                    path: '/path/to/dist/[SHA1].bundle.js', // output dest\n                    source: '...',\n                    sourceMap: '...',\n                    modules: [ 'entrypoint-a.js', /* depencies */ ]\n                },\n                { // entrypoint-b.js\n                    hash: '[SHA1]', // content hash\n                    name: '[SHA1].bundle.js', // output filename\n                    path: '/path/to/dist/[SHA1].bundle.js', // output dest\n                    source: '...',\n                    sourceMap: '...',\n                    modules: [ 'entrypoint-b.js', /* depencies */ ]\n                },\n                { // Smart bundles\n                    hash: '[SHA1]', // content hash\n                    name: '[SHA1].bundle.js', // output filename\n                    path: '/path/to/dist/[SHA1].bundle.js', // output dest\n                    source: '...',\n                    sourceMap: '...',\n                    modules: [ /* commond depencies */ ]\n                },\n                // More smart bundles\n            ]\n        })\n```\n\nAdd bundles to systemjs configuration\n\n```javascript\n\n    javascript\n    SystemJS.config({\n        bundles: {\n            'dist/[SHA1].bundle.js': [ 'entrypoint-a.js', /* depencies */ ],\n            'dist/[SHA1].bundle.js': [ 'entrypoint-b.js', /* depencies */ ],\n            'dist/[SHA1].bundle.js': [ /* commond depencies */ ],\n            // [outputDir + result.name]: result.modules\n        }\n    });\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2fd%2Fsystem-smart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F2fd%2Fsystem-smart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F2fd%2Fsystem-smart/lists"}