Skip to content

Update README.md #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 19, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@


# PHP CSS Compiler
_compiles SASS and LESS sources into CSS_
_can be triggered from composer's script's session: compiles LESS/SASS/Compass_
_can be triggered from composer's script's section: compiles LESS|SASS|Compass_

# How to use:
```
composer require "eugene-matvejev/css-compiler"
```
### add into composer __scripts__ directory:
```
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
```
if you have problem with min-stability you can use this solution in '_require_' or '_require-dev_':
if you have problem with min-stability you can use this solution in '_require(-dev)_':
_example_:
```
"eugene-matvejev/css-compiler": "^0.1",
"leafo/scssphp-compass": "@dev",
"leafo/scssphp": "@dev",
```

### add callback into into composer's __scripts__:
```
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
```
_example_:
```
"scripts": {
Expand All @@ -35,8 +35,8 @@ _example_:
```
### add _css-compiler_ information inside of the _extra_ composer configuration
* _format_: compression format
* _input_: array of routes, all files inside of the route if it is directory will be picked up
* _output_: file where it should put content (hard-copy)
* _input_: array of relative paths to the composer.json, all files will be picked up recursivly inside of the directory
* _output_: relative file path to the composer.json, where to save output (hard-copy)

_example_:
```
Expand Down