Using Composer in root to install Timber in theme folder? #2862
-
Hi, I'm trying to create a Composer installer in the WP root folder that will install all my plugins and add Timber to my theme folder (WP and DB already created by Laragon). The plugins seem to install to the right place but I'm not having any luck with Timber which is installing in /root/vendor/. I've tried a few variations and this isn't working.
Does the Timber package have a "type" I could use instead to add it to the theme's vendor directory? Let me know what you think is the best way to install Timber into my theme directory other than running composer inside the theme folder. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @KingWebsites, What's your purpose in putting Timber inside |
Beta Was this translation helpful? Give feedback.
So my main quest was to migrate from the Timber plugin to having Timber in my theme folder. I'm a front-end dev with only a small understanding of Composer.
When I create a new site on dev and need to move to production I will be probably be using the All-In-One Migrator plugin which will only duplicate content within /wp-content/. I'll be FTP-ing updates. I will not be running any command line instructions on the server. This may be a similar method used by lots of people moving away from the Timber plugin who are not using Docker, Bedrock, etc..
So I've managed to get a composer.json inside my theme folder which installs Timber and adds plugins. The only thing I'm not sure about is that…