[Underscores Theme Diff] — Tool to track changes of
_s WordPress starter theme, the LESS version.
_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
Only files in lowercase are included by default. To include all set
$_diff->skipALLCAPSFiles = false; in
See comments in _config.php for more options.
Download or clone _s-LESS theme and install it by copying/uploading to
Download and extract zip of this project or use
_diffproject directory next to the
_diffin the browser, e.g. http://www.example.com/wp-content/themes/_diff, the
config.phpshould be created.
_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.