feng3d-cli 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,9 +9,15 @@
9
9
  使用 [Skills.sh](https://skills.sh/) 生态系统标准方式:
10
10
 
11
11
  ```bash
12
+ # macOS / Linux
12
13
  npx skills add feng3d-labs/feng3d-cli
14
+
15
+ # Windows (需要显式指定 agent)
16
+ npx skills add feng3d-labs/feng3d-cli --agent claude-code -g -y
13
17
  ```
14
18
 
19
+ > **Windows 用户注意**:由于 skills.sh 的环境检测问题,在 Windows 上需要添加 `--agent claude-code` 参数来显式指定代理类型。
20
+
15
21
  **为什么推荐?**
16
22
  - ✅ 生态系统标准方式
17
23
  - ✅ 自动索引和发现
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: "feng3d-cli"
3
3
  description: "Create and update feng3d projects with unified standards, including ESLint, TypeScript, Vite, GitHub Actions, and pre-commit hooks. Automate project setup and configuration management for feng3d development."
4
- version: "0.1.1"
4
+ version: "0.1.2"
5
5
  author: "feng"
6
6
  category: "Development"
7
7
  tags:
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feng3d",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "创建或更新符合 feng3d 规范的项目",
5
5
  "author": "feng",
6
6
  "commands": {
package/README.md CHANGED
@@ -31,9 +31,12 @@ feng3d-cli <command>
31
31
  如果你使用 Claude Code 或其他 AI 代理,推荐通过 [Skills.sh](https://skills.sh/) 安装:
32
32
 
33
33
  ```bash
34
- # 推荐:使用 Skills.sh 生态系统标准方式
34
+ # 推荐:使用 Skills.sh 生态系统标准方式(macOS / Linux)
35
35
  npx skills add feng3d-labs/feng3d-cli
36
36
 
37
+ # Windows 用户需要显式指定 agent
38
+ npx skills add feng3d-labs/feng3d-cli --agent claude-code -g -y
39
+
37
40
  # 或:使用 feng3d-cli 内置命令
38
41
  npx feng3d-cli skill
39
42
  ```
package/bin/cli.js CHANGED
@@ -40,12 +40,16 @@ program
40
40
  .command('update')
41
41
  .description('更新当前项目的规范配置')
42
42
  .option('-d, --directory <dir>', '项目目录', '.')
43
+ .option('--merge-strategy <strategy>', '合并策略: overwrite (覆盖), merge (合并, 默认), skip-existing (跳过已存在)', 'merge')
44
+ .option('--interactive', '交互式模式,逐个文件询问处理方式')
45
+ .option('--dry-run', '预览更改而不实际修改文件')
46
+ .option('--force', '强制覆盖已存在的配置文件(等同于 --merge-strategy overwrite)')
43
47
  .action(async (options) =>
44
48
  {
45
49
  console.log(chalk.blue('\n🔄 更新项目规范配置\n'));
46
50
  try
47
51
  {
48
- await updateProject(options.directory);
52
+ await updateProject(options);
49
53
  console.log(chalk.green('\n✅ 规范配置更新成功!\n'));
50
54
  }
51
55
  catch (error)
@@ -0,0 +1,5 @@
1
+ const __viteBrowserExternal = {};
2
+ export {
3
+ __viteBrowserExternal as default
4
+ };
5
+ //# sourceMappingURL=__vite-browser-external-2Ng8QIWW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"__vite-browser-external-2Ng8QIWW.js","sources":["../__vite-browser-external"],"sourcesContent":["export default {}"],"names":[],"mappings":"AAAA,MAAA,wBAAe,CAAA;"}