Giter Site home page Giter Site logo

Comments (9)

stephenlacy avatar stephenlacy commented on August 20, 2024

Is there any way git tag would accept files?
If not it should not be a stream, as there is no reason for a vinyl source.

from gulp-git.

jasonkarns avatar jasonkarns commented on August 20, 2024

The idea wouldn't be for the files to go to git tag but be used for the tag. Though the more I think about it though, the less I think this sugar should exist at this level. Better for this to be a pure 1 to 1 mapping to git and for added sugar to be added via other modules.

from gulp-git.

eseceve avatar eseceve commented on August 20, 2024

What about if I want to do a gulp task like this?:

var git = require('gulp-git');
gulp.task('myTask', function() {
  return gulp.src(['/my/files.ext'])
    .pipe(git.add())
    .pipe(git.commit('my message')
    .pipe(git.tag(myVersion, 'my message')
    .pipe(git.push('origin', 'master', {args: '--tags'}));
});

from gulp-git.

 avatar commented on August 20, 2024

@eseceve
Did you manage to do that?
I always get the previous commit tagged and pushed. But the current commit is not pushed.

I'm getting this error message:

TypeError: undefined is not a function"

which ties in this line:

.pipe(git.tag(v, message)) is undefined...

from gulp-git.

stephenlacy avatar stephenlacy commented on August 20, 2024

@dreadcast Tag is not a stream, and won't be changed to a stream.
https://github.com/stevelacy/gulp-git/blob/master/examples/gulpfile.js#L64

use

var git = require('gulp-git');
gulp.task('myTask', function() {
  return gulp.src(['/my/files.ext'])
    .pipe(git.add())
    .pipe(git.commit('my message')
    .on('end', function() {
      git.tag('v1.1.1', 'Version message', function (err) {
        //if (err) ...
        git.push('origin', 'master', {args: '--tags'});
      });
    });
});

from gulp-git.

 avatar commented on August 20, 2024

I rolled gulp-git back to version 0.2.0 and @eseceve example almost works (as @bevacqua 's contra)... I could add, commit and tag the latest commit and finally get push() to work :(
Except that push option is a string '--tags'

from gulp-git.

 avatar commented on August 20, 2024

@stevelacy
Thank for your example, I will try it tomorrow and then use the latest gulp-git version again !

from gulp-git.

eseceve avatar eseceve commented on August 20, 2024

@dreadcast https://gist.github.com/eseceve/1461a561b4184dd6e2da

from gulp-git.

 avatar commented on August 20, 2024

@eseceve
I got server errors with @stevelacy 's example then I digged into your recipe and it works great!

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.