_diff
_diff
_s
WordPress starter theme, the LESS version.
[Underscores Theme Diff] — Tool to track changes of The _s
, Underscores Starter Theme for WordPress should not be used as parent theme. OK, but is there any good way to track changes (and eventually implement them back)?
Hence this project.
_diff allows you to pull source files from _s-LESS
folder into underscores
destination folder. Such renamed destination template can be further put under version controll to track changes in batches and even to use as parent theme if you really need to. Haha [evil laught].
The LESS files are combined into one to ease reading and editing when pulled into single file. This is a default behaviour, but you can disable it by setting $_diff->combineLESS = false;
in the config.php
.
Only files in lowercase are included by default. To include all set $_diff->skipALLCAPSFiles = false;
in config.php
.
See comments in _config.php for more options.
Enjoy!
@martin_adamko
1. Installation
-
Download or clone _s-LESS theme and install it by copying/uploading to
/wp-content/themes
-
Download and extract zip of this project or use
git clone
command -
Upload
_diff
project directory next to the_s-LESS
into/wp-content/themes
-
Navigate to
_diff
in the browser, e.g. http://www.example.com/wp-content/themes/_diff, theconfig.php
should be created. -
Edit
config.php
2. Running
Navigate to _diff
in the browser, e.g.
http://www.example.com/wp-content/themes/_diff. The script copies the content of _s-LESS
direcotory into destination.
LESS files are combined into ONE style.less file for easier tracking of chages.
Warning: All destination files are overwritten by default.