cssi icon indicating copy to clipboard operation
cssi copied to clipboard

Report broken (Windows)

Open EduardoAzul opened this issue 12 years ago • 4 comments

The report is apparently broken

capturar

And when i open it:

capturar2

EduardoAzul avatar Aug 30 '14 19:08 EduardoAzul

wow... I haven't tested on windows, but how are you running it?

bitbonsai avatar Aug 30 '14 19:08 bitbonsai

cssi --css teste.css --repo C:/workspace/cssitest

EduardoAzul avatar Aug 30 '14 19:08 EduardoAzul

What comes to mind is that the default tpl param is *.tmpl, *.inc, *.js. Since you're running on cssi's module folder, it's getting all the node js files and acting crazy.

Please try this:

  1. Create a folder, place a dummy .html file there with <div class="test1 test3">
  2. Create a dummy css file on the same folder, with this content: .test1 { display: none; } .test2 { display: none; } .test3 { display: none; }
  3. Be sure that you installed cssi with -g: npm install -g cssi
  4. Start a repo on that dir with git init, then git add -A and git commit -m "testing"
  5. Go to that folder and run cssi --css test.css --repo . --out report.html --tpl "*.html"

This should generate the report properly. Please reopen if not, I'm not testing on Windows.

Thanks

bitbonsai avatar Aug 30 '14 20:08 bitbonsai

Still doesn't working :( I'll try on linux :)

I think that either the grep is not working properly, see

capturar

[CSSI] NOT FOUND: [class] .test1 [CSSI] NOT FOUND: [class] .test2 [CSSI] NOT FOUND: [class] .test3

EduardoAzul avatar Aug 30 '14 20:08 EduardoAzul