silverstripe-archive / silverstripe-mobile

Mobile support module for SilverStripe CMS
http://silverstripe.org/mobile/
BSD 3-Clause "New" or "Revised" License
35 stars 36 forks source link

FEATURE Ability to disable theme copy on dev/build #33

Closed tractorcow closed 9 years ago

tractorcow commented 11 years ago

Every dev/build the mobile module attempts to copy the blackcandymobile theme into the /themes directory.

I prefer to use a single responsive theme for mobile development, but I still use this module for mobile detection. Hence, having this redundant theme forcing its way into my project's working directory is aggravating.

To disable this behaviour with the attached code simply add the following snippet to your _config.php file

MobileSiteConfigExtension::$theme_copy_enabled = false;

Please let this option be a thing!

chillu commented 11 years ago

I would actually prefer to move these theme shenanigans to composer: Simply create two new repos for the blackcandymobile and jquerymobile themes, declare them as a "silverstripe-theme" type, and add instructions on how to use "composer require" to include them. With fallbacks to "download and unzip into this folder". @willr ?

tractorcow commented 9 years ago

Yes I agree :D