{"id":21485189,"url":"https://github.com/liutian/ivy-generator","last_synced_at":"2026-05-12T23:33:40.254Z","repository":{"id":74206832,"uuid":"222349156","full_name":"liutian/ivy-generator","owner":"liutian","description":"Bypassing Angular compilers and generating Angular Ivy code directly through commands API","archived":false,"fork":false,"pushed_at":"2023-10-11T00:25:41.000Z","size":198,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T09:49:50.530Z","etag":null,"topics":["angular","angular-ivy","angular9"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liutian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-11-18T02:42:23.000Z","updated_at":"2020-02-18T05:51:32.000Z","dependencies_parsed_at":"2025-01-23T19:24:10.662Z","dependency_job_id":"ba2f4406-4457-4641-9ce1-b3fcb48d43b7","html_url":"https://github.com/liutian/ivy-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liutian/ivy-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liutian%2Fivy-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liutian%2Fivy-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liutian%2Fivy-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liutian%2Fivy-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liutian","download_url":"https://codeload.github.com/liutian/ivy-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liutian%2Fivy-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32961784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"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":["angular","angular-ivy","angular9"],"created_at":"2024-11-23T13:14:25.593Z","updated_at":"2026-05-12T23:33:40.239Z","avatar_url":"https://github.com/liutian.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IvyGenerator\n\n通过命令式api描述Angular组件，不需要依赖编译器直接生成Ivy代码，适合可视化搭建管理型页面的场景\n\u003e 注意该项目属于底层实现，需要你关注很多底层细节\n\n## Usage\n[more](./projects/ivy-generator/ivy.md)\n\n## Demo\n\nnpm start\n\u003e 请查阅 `src/app/app.component.ts`\n\n## hello world\n```\n// 生成ivy代码所需Angular API的引用集合\n(\u003cany\u003ewindow).gc_apis = apis;\n\n// 组件中使用到的所有指令，管道和子组件集合\nconst directiveMap = new Map();\nconst pipeMap = new Map();\nconst componentMap = new Map();\n\n// 工厂类初始化\nconst factory = new CodeFactory(componentMap, directiveMap, pipeMap);\n\n// 组件描述\nconst helloWorldComponentDef = new ComponentDef('div', [\n  new TextNode('hello world')\n]);\n\n// 生成ivy代码\nconst componentDef = factory._createComponent(helloWorldComponentDef);\n\nconsole.log('Ivy Code: \\n\\n' + helloWorldComponent._sourceCodes);\n\n// 将组件呈现在页面上\nconst componentFactory = this.componentFactoryResolver.resolveComponentFactory(componentDef);\nthis.viewContainerRef.createComponent(componentFactory);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliutian%2Fivy-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliutian%2Fivy-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliutian%2Fivy-generator/lists"}