Last change
on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | import Settings from '../settings';
|
---|
| 2 | import { Pattern, PatternsGroup } from '../types';
|
---|
| 3 | export declare type Task = {
|
---|
| 4 | base: string;
|
---|
| 5 | dynamic: boolean;
|
---|
| 6 | patterns: Pattern[];
|
---|
| 7 | positive: Pattern[];
|
---|
| 8 | negative: Pattern[];
|
---|
| 9 | };
|
---|
| 10 | export declare function generate(patterns: Pattern[], settings: Settings): Task[];
|
---|
| 11 | /**
|
---|
| 12 | * Returns tasks grouped by basic pattern directories.
|
---|
| 13 | *
|
---|
| 14 | * Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
|
---|
| 15 | * This is necessary because directory traversal starts at the base directory and goes deeper.
|
---|
| 16 | */
|
---|
| 17 | export declare function convertPatternsToTasks(positive: Pattern[], negative: Pattern[], dynamic: boolean): Task[];
|
---|
| 18 | export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
|
---|
| 19 | export declare function getNegativePatternsAsPositive(patterns: Pattern[], ignore: Pattern[]): Pattern[];
|
---|
| 20 | export declare function groupPatternsByBaseDirectory(patterns: Pattern[]): PatternsGroup;
|
---|
| 21 | export declare function convertPatternGroupsToTasks(positive: PatternsGroup, negative: Pattern[], dynamic: boolean): Task[];
|
---|
| 22 | export declare function convertPatternGroupToTask(base: string, positive: Pattern[], negative: Pattern[], dynamic: boolean): Task;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.