barryvdh / laravel-vendor-cleanup Goto Github PK
View Code? Open in Web Editor NEWL4 Vendor Cleanup Command (DEPRECATED!)
L4 Vendor Cleanup Command (DEPRECATED!)
Hi I got in mind the same cleanup-package.. when I found yours I love it, but here you said "this package reduces to size by something like 50%" and this is my project weight before installing your package was 33Mb and after the composer update the the entire project weight is 24Mb.
Is something wrong with Laravel 4.1 ? Or maybe there's something missing in the readme file?
Hi Barry,
how about a new release tag, you commited some nice config additions recently?
Amongst the files removed are all phpunit.xml files. Unfortunately the Laravel has a workbench stub for this file, named the same whose removal causes the artisan workbench package creator to fail. Is there a way of excluding the stub file from the "clean-up"?
I'm using Composer version 1.6.2 2018-01-05 15:28:41
.
I get this depreciation notice when running composer install
:
Deprecation Notice: The callback
Barryvdh\Composer\CleanupPlugin::onPostPackageInstall
declared atfoo\vendor\barryvdh\composer-cleanup-plugin\src\CleanupPlugin.php
accepts aComposer\Script\PackageEvent
but post-package-install events use aComposer\Installer\PackageEvent
instance.
Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes inphar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:322
Throws the following error when using the package on Laravel 4.1
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework 4.1.x-dev
- barryvdh/laravel-vendor-cleanup v1.1 requires illuminate/support 4.0.x -> satisfiable by laravel/framework[4.0.x-dev, v4.0.0, v4.0.0-BETA2, v4.0.0-BETA3, v4.0.0-BETA4, v4.0.1, v4.0.2, v4.0.3, v4
.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8], illuminate/support[4.0.x-dev, v4.0.0, v4.0.0-BETA2, v4.0.0-BETA3, v4.0.0-BETA4, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- barryvdh/laravel-vendor-cleanup v1.1.1 requires illuminate/filesystem 4.0.x -> satisfiable by laravel/framework[4.0.x-dev, v4.0.0, v4.0.0-BETA2, v4.0.0-BETA3, v4.0.0-BETA4, v4.0.1, v4.0.2, v4.0.
3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8], illuminate/filesystem[4.0.x-dev, v4.0.0, v4.0.0-BETA2, v4.0.0-BETA3, v4.0.0-BETA4, v4.0.1, v4.0.2, v4.0.3, v4.0.4, v4.0.5, v4.0.6, v4.0.7, v4.0.8].
- don't install illuminate/support 4.0.x-dev|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.0|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.0-BETA2|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.0-BETA3|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.0-BETA4|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.1|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.2|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.3|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.4|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.5|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.6|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.7|don't install laravel/framework 4.1.x-dev
- don't install illuminate/support v4.0.8|don't install laravel/framework 4.1.x-dev
- Can only install one of: laravel/framework[4.1.x-dev, 4.0.x-dev].
- Can only install one of: laravel/framework[v4.0.0, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.0-BETA2, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.0-BETA3, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.0-BETA4, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.1, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.2, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.3, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.4, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.5, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.6, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.7, 4.1.x-dev].
- Can only install one of: laravel/framework[v4.0.8, 4.1.x-dev].
- don't install illuminate/filesystem 4.0.x-dev|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.0|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.0-BETA2|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.0-BETA3|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.0-BETA4|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.1|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.2|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.3|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.4|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.5|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.6|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.7|don't install laravel/framework 4.1.x-dev
- don't install illuminate/filesystem v4.0.8|don't install laravel/framework 4.1.x-dev
- Installation request for laravel/framework 4.1.* -> satisfiable by laravel/framework[4.1.x-dev].
- Installation request for barryvdh/laravel-vendor-cleanup 1.1.* -> satisfiable by barryvdh/laravel-vendor-cleanup[v1.1, v1.1.1].
Setup Laravel 4.1 using
"laravel/framework": "4.1.*",
It isn't an issue, just to say that your script works also in windows with the git bash (msys or better minGW)
Can't test with cygwin, but I think it will work...
Thanks man for your scripts!!
Hi barry,
any plans to update for L5?
Thanks!
Unfortunately it appears that this package conflicts with composer's checks. After running the cleanup (and saving ~20MB, which is quite a lot) and re-running composer I got the question about changed files which had been removed previously:
- Updating intervention/image dev-master (1.3.8 => 1.3.9)
The package has modified files:
D README.md
D phpunit.xml
D public/circle.png
D public/mask1.png
D public/mask2.png
D public/test.jpg
D public/tile.png
D tests/ImageTest.php
Discard changes [y,n,v,s,?]?
Is this related to "preferred-install": "dist"
or is there something else that causes this?
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.