Git Product home page Git Product logo

Comments (5)

schmunk42 avatar schmunk42 commented on August 15, 2024

PS: But for sure Yii 1.x stays a natively supported framework for composer.

PS2: you could use "vendor-dir": "protected/extensions" to achieve a similar functionality.

from installers.

shama avatar shama commented on August 15, 2024

👍 Will remove it shortly. Thanks for handling this!

from installers.

schmunk42 avatar schmunk42 commented on August 15, 2024

Before you remove it, there is a use-case for a YiiInstaller, but I am not sure if it could be implemented.

When installing a yii-theme, the theme should be installed (or copied) into your theme folders. You can only customize a general theme directory in Yii for all themes, not for every theme separately.

And I used the plural form, because a theme has asset-files in a public accessible section and view and skin files in something like app/ or protected/.

So the package would have to be split up into two parts, when installing - which makes no sense, because it's a repo. I am using this command at the moment to accomplish the task and my theme belongs to my project.

How to do this with composer/installers?

from installers.

shama avatar shama commented on August 15, 2024

@schmunk42 That seems like a good use case for a post-install-cmd: http://getcomposer.org/doc/articles/scripts.md

from installers.

schmunk42 avatar schmunk42 commented on August 15, 2024

@shama Thanks :) I am using those events extensively. Just running some yiic commands when a package gets installed.

That would be a nice solution for a Yii installer, but there are problems relying on a package for scripts, see composer/composer#1799 - Therefore I had to bundle my ComposerCallback class with my project template.

Any ideas?

PS: Should I send a pull request for this ;)?

from installers.

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.