Giter Site home page Giter Site logo

Comments (4)

theofidry avatar theofidry commented on May 26, 2024

So, I would like to suggest adding a way of versioning tools without the need to commit all

And how would this be achieved? The composer.{json|lock} are precisely to version it. If you feel it's too much clutter and don't want to look at them, what you can do however is version them as binary files, composer.lock binary in .gitattributes or something similar (you'll need to look it up).

As for your makefile issue, I would recommend the following:

# runs copy paste detection
phpcpd: bin/phpcpd
	bin/phpcpd ./src --min-lines=1 --min-tokens=35

# install sebastian/phpcpd
bin/phpcpd: vendor/bamarni/composer-bin-plugin
	composer bin phpcpd install sebastian/phpcpd
        touch $@

vendor/bamarni/composer-bin-plugin-plugin:
	composer install
	touch $@

touch $@ is the trick to ensure the target is properly updated as sometimes especially with symlinks the timestamp is not properly updated

from composer-bin-plugin.

Isinlor avatar Isinlor commented on May 26, 2024

The trick with .gitattributes is very cool!

I think it actually settles it for me πŸ‘ . Thank you!

What do you think about mentioning .gitignore and .gitattributes in README tricks?

I can make pull-request.

from composer-bin-plugin.

theofidry avatar theofidry commented on May 26, 2024

from composer-bin-plugin.

theofidry avatar theofidry commented on May 26, 2024

Closed by #41

from composer-bin-plugin.

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.