create-extension
Create a new IceHRM extension by running the CLI scaffolding command from the cloud directory
来源信息
- 仓库
- gamonoid/icehrm
- 最近来源活动
- 2026年8月2日 09:53
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 726
- 分支
- 426
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- create-extension
- description
- Create a new IceHRM extension by running the CLI scaffolding command from the cloud directory
Create a new IceHRM extension using the CLI scaffolding tool.
The user should provide:
- **Extension name** — the name of the extension (e.g., `kudos`)
- **Type** — either `admin` or `user`
If the user hasn't specified both values, ask them before proceeding.
Run the following command from the `/` directory:
```bash
php ice create:extension <extension-name> <type>
```
For example, to create an admin extension called "kudos":
```bash
php ice create:extension kudos admin
```
After the command completes:
1. Confirm the extension was created by listing the generated files.
2. Add a build line to `obfuscate-js.sh` for the new extension:
```
gulp ejs --x<extension-name>/<type> -eprod
```
For example, for a `kudos` admin extension, add:
```
gulp ejs --xkudos/admin -eprod
```
Add the line before the `cd extensions/editor/...` block at the end of the file.
When removing an extension, also remove its corresponding `gulp ejs` line from `obfuscate-js.sh`.
在 GitHub 查看