Include additional browser choices in updater coffeescript file
Currently the update script updaters/lib/updater.coffee generates data for Firefox, Chrome, Safari, iOS, Opera, and IE. For mobile development work, it would help to also have supported android and bb identifiers added to the browsers: object.
# Can I Use browser names to internal
browsers:
firefox: 'ff'
chrome: 'chrome'
safari: 'safari'
ios_saf: 'ios'
opera: 'opera'
ie: 'ie'
android: 'android'
bb: 'bb'
This is very interesting question :).
Does we really need old Android browser, because new Android use Chrome (with the same version).
I will add old mobile browsers to data, but Autoprefixer will use it, only if you manually select them in browsers list. Is this API is god for you?
I would say yes for a couple of reasons:
Even with the newest versions of Android (4.2), the default native browser still isn't "Chrome for Android", which as a different browser requires it to be downloaded by the end user, and also has different levels of HTML5 support. CanIUse.com keeps "Chrome for Android" separate with the and_chr identifier instead of android or chrome.
The bb browser identifier in this case corresponds to both the BlackBerry 7 browser (old), as well as the BB10 browser (very new).
Adding android and bb to the update script above also helps developers using PhoneGap, which for the time being uses only the platform's native browser implementation.
Yes, selecting them from the browsers list with the -b option would be okay I think.
OK, try to add this after this weekend.
Done 03f9ed034c4080e898ca17a2ede408e01adceda8
I will release it tomorrow.
Done, released in version 0.4.20130528. Blackberry and Android browsers can be selected only manually:
Autoprefixer.compile(css, ['bb 10', 'android 4'])