digipolisgent/robo-digipolis-package

View on GitHub
src/Traits/ThemeCompileTrait.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace DigipolisGent\Robo\Task\Package\Traits;

use DigipolisGent\Robo\Task\Package\ThemeCompile;

trait ThemeCompileTrait
{
    /**
     * Creates a ThemeCompile task.
     *
     * @param string $dir
     *   The directory of the theme to compile. Defaults to the current
     *   directory.
     * @param string $command
     *   The grunt/gulp command to execute. Defaults to 'compile'.
     *
     * @return \DigipolisGent\Robo\Task\Package\ThemeCompile
     *   The theme compile task.
     */
    protected function taskThemeCompile($dir = null, $command = 'compile')
    {
        return $this->task(ThemeCompile::class, $dir, $command);
    }
}