Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

So Im planning to use Html5Boilerplate as a base to build a new WP Theme on. The Boilerplate comes with the Builder, a handy Tool for minifiying, concatenating and compressing ones Website for obvious reasons: speed/performance-gain, easier mobile access and so on.

I would very much like to use this feature with my theme. Problem: The builder outputs the processed files into a subdir /publish. Without WP one could use a .htaccess rule to reroute the base domain, e.g. mysite.net to mysite.net/publish. This is the method proposed by Html5Boilerplate.

Since I can't possibly use this approach in a Theme, I would need a way to tell WP to go looking for the Theme's files in the /publish subdir of the actual Theme dir. Anyone know a way to do that?

Alternatively, is there a way to tell The build script to look for the source Files in a subdir, and to subsequently publish the files into the theme root?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

There are several starter themes out there based on HTML5 Boilerplate, so you may find that forking one of them is a better option that rolling your own.

share|improve this answer
    
Thanks, this will get me started! –  Anatol Sep 15 '12 at 22:50

Looks like someone has the documentation to assist with this:

https://github.com/h5bp/ant-build-script/wiki/Configuration-Cookbook

share|improve this answer
    
Thanks for anwering, thats a usefukl link! This is another issue that arises with WP and h5bp, but changing the style / js reference paths that the builder outputs is not my original problem. I need builder to deploy to my theme root directory, instead of the /publish subdirectory. –  Anatol Aug 16 '12 at 12:50
1  
I was looking over the config/project.properties. On line 104 there look like the place where you would override the setting for the publish directory –  nvwd Aug 16 '12 at 13:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.