Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: 应该忽略某些通用文件如 .gitkeep #6256

Closed
lanmingle opened this issue Sep 24, 2024 · 3 comments
Closed

[Feature]: 应该忽略某些通用文件如 .gitkeep #6256

lanmingle opened this issue Sep 24, 2024 · 3 comments
Assignees

Comments

@lanmingle
Copy link

这个功能解决了什么问题?

在 config/public/ 目录下添加了 .gitkeep 文件,生成了路由

{
  "routes": [
    {
      "urlPath": "/",
      "entryName": "main",
      "entryPath": "html/main/index.html",
      "isSPA": true,
      "isStream": false,
      "isSSR": false
    },
    {
      "urlPath": "/.gitkeep",
      "isSPA": true,
      "isSSR": false,
      "entryPath": "public/.gitkeep"
    }
  ]
}

你期望的 API 是什么样子的?

应该这样

{
  "routes": [
    {
      "urlPath": "/",
      "entryName": "main",
      "entryPath": "html/main/index.html",
      "isSPA": true,
      "isStream": false,
      "isSSR": false
    }
  ]
}
@zllkjc
Copy link
Member

zllkjc commented Oct 12, 2024

这个需求是合理的,我们记录一下。请问下这里为什么需要加这个文件

@lanmingle
Copy link
Author

一般我们使用git做仓库的时候,不能提交空的目录,经常添加 .gitkeep 文件,为什么需要添加一个空的目录(做工程模板)

@caohuilin
Copy link
Member

#6394

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants