From f860b7d61cc85c4b10967c2d2de698144626b4a6 Mon Sep 17 00:00:00 2001 From: Eugene Matvejev Date: Tue, 14 Jun 2016 17:44:15 +0300 Subject: [PATCH 1/2] clean PHPUnit configuration --- phpunit.xml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/phpunit.xml b/phpunit.xml index de8086b..fdecf3b 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -13,19 +13,16 @@ syntaxCheck = "false" bootstrap = "vendor/autoload.php" > - - - - ./tests + tests/ - ./src + src/ From 32b3d477834a4a24c2e4e8213068096f27b33ad9 Mon Sep 17 00:00:00 2001 From: Eugene Matvejev Date: Tue, 14 Jun 2016 17:48:14 +0300 Subject: [PATCH 2/2] update ready --- README.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/README.md b/README.md index ffbaef3..ca3ba8d 100644 --- a/README.md +++ b/README.md @@ -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)