Comments (5)
My only concern is that this encourages non-standard setups too much.
from installers.
I agree, I think in most cases it's just misguided, but I am also tired of arguing with people that they shouldn't do it and why, so I am not sure what the best approach is.
from installers.
Well, I'm thinking about using Composer to manage all website dependencies, not only php: js, css. That would be nice for js and css dependencies for example, to be able to distribute in a js or css directory. Sure I could write a custom installer, but it would be more simple just to be able to specify a target dir.
The problem I see with writing a custom installer however is that I don't want to create a composer installer for every imaginable dependency types that I want to include. Also I want to avoid using multiple package managers: I like Composer, I know how to use it, I want to stick with it.
I think adding this target dir feature would help using Composer as a general dependency manager not only tied to php.
from installers.
@nicolasblackburn Why can't you load css and js from the vendor
folder?
FWIW, in Node.js we're forced to a single folder node_modules
and no custom installers. It seems harsh but actually solves a huge list of problems. One being having a designated folder specifically for dependencies. You can upgrade, downgrade, create or destroy without much thought. If your dependencies are scattered throughout your app it becomes fragile. Upgrading and downgrading could mean destroying non-dependency code and a lot of thought stepping around your installed packages.
from installers.
@shama, I could certainly do this. That's actually what I do and I see good advantages to it too. It is just that it is not common practice to store js and css that way. Lots of front end developers for example use boilerplate or html templates and frameworks where js and css are commonly stored in a js and css directory. It would be nice that Composer be flexible enough to accomodate any website structure.
from installers.
Related Issues (20)
- When target location change, data must be moved (not duplicated) HOT 3
- Path issue shows with composer installing via MAMP on macOS HOT 1
- Your app key is missing message issue
- Want to write a custom path for plug-in package? I don't know how to debug
- composer 2.3.5 breaks composer/installers HOT 3
- Disabling installer in my package will still trigger the installer path when it's pulled in a project HOT 4
- Add license to the package HOT 1
- Add version to installer-path variables HOT 1
- Add Support for "Generic" Library HOT 2
- Support https://asset-packagist.org/ types? HOT 3
- Using vcs repo without composer.json
- Add a installer for Laminas project
- Renaming vendor breaks composer install HOT 2
- mediawiki-skin should install in CamelCase name directory
- Could we add support of wordpress-core type?
- Why are dependencies still present in the installer path after removal?
- Add support for Moodle "tiny" plugins HOT 1
- Extend documentation regarding disabling of installers
- Add partial support for the generic "library" and "project" types
- Composer Install Installs Modules in "vendor" Instead of Specified "modules" Directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from installers.