node_modules/windicss/cli/index.js
/**
 * Returns tasks grouped by basic pattern directories.
 *
 * Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
 * This is necessary because directory traversal starts at the base directory and goes deeper.
 */
Returns tasks grouped by basic pattern directories.
Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
This is necessary because directory traversal starts at the base directory and goes deeper.
Returns tasks grouped by basic pattern directories . Patterns that can be found inside ( ` . / ` ) and outside ( ` .. / ` ) the current directory are handled separately . This is necessary because directory traversal starts at the base directory and goes deeper .
function convertPatternsToTasks(positive, negative, dynamic) {
    const tasks = [];
    const patternsOutsideCurrentDirectory = utils$a.pattern.getPatternsOutsideCurrentDirectory(positive);
    const patternsInsideCurrentDirectory = utils$a.pattern.getPatternsInsideCurrentDirectory(positive);
    const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory);
    const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
    tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic));
    if ('.' in insideCurrentDirectoryGroup) {
        tasks.push(convertPatternGroupToTask('.', patternsInsideCurrentDirectory, negative, dynamic));
    }
    else {
        tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic));
    }
    return tasks;
}
function convertPatternsToTasks ( positive , negative , dynamic ) { const tasks = [ ] ; const patternsOutsideCurrentDirectory = utils$a . pattern . getPatternsOutsideCurrentDirectory ( positive ) ; const patternsInsideCurrentDirectory = utils$a . pattern . getPatternsInsideCurrentDirectory ( positive ) ; const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory ( patternsOutsideCurrentDirectory ) ; const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory ( patternsInsideCurrentDirectory ) ; tasks . push ( ... convertPatternGroupsToTasks ( outsideCurrentDirectoryGroup , negative , dynamic ) ) ; if ( '.' in insideCurrentDirectoryGroup ) { tasks . push ( convertPatternGroupToTask ( '.' , patternsInsideCurrentDirectory , negative , dynamic ) ) ; } else { tasks . push ( ... convertPatternGroupsToTasks ( insideCurrentDirectoryGroup , negative , dynamic ) ) ; } return tasks ; }
Returns tasks grouped by basic pattern directories.
Returns tasks grouped by basic pattern directories .
/*
     * For the sake of reducing future accesses to the file system, we merge all tasks within the current directory
     * into a global task, if at least one pattern refers to the root (`.`). In this case, the global task covers the rest.
     */