Giter Club home page Giter Club logo

Comments (6)

mikaelbr avatar mikaelbr commented on July 21, 2024

Good suggestion. I've been thinking of this as well! Fixed now. Would be great if you could try it out and give feedback!

from mversion.

rubennorte avatar rubennorte commented on July 21, 2024

Wow, that was quick! Thank you very much.

I just saw something that could cause problems in the current implementation. All executions of hook scripts are asynchronous and the process waits for them to finish, except when executing the precommit scripts. In that case there's no callback and the commit is done right after the script execution, what may cause the commit to be done before the precommit scripts.

I'll try it out next monday.

from mversion.

mikaelbr avatar mikaelbr commented on July 21, 2024

Yeah, I implemented support for that when doing #24 : 53a55e3

That will wait for pre-commit to wait before doing commit.

from mversion.

rubennorte avatar rubennorte commented on July 21, 2024

Good work. Thanks!

from mversion.

rubennorte avatar rubennorte commented on July 21, 2024

It worked great! I created a test project with a npm script to call mversion. In the precommit script I did the build (just copy src/index.js to dist/index.js) add the results to the index and let mversion do the commit. The dist directory was ignored in git so that was the only commit where the contents of dist where actually versioned, so now I have what I wanted.

When do you expect to release a new version to npm?

from mversion.

mikaelbr avatar mikaelbr commented on July 21, 2024

I'd just like someone other than me to verify #24, and I'll do a minor release.

from mversion.

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.