Giter Site home page Giter Site logo

Add git status about gulp-git HOT 9 CLOSED

BobbyKostadinov avatar BobbyKostadinov commented on August 20, 2024
Add git status

from gulp-git.

Comments (9)

stringparser avatar stringparser commented on August 20, 2024

👍 this would be a very good idea, just with the first thing that comes to mind that would make possible to do an easy and very efficient watcher with just one git status on the background.

from gulp-git.

stephenlacy avatar stephenlacy commented on August 20, 2024

PR's welcome

from gulp-git.

stringparser avatar stringparser commented on August 20, 2024

Ok I'll give it a go this next week.

from gulp-git.

stringparser avatar stringparser commented on August 20, 2024

WTH... I'll do it today

from gulp-git.

stringparser avatar stringparser commented on August 20, 2024

@stevelacy @BobbyKostadinov I would have been very easy but I've become greedy haha.

From my fork lib/status.js

The thing is, are we going to just plug the git status output to a callback and/or stdout? Or should it be a stream?.

If there is something one can do here is create a pipeline on the way of gulp.src. There is no need for globs here, just plain files running through. What do you think? Should I leave my little green bag aside and just plug there the the output, or not? Is just that seems pretty weird to parse the git status (because what is the point then) and don't pass it as a stream.

from gulp-git.

stephenlacy avatar stephenlacy commented on August 20, 2024

Create it in the way of: https://github.com/stevelacy/gulp-git/blob/master/lib/rm.js
And return the status to gutil.log.
We first had all functions as through2 streams, but broke it out due to not needing streams or gulp.src for the functions.

from gulp-git.

stringparser avatar stringparser commented on August 20, 2024

Ok, I see. Log the buffer and pass the stream.

Thanks!

from gulp-git.

stephenlacy avatar stephenlacy commented on August 20, 2024

Actually before you start on it, is there a need for the stream?

Calling git.status() in a task should just log the status as is, without needing to pipe to a stream.
That would make it easier to construct, similar to this: https://github.com/stevelacy/gulp-git/blob/master/lib/reset.js

from gulp-git.

stringparser avatar stringparser commented on August 20, 2024

Haha, there is really no need for a stream. I'll experiment with the idea separately and let you now. Simpler is better. This is just me feeling guilty about having valuable information and not doing something with it. I'll log the stdout status.

Talk you soon.

from gulp-git.

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.