Giter Site home page Giter Site logo

Comments (7)

MacFJA avatar MacFJA commented on August 12, 2024 1

The only reason that I remove composer.json (and lock) is to remove useless files.

I assumed that no third-party code will need its composer.json, but you prove me that it's not the case 😄

Feel free to open a PR to remove this line.

from pharbuilder.

theofidry avatar theofidry commented on August 12, 2024

@MacFJA and on another hand for some tools like PHP-CS-Fixer where compression is disabled they should by all means be excluded along with some unneeded composer related files :/

from pharbuilder.

MacFJA avatar MacFJA commented on August 12, 2024

@theofidry If dependencies are managed correctly (for example php-cs-fixer is set as dev requirement), PharBuilder can exclude all dev dependencies (which is the case by default).

from pharbuilder.

theofidry avatar theofidry commented on August 12, 2024

@MacFJA I meant PHP-CS-Fixer as the tool itself for its own PHAR, not as a dep. Their PHAR is not compressed, so excluding files like composer.json, composer.lock, installed.json which are not necessary for the PHAR to run should be excluded otherwise the PHAR size can quickly go up

from pharbuilder.

PeeHaa avatar PeeHaa commented on August 12, 2024

@theofidry Can you confirm my test results in the PR and verify it's not a concern please?

from pharbuilder.

PeeHaa avatar PeeHaa commented on August 12, 2024

Also does php-cs-fixer even use this project to build there phar? @theofidry

As far as I can see they are using box

from pharbuilder.

theofidry avatar theofidry commented on August 12, 2024

I'm just sharing this information in case this might be a concern, not to say the composer.json should be included or excluded.

from pharbuilder.

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.