Skip to content

Commit bd59025

Browse files
author
Eugene Matvejev
authored
Merge pull request #8 from eugene-matvejev/rc1-php5
RC1 - documentation
2 parents a0639a9 + 32b3d47 commit bd59025

File tree

2 files changed

+52
-5
lines changed

2 files changed

+52
-5
lines changed

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,52 @@
11
# css-compiler
22
compiles SASS/LESS and Compass, available though Composer
3+
4+
5+
# How to use:
6+
add into composer __scripts__ directory:
7+
```
8+
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
9+
```
10+
11+
example:
12+
```
13+
"scripts": {
14+
"post-update-cmd": "@custom-events",
15+
"post-install-cmd": "@custom-events",
16+
"custom-events": [
17+
"EM\\CssCompiler\\Handler\\ScriptHandler::compileCSS"
18+
]
19+
},
20+
```
21+
22+
##how to trigger
23+
add _css-compiler_ information inside of the _extra_ composer configuration
24+
```
25+
"css-compiler": [
26+
{
27+
"format": "compact",
28+
"input": [
29+
"tests/shared-fixtures/scss"
30+
],
31+
"output": "var/cache/assets/scss.css"
32+
},
33+
{
34+
"format": "compact",
35+
"input": [
36+
"tests/shared-fixtures/sass"
37+
],
38+
"output": "var/cache/assets/sass.css"
39+
},
40+
{
41+
"format": "compact",
42+
"input": [
43+
"tests/shared-fixtures/compass/app.scss"
44+
],
45+
"output": "var/cache/assets/compass.css"
46+
}
47+
]
48+
```
49+
where:
50+
_format_: compression format
51+
_input_: array of routes, all files inside of the route if it is directory will be picked up
52+
_output_: file where it should put content (hard-copy)

phpunit.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,16 @@
1313
syntaxCheck = "false"
1414
bootstrap = "vendor/autoload.php"
1515
>
16-
<php>
17-
<server name="KERNEL_DIR" value="app/" />
18-
</php>
1916

2017
<testsuites>
2118
<testsuite name="mandatory test suite">
22-
<directory>./tests</directory>
19+
<directory>tests/</directory>
2320
</testsuite>
2421
</testsuites>
2522

2623
<filter>
2724
<whitelist>
28-
<directory>./src</directory>
25+
<directory>src/</directory>
2926
</whitelist>
3027
</filter>
3128
</phpunit>

0 commit comments

Comments
 (0)