Skip to content

RC1 - documentation #8

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 2 commits into from
Jun 14, 2016
Merged
Show file tree
Hide file tree
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
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,52 @@
# css-compiler
compiles SASS/LESS and Compass, available though Composer


# How to use:
add into composer __scripts__ directory:
```
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
```

example:
```
"scripts": {
"post-update-cmd": "@custom-events",
"post-install-cmd": "@custom-events",
"custom-events": [
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
]
},
```

##how to trigger
add _css-compiler_ information inside of the _extra_ composer configuration
```
"css-compiler": [
{
"format": "compact",
"input": [
"tests/shared-fixtures/scss"
],
"output": "var/cache/assets/scss.css"
},
{
"format": "compact",
"input": [
"tests/shared-fixtures/sass"
],
"output": "var/cache/assets/sass.css"
},
{
"format": "compact",
"input": [
"tests/shared-fixtures/compass/app.scss"
],
"output": "var/cache/assets/compass.css"
}
]
```
where:
_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)
7 changes: 2 additions & 5 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@
syntaxCheck = "false"
bootstrap = "vendor/autoload.php"
>
<php>
<server name="KERNEL_DIR" value="app/" />
</php>

<testsuites>
<testsuite name="mandatory test suite">
<directory>./tests</directory>
<directory>tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./src</directory>
<directory>src/</directory>
</whitelist>
</filter>
</phpunit>