зеркало из https://github.com/microsoft/boll.git
Add Option To Exclude Files that Git Ignores (#51)
* use gitignore to exclude files * Fix tests * add option to specify ignore file name for testing purposes * Add functionality to get ignore files from repo root and apply all nested rules * Change files * Add new lines to ignore files in fixtures * Remove commented out functions * Add fixtures dir to prettier ignore file * Fix prettier
This commit is contained in:
Родитель
ac69e477cc
Коммит
368e8332d8
|
@ -1 +1,2 @@
|
|||
packages/docs/src
|
||||
fixtures
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"type": "patch",
|
||||
"comment": "Allow boll to exclude git ignored files",
|
||||
"packageName": "@boll/cli",
|
||||
"email": "email not defined",
|
||||
"dependentChangeType": "patch",
|
||||
"date": "2020-11-12T22:40:59.865Z"
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"type": "patch",
|
||||
"comment": "Allow boll to exclude git ignored files",
|
||||
"packageName": "@boll/core",
|
||||
"email": "email not defined",
|
||||
"dependentChangeType": "patch",
|
||||
"date": "2020-11-12T22:41:09.746Z"
|
||||
}
|
|
@ -54,6 +54,6 @@ export class Cli {
|
|||
}
|
||||
const config = new Config(ConfigRegistryInstance, RuleRegistryInstance, this.logger);
|
||||
config.load(require(fullConfigPath));
|
||||
return config.buildSuite();
|
||||
return await config.buildSuite();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ export async function buildSuite(logger: Logger): Promise<Suite> {
|
|||
}
|
||||
const config = new Config(ConfigRegistryInstance, RuleRegistryInstance, logger);
|
||||
config.load(require(fullConfigPath));
|
||||
return config.buildSuite();
|
||||
return await config.buildSuite();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
a/
|
|
@ -0,0 +1 @@
|
|||
a
|
|
@ -0,0 +1 @@
|
|||
a/*.js
|
|
@ -0,0 +1 @@
|
|||
a/**/b/*.js
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче