Git Product home page Git Product logo

Comments (6)

staxmanade avatar staxmanade commented on May 29, 2024 1

new term 🤞 DD crossed finger driven development

from approvals.nodejs.

staxmanade avatar staxmanade commented on May 29, 2024

Is beyond compare 4 different than what this supports https://github.com/approvals/Approvals.NodeJS/blob/master/lib/Reporting/Reporters/beyondcompareReporter.js? ... ba never-mind just read the code and it's only Beyond Compare 3..

NOTE: if you can think of a way to make it less version dependent, that would be awesome.

from approvals.nodejs.

jamesrcounts avatar jamesrcounts commented on May 29, 2024

I had trouble getting npm install to complete on Windows 10. So I've been stalled on this. But here is a "custom" reporter that is working for us for now.

           {
               // this is used in exception reporting etc. Just give it a name :)
               name: "BeyondCompare4",

                     // This is used to determine if the reporter can report on the specified file
                     // EX: an image differ vs a txt differ...
               canReportOn: function(receivedFilePath) {
                   return receivedFilePath.endsWith(".txt");
               },

                     // Actually execute the diff against the two files
               report: function(approved, received) {
                   if (!fs.existsSync(approved)) {
                       fs.writeFileSync(approved, "");
                   }

                   var exe = "C:/Program Files/Beyond Compare 4/BCompare.exe";

                   console.log('CMD: ' + [exe, received, approved].join(' '));

                   child_process.spawn(exe, [received, approved], {
                       detached: true,
                       stdio: ['pipe', 1, 2, 'ipc']
                   });
               }
           }

from approvals.nodejs.

MiguelMadero avatar MiguelMadero commented on May 29, 2024

FYI, it works for me on mac

from approvals.nodejs.

staxmanade avatar staxmanade commented on May 29, 2024

I've updated beyond compare reporter to try to do a little extra path searching... https://github.com/approvals/Approvals.NodeJS/blob/master/lib/Reporting/Reporters/beyondcompareReporter.js

NOTE: I don't have this tool - so here's 🤞 that it still works (and improves on the old one)

from approvals.nodejs.

MiguelMadero avatar MiguelMadero commented on May 29, 2024

🤞 DD

from approvals.nodejs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.