Created
June 29, 2016 10:39
-
-
Save davidscotson/04b8a6208bfac2397d8107971f11186d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// A list of old CSS classes that can be grepped for in the code without | |
// causing false positives. See http://getbootstrap.com/migration/ | |
$oldstuff = array( | |
'span[0-9]', | |
'row-fluid', | |
'btn-mini', | |
'btn-small', | |
'btn-large', | |
'hero-unit', | |
'img-polariod', | |
'alert-error', | |
'label-important', | |
'input-block-lever', | |
'control-group', | |
'text-error', | |
'text-error', | |
'accordian-body', | |
'input-prepend', | |
'input-append', | |
); | |
$regex = implode('\|', $oldstuff); | |
$regex = '"(' . $regex . ')"'; | |
echo 'Run this command to find Bootstrap 2 markup that needs to be overriden'; | |
echo 'For details of what to replace them with see http://getbootstrap.com/migration/'; | |
echo "\n"; | |
echo "git grep $regex -- './*' ':!*.less'"; | |
echo "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment