No Description

tasks.d.ts 1.2KB

12345678910111213141516171819202122
  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;