Giter Club home page Giter Club logo

if_changed's Introduction

if_changed Build Status

Runs commands when files are changed on git pull: for example, when package.json is changed, npm install will be ran, installing the dependency updates.

See the source for a full list—it's pretty readable. Please send a pull request if your technology or desired command is missing!

Setup

You can either run this script manually every time you pull, or you can set it up on the post-merge git hook so that it runs automatically.

As of 1.0.0, you can install this over npm.

$ npm install -g if_changed

Then to run the script:

$ if_changed

And to install itself into the post-merge hook:

$ if_changed install

Manual install

To run every time, download if_changed.sh and run it.

To run automatically on the post-merge hook, move the if_changed.sh file to .git/hooks/post-merge in your repository (where post-merge is the name of the file, not a containing directory), and make it executable using chmod +x post-merge.

See this document to learn more about git hooks.

License

Released under the MIT license.

if_changed's People

Contributors

callumacrae avatar nicofuma avatar michaelcullum avatar

Stargazers

Angus H. avatar Mark Beech avatar Alexandre Kalatzis avatar Francois-Guillaume Ribreau avatar Julien BIANCHI avatar Matti Schneider avatar David Larlet avatar Laurent Goussard avatar Daniel Grant avatar Johannes Wachter avatar Atticus White avatar Tim De Pauw avatar Hemanth HM avatar Pascal Hartig avatar  avatar Mohamed Meabed avatar  avatar

Watchers

 avatar  avatar  avatar James Cloos avatar

if_changed's Issues

pip

if_changed requirements.txt "pip install"

via @Nicofuma

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.