BackstopJS icon indicating copy to clipboard operation
BackstopJS copied to clipboard

Docs on which files to .gitignore?

Open holloway opened this issue 7 years ago • 3 comments

I see the project itself has a .gitignore but it has unrelated ignores like \.vscode/ so are there docs on which files we should check in and which we should ignore?

Obviously the reference images should be checked in, and the config, but what else?

holloway avatar Dec 14 '17 23:12 holloway

You'll also want to check in any scripts you create that are used with onReadyScript in the configs and so on.

My team's .gitignore only has two entries for BackstopJS:

backstop/*/images/test/ backstop/*/reports/

ackmanx avatar Jan 01 '18 15:01 ackmanx

For the latest version I use:

backstop_data/bitmaps_test/* backstop_data/html_report/*

ipwa avatar Jun 05 '18 14:06 ipwa

@ipwa should i not put everything under backstop_data in .gitignore?

Here's a snippet from configuration:

 paths: {
    bitmaps_reference: "backstop_data/bitmaps_reference",
    bitmaps_test: "backstop_data/bitmaps_test",
    engine_scripts: "backstop_data/engine_scripts",
    html_report: "backstop_data/html_report",
    ci_report: "backstop_data/ci_report",
  }

chan-dev avatar Jan 27 '23 02:01 chan-dev