Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keep color output when running scripts on composer

Composer allow running scripts, as said in defining scripts.

So, I'm trying to run some spec tests with it.

{
    "scripts": {
        "test": "./vendor/davedevelopment/dspec/bin/dspec"
    },
    "require-dev": {
        "esperance/esperance": "dev-master",
        "davedevelopment/dspec": "dev-master"
    }
}

It runs fine, but there is no color output, and for spec tests this difficults the reading.

How can I run the scripts but keep the original colored output?

like image 795
paulodiovani Avatar asked Nov 19 '14 18:11

paulodiovani


1 Answers

Use the --ansi param.

"test": "./vendor/davedevelopment/dspec/bin/dspec --ansi"
like image 167
Marcelo Avatar answered Oct 05 '22 09:10

Marcelo