nusje2000 / composer-monolith Goto Github PK
View Code? Open in Web Editor NEWProvides commands to validate dependencies within a monolithic repository structure
License: MIT License
Provides commands to validate dependencies within a monolithic repository structure
License: MIT License
This is the current question:
What version of "symfony/security" would you like to require (referenced as [^3.3, ^1.1]) ?
It would be nice if the package referencing the version is displayed as well:
What version of "symfony/security" would you like to require (referenced as [internal/package-1: ^3.3, internal/package-2: ^1.1]) ?
Instead of this:
Equalizable dependency on symfony/symfony (references: package/1: ^4.4, package/2: ^4.4, package/3: ^4.4, package/4: ^4.3)
Do this:
Equalizable dependency on symfony/symfony (references: default: ^4.4, package/4: ^4.3)
The behaviour of this check is not expected. i.e. when you define a package the is only used in development, it makes sense to define the dependencies as require
instead of require-dev
.
Change the version constraint message to:
Dependency on "<dependency>" in package "<package>" requires version that matches <version>. (installed: <version>)
update symfony/console 6.x
See: https://github.com/symfony/symfony/blob/master/composer.json
In a composer.json you can set replaces for packages that the defined packages replaces. Within a monolithic repository usually the replace is defined for each internal package. See symfony for example, you could require each component individually, or you could require symfony/symfony
.
There should be a new Rule that checks if an internal package is registered and there should be an autofixer that can fix this problem automatically (thus adding a package to the replace and setting the version to self.version
).
nusje2000/phpstan-monolith uses PHP Stan to validate use statements in source code based on the composer.json, but this currently has a few limitations:
This should not be difficult to achieve using the nikic/PHP-Parser package.
This should also come with a feature to generate a baseline for the errors that occur to be fixed later.
Example:
symfony/contracts replaces symfony/cache-contracts, symfony/event-dispatcher-contracts, symfony/service-contracts, symfony/translation-contracts
This should mean that when symfony/cache-contracts is required, symfony/contracts will fulfill this requirement.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.