question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

refactor for backstop-core implementation

See original GitHub issue

gulp.run() was used in the initial implementation of BackstopJS and is now deprecated. It’s time we go back and straighten out these logic issues in a more Gulp-friendly (platform-agnostic) way. Any assistance on this refactor is greatly appreciated!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
klausbayrhammercommented, Feb 29, 2016

@YuliaTsareva @garris I thought about this a couple of weeks ago as well. What I would love to do is to extract something like a backstop-core module. This backstop-core would basically consist of all components which are needed in order to run backstop and expose the needed functions as plain javascript-functions. Then we could do something like gulp-backstop (or just call it backstop to make it backwards compatible) which is a gulp-wrapper for the functions (and dependencies) exposed by backstop-core. If we would need a CLI-runner we could create something like backstop-cli or backstop-clite

I think this could also greatly benefit CI integration #135 and tools like grunt-backstop because they can just use the backstop-core part. And furthermore we would also avoid exposing internal tasks (like the jscs-task to our api (which are all tasks in the gulpfile).

0reactions
garriscommented, Sep 28, 2016

Closed by #259

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code Refactoring Best Practices: When (and When Not) to Do It
Code refactoring is a process used in the DevOps philosophy that involves editing and cleaning up ... [GREEN]; Implement improvements.
Read more >
Refactoring Techniques
These refactoring techniques show how to safely move functionality between classes, create new classes, and hide implementation details from public access.
Read more >
What is Refactoring (Code Refactoring)? - TechTarget
Refactoring can be performed after a product has been deployed, before adding updates and new features to existing code, or as a part...
Read more >
7 Code Refactoring Techniques in Software Engineering
Firstly you gather some basic requirements and then based on the requirement you start implementing the feature one by one.
Read more >
Advanced Topic - Refactoring - Scaled Agile Framework
Interface / Implementation – First, create new interfaces and wrap in the old functionality, then refactor the functionality itself.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found