# engine **Repository Path**: xuling1979/engine ## Basic Information - **Project Name**: engine - **Description**: Work Design 组件列表 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-05-14 - **Last Updated**: 2022-05-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Rails Engine 组件 ## [组件列表](https://work.design/price) ## 新增一个组件 1. 在 .gitmodules 加入配置信息,如: ``` [submodule "rails_xxx"] path = rails_xxx url = git@github.com:work-design/rails_xxx.git ``` 2. `git submodule init rails_xxx` 3. `git submodule update rails_xxx` 4. 进入 rails_xxx, 执行 git checkout master ## 使用 更新子模块(engine) * 第一次初始化项目 ``` git submodule update --init ``` * 后续更新项目 ``` git pull git submodule update --rebase(或--merge) ``` * 更新每个engine(子项目) ```shell git submodule update --init --recursive git submodule update --rebase --recursive ``` ## engine 加载顺序 在gemfile靠后的engine的model常量会先加载;