{"id":26062378,"url":"https://github.com/work-design/engine","last_synced_at":"2025-07-27T14:45:26.625Z","repository":{"id":37347773,"uuid":"186091452","full_name":"work-design/engine","owner":"work-design","description":"Work Design 业务组件集","archived":false,"fork":false,"pushed_at":"2025-07-22T08:57:55.000Z","size":1150,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T10:43:26.866Z","etag":null,"topics":["design","engine","work"],"latest_commit_sha":null,"homepage":"","language":null,"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/work-design.png","metadata":{"funding":{"github":["qinmingyuan"]},"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,"zenodo":null}},"created_at":"2019-05-11T05:23:47.000Z","updated_at":"2025-07-22T08:57:59.000Z","dependencies_parsed_at":"2023-10-16T18:57:01.583Z","dependency_job_id":"426cd94f-f1f3-4f01-ae8a-a9f1666af4f4","html_url":"https://github.com/work-design/engine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/work-design/engine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Fengine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Fengine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Fengine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Fengine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/work-design","download_url":"https://codeload.github.com/work-design/engine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Fengine/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267372525,"owners_count":24076787,"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-27T02:00:11.917Z","response_time":82,"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":["design","engine","work"],"created_at":"2025-03-08T15:59:44.042Z","updated_at":"2025-07-27T14:45:26.535Z","avatar_url":"https://github.com/work-design.png","language":null,"funding_links":["https://github.com/sponsors/qinmingyuan"],"categories":[],"sub_categories":[],"readme":"# Rails Engine 组件\n\n## [组件列表](https://work.design/price)\n\n\n## 新增一个组件\n\n* 从 0 开始新增一个 engine:\n  * `rails plugin new --full rails_xxx`\n  * 进入 rails_xxx 目录\n    * `git init`\n    * `git submodule add git@github.com:work-design/dummy.git test/dummy`\n* 在 .gitmodules 加入配置信息：\n  1. `git submodule add git@github.com:work-design/rails_xxx.git rails_xxx`\n  2. `git submodule absorbgitdirs rails_xxx`\n\n* 进入 rails_xxx, 执行 git checkout master\n\n## 使用\n\n更新子模块(engine)\n\n* 第一次初始化项目\n```\ngit clone git@github.com:work-design/engine.git\ngit submodule update --init\ngit submodule foreach git checkout main\n```\n\n* 后续更新项目\n```\ngit pull\ngit submodule update --rebase(或--merge) \n```\n\n* 更新每个engine(子项目)\n```shell\ngit submodule update --init --recursive\ngit submodule update --rebase --recursive\n```\n\n## engine 加载顺序\n在gemfile靠后的engine的model常量会先加载； \n\n\n## 其他\nbundle config local.rails_xxx ~/your_main_project_path/engine_path/rails_xxx\n\nBUNDLE_DISABLE_LOCAL_BRANCH_CHECK: \"true\"\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwork-design%2Fengine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwork-design%2Fengine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwork-design%2Fengine/lists"}