File tree 2 files changed +52
-5
lines changed
2 files changed +52
-5
lines changed Original file line number Diff line number Diff line change 1
1
# css-compiler
2
2
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)
Original file line number Diff line number Diff line change 13
13
syntaxCheck = " false"
14
14
bootstrap = " vendor/autoload.php"
15
15
>
16
- <php >
17
- <server name =" KERNEL_DIR" value =" app/" />
18
- </php >
19
16
20
17
<testsuites >
21
18
<testsuite name =" mandatory test suite" >
22
- <directory >./ tests</directory >
19
+ <directory >tests/ </directory >
23
20
</testsuite >
24
21
</testsuites >
25
22
26
23
<filter >
27
24
<whitelist >
28
- <directory >./ src</directory >
25
+ <directory >src/ </directory >
29
26
</whitelist >
30
27
</filter >
31
28
</phpunit >
You can’t perform that action at this time.
0 commit comments