Skip to content

Commit

Permalink
auto-update
Browse files Browse the repository at this point in the history
  • Loading branch information
DavertMik committed Aug 31, 2015
1 parent bb73326 commit 10aa223
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
42 changes: 42 additions & 0 deletions docs/tasks/Assets.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,24 @@ Use one of both less compilers in your project:
"oyejorge/less.php": "~1.5"
```

Specify directory (string or array) for less imports lookup:
```php
<?php
$this->taskLess([
'less/default.less' => 'css/default.css'
])
->importDir('less')
->compiler('lessphp')
->run();
?>
````

You can implement additional compilers by extending this task and adding a
method named after them and overloading the lessCompilers() method to
inject the name there.

* `compiler($compiler, array $options = Array ( ) )` Sets the less compiler.
* `importDir($dirs)` Sets import dir option for less compilers

## Minify

Expand Down Expand Up @@ -52,3 +65,32 @@ Please install additional dependencies to use:
* `specialVarRx($specialVarRx)` specialVarRx option for the JS minimisation.
* `__toString()` @return string

## Scss


Compiles scss files.

```php
<?php
$this->taskScss([
'scss/default.scss' => 'css/default.css'
])
->run();
?>
```

Use the following scss compiler in your project:

```
"leafo/scssphp": "~0.1",
```

You can implement additional compilers by extending this task and adding a
method named after them and overloading the scssCompilers() method to
inject the name there.

* `compiler($compiler, array $options = Array ( ) )` Sets the scss compiler.
* `addImportPath($path)` Adds path to the importPath for scssphp
* `setImportPaths($paths)` Sets the importPath for scssphp
* `setFormatter($formatterName)` Sets the formatter for scssphp

4 changes: 2 additions & 2 deletions docs/tasks/Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Builds Docker image
<?php
$this->taskDockerBuild()->run();

$this->dockerBuild('path/to/dir')
$this->taskDockerBuild('path/to/dir')
->tag('database')
->run();

Expand Down Expand Up @@ -39,7 +39,7 @@ $this->taskDockerCommit($containerId)
// alternatively you can take the result from DockerRun task:
$result = $this->taskDockerRun('db)
$result = $this->taskDockerRun('db')
->exec('./prepare_database.sh')
->run();
Expand Down

0 comments on commit 10aa223

Please sign in to comment.