【问题标题】:How to specify multiple matches in minimatch如何在 minimatch 中指定多个匹配项
【发布时间】:2017-10-11 15:10:58
【问题描述】:

我需要使用 minimatch 来定位特定文件(在 TypeDoc 中排除 - 我不需要测试和其他一些文件)。

我需要排除 /test 目录中的所有文件以及所有目录中的所有 index.ts

试过**/+(index.ts|**/test/*.ts),但没用。

【问题讨论】:

    标签: minimatch


    【解决方案1】:

    尝试使用**/!(test)/!(index)*.ts 使用globster.xyz

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-11-18
      • 2013-01-06
      • 1970-01-01
      • 1970-01-01
      • 2023-02-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多