Fixes from PR comments

This commit is contained in:
James Kyle 2016-08-08 17:32:28 -07:00
parent 9eb12e2c34
commit f36d07d303
2 changed files with 192 additions and 1 deletions

View File

@ -31,7 +31,193 @@ export function Plugin(alias) {
}
// Sorry about all the MBs...
export const guy = "https://medium.com/friendship-dot-js/i-peeked-into-my-node-modules-directory-and-you-wont-believe-what-happened-next-b89f63d21558"; // eslint-disable-line max-len
/* eslint-disable max-len */
export const guy = [
" ` `",
" ` ` `",
" ``.``` . `` ` `. `",
" ``````` ` ` ` ` . . ``",
" ```. `.```. ... ``..```` `",
" ` ` `` .`.`` ..`.``....`.`.`....` .",
" ` ..` `. ..``.`....``....```.....``` `",
" ` `. ``.``.`.````.`.```...`.....``...````",
" ` . ...`,..`..```...``.````. `.```.`` .`",
" .` .````....`.````````````````````.````` ``",
" . .` ``.`.`.``````````````````.`````````` ` `",
" `.`` .```..`.````````````````````````````` `````",
" `.` ...```.`````````````````````````````.``.`...",
" ` ``..``````````````````````````````````````.`.``.` `",
" ``````.`````````````````````````````````` ``..``` `.",
" ``..``````````````` .````````````````````.`..``` . `",
" .` `` .`.``.```.``````````.```````````````````.``...`. `",
" .``` .`.```````````````````````````````````````````.`. ``",
" ` ```` ....````````````..````` ```````````````````````.`. `",
" ` ````..``````` ```````.`````` ````````` `````````..`..`.",
" . ` `. ``.```````````````````` ```.````` `````.```.``..`. .",
" ` ``` `````` ``````````.``````````.````````.``.```.``..`.```",
" `` ``. ````````` ``````````````..`````````.```. `````.`..``",
" `````.` ` ``````````.` ` ````````````````.` `.``.`````````. `.",
" ` `.` `````` ````.```````````````.`.```````````````````.``.`",
" ``` `.````````` ``` ``````````````````````````````````````...``",
" ``` `.`````` `````````.``````.````.``````````````````````.``.",
" `.` `.` ````````````.````````.`````````````````````` ````````.`",
" ` ` ``` ``` ``` `.``````````.```.`..``..``.`````` `````.`..",
" ``````. `````` `` ``````.``.``.`````..``````.````.`` ``````... `",
" ```````..```````` ````.`.```````````..````````.```````````..``",
" `.````` ` ````` ` `````.``.``````....``````.`.`..````````.```..",
" `````.```` ``` `` ````````.````.``..`.` ````.`.``.`````````.``",
" ` `` `.`.`` ` ` ` ```.`````````````.``.``.`.`...``....``````.` `",
" ``..```````` ` `. ``````...`````````````.`.`.`.....,,....````..`",
" `.`,``````.``` `` ` .```..`````````.```````..,,...,,,,...```````",
" `.`.`` ``````` ``````.`````````````````..`........,,,,...`````.````",
" `.``.```````` ` ``.`..``.`....````````............,,,,,,..`````.",
" ` ...`````````` `````.`.......`````````..`..`.......,,,,,,.`..`.`. `",
" ``..`````````````.`..........`````````````........,.,,,,,........`",
" ``````````````````.............````````````........,,,,,,.`.......",
" .````. ``` `` `.....``.......`.````````````........,,,,,,,.....`.`",
" `` `` ```` `````.............``````````````.......,,,,,,:,.......``",
" ``.`` ``` ````................``````````.......,,,,,:,,,...`...`",
" ` .````` ``.````................`````````........,,.,,:,::,......`",
" ``````````` `````.................```````.........,,,,,:,,:..`..,.`",
" ```.``````` ```....................```..........,,,,,,,,::,.`.....`",
" . `.``````..````.......,............``.........,,,,,,,,,,:,...,...",
" `. ``````.`.````.,.............................,,,,,,,:,:,....,..`",
" `. `````..`.````.,...,........................,,,,,,,,,,::,...,..",
" ``.``````....```..,,.,,,,......................,,,,,,,,,:::,,.,,.`",
" `````````.``.```...,.,,,,,....................,,,,,,,,,,,::,,,.,,`",
" `.``.`.``..``.....,.,..,,,....................,,,,,,,,,,:::,.,.,,",
" .```.`..``.```.``.,.,,.,,,,,..................,,,,,,,,,,:::,,.,,`",
" ` .```.........``..,,,,,,,.....................,,,,,,,,,,:::,,..,`",
" `` `.````,`,`.```..,,,..,,,.......................,,,,,,,,:::,..,",
" `````````.`..``...,,,.,,,........................,.,,,,,,:::;,.,.",
" .`....````,..`.`.,,,,,,,,,........................,,,,,,::::',.,.",
" ```.... ``.`..`.`,,,,,,,,.,.......................,,,,,,::::;:,,.",
" ```.,..` ```.. `..,,,,,,,,.,......................,,,,,,,:::;;,:;.",
" ``...,,,..``.`.`..,,,,,,,,.......................,,,,,,,:::::;,.;`",
" ````,,.,,..`.`...,,,,,,,,..........`..........,,,,,,,,,,::::;,.:`",
" `.``...`..```.`.,,,,,,,,....................,,,,,,,,,::::::;:,;.",
" `.``.`.,``...`.,,,,,,,,,...................,,,,,,::;;;';;::::,;,",
" ......`````...,:,,,,,,,,,..............,,,,,,:::'''''''''::::,:,",
" `.....,.......,,,,,,,,,.,,......,,...,,,,,,::;;'++++++''';:::,,,",
" `..````.......,:,,,,,,,,..,..,...,,,,,,,,,,,:;'++##++''';;;:::,,.",
" ..``..`..,,:,,,,,,,,,,...,,,..,,:,,,,,,,,,:;'+++'';;;;::;::::.`",
" `..,.`..,..,,:,,,,,,,,,,,.,,,::::::::,::,,:;'''';;;;;;;:::::::,`",
" `.,,..,,,...:,,,,,,,,:,::::;;''';;::::,::::;;'''+####++;::::::,`",
" ``.,:,,,.`..,,,,,,,,,::;;;''+++''';;::,,,,:;''++#@@@####;:::::,.`",
" .,:;,,,,.:.:,,,,,,,:;''''++++++';;;::,,,:;'+'''@'@@#+++';::::,,",
" ..';',,.:.,,,,,,,,:;;'''+''+';;;;;;;:,,,:;'+'###+';'';;'::,:::.",
" `:::;:,,...,,,,,,;;'''';;:;;;;;;;;;:,..,;+##';;:;;;::::::,,::`",
" ,::,,::....,.,,,,;;;;;;:::'#++;;;;;:...,;++';;:::::::;:,:,::;`",
" ,;;:,,.....,,.,,:;;;;:;;+@@@'+'';;':.`.,:''';:::::::;:,,,,::;",
" .;;':::....,,,,,:;;;;;+##@@#+###'';:.`..,;;;;;;;;;;;;:,,:,,:;",
" `;;+':,....,,..,:;;;;###@+#+'';;:;::.`..,,;:::;;;;;:.,,:,:::;`",
" ;;'';,,....,,,,,:;;+++';::;;::;;;,:....,,,::,,,:,,...,,::::;,",
" :;;'',..,...,,,,:;;;,:,,:,::;;;::,,......,:,,,.......,,,::,;:",
" :';;':....,,,,::::;:,,,,,,:;;;:::,.....,.,,,,........,,,::,;:",
" .;:;;:.,,,,,,,,:,.,,:,,:::;;::,:,,......,,,,,........,,,,:,;:",
" :;;;;,..,,,,,,...,.,:::;;;;:,,,,...``..,..,,........,,,,:,;:",
" :;;::,,,,,,,,,..,.,,::;;::,.,,,,...```..,,:,,........,,,,,:;",
" .:::;:.:,,,,,,,,.,,............,..`.``.,,:;:,,.......,,,,,:;",
" ,:::;:,:,,,,,,,.....``.`.........````..,;'';,......,,,,,,,:",
" :;,:;::,,:,,,,......````.`....,,,.```..,;;'',,,,,,.,,,,,,,'",
" ,:.:;:::,,,,,,.....````````...,:,,````.,;,,#':,,,,,,,,,,,,.,",
" ,,:;:;:::,,,,,....`````````.,:::,.```.,,.,:+;:,,,,,,,,,,,.,",
" ,:,,::::,:,,,.....````````.,:,,:,..``..,..,'';:,,,,:::,,:,`",
" ,,:,:::::,,,,......``````..::...,..``..,,,,'';;,,:,:::,::,`",
" ,.:,,::::,,,,.............,;:......```.,,,,''';:,::::::::,,",
" ,.,,::::,,,,............,:;:......``..,,,,''';::::::;::::'",
" ,..,::::,,,,,..........,:;::.........,,.:#''';;:::;;;;;;;`",
" ,.,,:::,,,,,..........,:;;::,,,,,...,,:;##';'+;:::;;;;;;:",
" `..,::::,,,,,,,.......::;;:::::::,,,,:;###':;+':::;;;;;;:",
" ..,::::,,,,,,,,,....,:;';::''';:::::;'##+;';'+;::;;;;;;:",
" :,,:::,,:,,,,,,,,...,:;;:::;'++';;;;;##+#''+++;;;;;;;;;,",
" ,,:::,,,:,,,,,,,,,,:;';;:;;+##++'''###++++'++';;;;;;;;.",
" `.:::::,:,:,::,,,,,::;';;;;;'+#+##++###++''++++;:;;;';;`",
" . `,:::::::::::::,,::;'';;;;'++++#+'+#+++':'+++;::;;;;;",
" , '::::::::::::::::;'''';;;''+++##'++'+';;++++;::;;;;'",
" : +:::::::::;::::::;'+';;';'+++++++++''''#+'++;:;;;;;'",
" . +:;::::::;:::;::;'+++''';'''+'++';;'';@#++++::;;';;:",
" :.+;;;:::::::;;:::;'+++''':;;;'';;;'';,;@#++++;:';;;'`",
" ,::;;;::;:::::;:::;++++''';;;;;;''';;::@##+'++;:;';;'",
" ':;;;;;;:;:;;;:::;+++#@;,,:,,,,.:.,::@@#+';'+:;;;;;'",
" #@';;;;:::::::;:::'+#+#@;,,.,.,`:,,'#@#+';;'+;;;;;',",
" +#:;;;;;;::::;::::;++'##@@#+#::.,'#####+';;'+'';;;'",
" ;@,;;;;;;;::;;:::::++';+#####++######++';;;;+''';;'",
" #@;';;;;;;::::::,,:;+;::'+##++++#+'#+'';;;:;++';;;,",
" `##@+;;;;;;::::;::,,;+::::;;'++''+++'';;;;;;;++'';;#@+",
" .;@#:';;';;:::::::,,;+;::,:::;;;'';;::;:;;:;;++';''@@@@@@@:`",
" ,+@@,';;;;;;::::;:,,;+;,,,,::,.,::,,:;;::::;;++';;'@@@@@@####@#;,;,`",
" ,+#@+';;'';;;:::::::;+;:,::,::,,..,::;;::::;'++';;'@@@@@@@@@@#######@@@:`",
" ,+###,';;'';;::::::,:+::,,::,::,,,,::;::::::;++';;'#@@@@@@##@##@@@@######@:`",
" .+;##:';;'';;;::::::;+',,,:::,,,,,:::;,:::::'++';''@@@@@@@@###@#############@; `",
" .'+#@#;;;;;;;;::::;::+':,,,,::,,,:,::,:,,:::'+#;;;'@@@@@@@@#####################@@",
" .':;@#,';;'';;:::;:::+'::,,,:::,,::,,...,,::'+#;;;'@@@@@@@@#######################@",
" `+@;+##'';;;;;:::::;;+'::.,,,,..,,,...,,,:::'+#';;'@#@@@@@#@#######################@",
" ;#@#'#@:';;;;;;;::::'+':,,,,,,....,....,,,::'+#';;'@#@@@@@#@########################+",
" ',+##+'@#:';;;;;:::::;++:,,,,,..,....,...,:,;'+++;;'@+#@@@@@@@########################'",
" `#;+#+#++#++;;;;;::::,;#'',...,...,,,..,`.,,:;++#+;;'@##@@@@###@########################'",
" ###:#'#+;@':+;;;;;::::;++':,.............,,,,;'###;;'@##@@@@@##@#########################'",
" #### #'##+@@',';;;;:::::#+;:,,.......`....:,.:;+##+';'@#@@@@@@###@#########################+",
" :####+:+@#+###+:;;;;;::,;+++;,,.,`,....`...,:,:'+#++;;+##+@@@@@##############################+",
" ###### ##'###@##;;;;;:::'##+':,,...`....,,.,:,;;###+';#:@##@@@@###############################+",
" +#######,#@###@@+#;;;;;:::+#+'::,..,,...,..,:::;'#+++';+:##+#@@@#################################",
" .########.#@###@@#'@;;;;;;;+##+;::,.,,.,..,,.,:;;+#+##+'+#+@'#@@@##################################",
" ########## @#@#@@##'@;;;;'++#++';;:,,,,,,,,,:,:'+##+#+''##,@;@@@@##################################.",
" ############,@###@@#++#;;;;'####''';:,,,,.,.,,:;'++###'';#@,#'@@@@@##################################",
" .###########'.#####@##+##;'+######++';;,,.,,.,.;;'+#++''';#@;+@@@@@###################################.",
" @##########';;`#@##@@##'@#'+#####+##+';;,,,,,,.;+++++'''';#@@;+##@@####################################;",
" ###########+;;;;;####@#''#@##########+#+':,.,:,,;++#+''''''+@@,#+#@@####################################@.",
" +##########+;;;;;;#@###@+''##############;;:,.::::+#''''''''+##:#;#@@####################################@#",
" :###########;;;;;;;;@###@@+'@@###+#+######'',,.:,;:++';'''';++@#+;:@@@@###################################@#,",
" ###########;;;;;;;;;;##@#@#'###@@#+++###+++'::,,,'';''''''''++#++.:#@@#######################################",
" +##########+;;;;;;;;;;:#@#@@++##@@@#@++####+';,,,,,;''''''''++'#;;@;@@########################################",
" `########+##;;;;;;;;;;;';###@#+##@@@@@;+';'+++;:,.,,;'''''''+++'##;#'@#@####################################@##",
" `###########+;;;;;;;;;;;;:'#@#@#+#@@@@@:#';;;;';:,,,:''''''''++''+#:####@####################################@##",
" .############;;;;;;;;;;;;;;,+#@###+@@@@@;#+';''';;;:,:''+''+'+++'++@@'###@#######################################,",
" `###########+';;;;;;;;;;;;;;;,'##@###@@@@#++'''''';,:,;'++++++++'''+#;;@##@@######################################@",
" ##########++#;;;;;;;;'';;;;;;','#@@###@@@@'#+''''';:::++++++++++'+'+;:,@##@########################################,",
" +############;;;;;;;;;''';;;;;;'.:#@###@@@@:#++''''';:+'####++++++'''#+.###@@######################################++",
" #########@###;;;;;;;;;;''';;;;;'',,#@###@@@:#++++++++##########+++'';+':#@#########################################+'.",
" '##+######@@@#;;;;;;;;;;;''';;;;;';,`#####@@'##+++++###########+++''';+:;@##@########################################''",
" ####+#######@#';;;;;;';;;;''';;;;;'':`##+#@@#+#################+++'';;#'########################################@#####'",
" :##############'';;;;;;;';;'''';;;;''';`:#+##@;#################++''';;+'###############################################:",
" ###########+###;'';;;';+;::,;''';;;;''''.`@##@,@##@@@@@@#########++';;;;,@######################################@#######:",
" #########+#+##++;'';;';;;''';;;''';;;;'''';`.@+.@@#@@@@@@@#######++''';;',###############################################+.",
" `#########++####;;;'+';;'';:;';'##+';;;'''''';`.,@@@@@@@@@@######+++'';;;+;################################################.",
" ###########+++#';;;;'';;;#':+,';+#'+';;;''''''';.`#@###@@@@######+++';;;;'#################################@###############'.",
" ;#############'';;;;;;;;;'+++;:+;,+#'';;;;''''''''+:`:+@##########++''';;;,@################################################+.",
" #############;;;;;;;;;;;;:'#+++;',,:#''';;'''''''''''+':,:+#@#####++'''';;.@###############################################'+'`",
" #############;;;;;;;;;;;;;;;+#;+++';;;++';;;''''''''''''++++;,;@##++''''';;:@################################################''`",
" .##########+#;;;;;;;;;;;;;;;;;#;+'#+';'#'+';;;''''''''''''''++++'.'++''''';;'@################################################;'`,",
" ###########++;;;;;;;;;;;;;';;;'+'++';,;'#''';;;'''''''''''''''+++++::'''';';#@##################################@####@########''`;:",
" ;#########@##;;;;;;;;;;;;;;;';;'+#+###'::;'+';;;''''''''''''''''++'''+::'';;,@##################################@##############+''. `",
" #####@@###+#;;;;;;;;;;;;;;+:+++''#####++::''+';;;''''''''''''''''''''''':;;;.###################################@@##############'''.",
" '###@@######';;;;;;;;;;;;;;#+##+''######'+;'++'';;;;''''''''''''''''''''''':'.#@@################################@@##############'''+@.",
" ###@@#######;;;;;;;;;;;;;;;;+##+''#######+':''+';;;;'''''''''''''''''''''''+:,##@################################@@##############+''+;,",
" '#@@####@@@@@;;;;;;;;;;;;;;;+++''+++###+;;#++:;''';;;;;''''''''''''''''''''''+;#@@################################@@###############''';'",
" #@########@@@#;;;;;;;;;;;;;;'''''#++++#++@;+++;:+';;;;;''''''''''''''''''''''+'@@#################################@@################'#+#`",
" ,@@###########@+;;;;;;;;;;;;;;;;;++'+++;:#'#;'++;'+';;;;;;'''''''''''''''''''''##@#################################@@#################++#:",
" #@#############+';;;;;;;;;;;;::::;+'+++;,#+#'++';''';;;;;;;''''''''''''''''''+;##@#################################@@##################'''",
" @#############;;;';;;;;;;;;;;:::;+##'+';;+#@+@+#:;''';;;;''''''''';''''''''''':##@##################################@###################''",
" +##############;;;;';;;;;;;;;;:::,'###'+;''++@#+##;''';;;;''''''''';;''''''''''.##@##################################@#################@#+'.",
" @##############;;;;;';;;;;;;;;:,::;###++;':'+';++##;''';;;''''';;''';';''''''''`##@##################################@################@###';",
" ;##############+;;;;;;;;;;;;;;;::,,;+####'',''+##+#';;'';;;;''''';''';;;''''''''`##@##################################@#############@##@####'",
" @#############++;;;;;;'';;;;;;;:,,,:'##+#'+''''+#+#+;;;+';;;''''';;'';;;''''''''.##@@#################################@###############@#####+,",
" ###############';;;;;;;';;;;;;;:,:,,;++'###+:'''#;###;;'+;;;;;'''';;;;;;'''''''',#####################################@@##@##########@@######'",
" :##############+;;;;;;;;;';;;;;;:,,,::+#@####;'''';##+;;'+';;;'''''';;;;;'''''''''###@##################################@##@##########@########",
" @###############;;;;;;;;;;';;;;;;;::,,;+###'#+,'';'##+;;;'+;;;;;'''''';;;''''''';+###@##################################@##@#########@@########:",
" ################;;;;;;;;;;;;;;;;;#;:,,:+##+@##;'+:''#;';;''';;;''''''''''''''''',####@##################################@##@########@@##########",
" `###############+;;;;;;;;;;;';;;;;;;':,,;+##+;##';+'',#;;;;'+;;;;''''''''''''''''.####@##################################@##@########@###########",
" ,#############+#+;;;;;;;;;;;;';;;;'#:;,,:;##;####+'+''++:;;''';;;;;'''''''''''''' #######################################@##@#######@@###########,",
" ###############';;;;;;;;;;;;;;';;;;'#'';;#':'#;##+++'',+;;;;'+;;;;;''''''''''''''`#######################################@##@#######@############'",
" @##########@;;;;;;;;;;;;;;;;;;;';;;''+':::'+#:@###++;+;'';;;''';;';'''''''''''''':#####@#################################@#@#######@############+;",
" ##########+;;;;;;;;;;;;;;;;;;;;';;;';,:',;#+#++'###+:'';;';;###;;;;';''''''''''';'#######################################@@@####################+',",
" `########@'';;;;;;;;;;;;;;;;;;;;;';;:';;;:#+;';'@+@#++;+::;;;@##';;;;;''''''''''':######@#################################@#@######@##############'+",
" ;#######@;;;;;;;;;;;;;;;;;;;;;;;;;';;:'''''##'#+,#'';+:'+':;;+##+;;;;;'''''''';''`######@#################################@@@@####################'+",
" @#######;'';;;;;;;;;;';';;;;;;;;;;';;',;,+,;###;+;####+'+':;'+##+';;;''''''''''''`######@#################################@@@#####################';`",
" #######;;'';;;;;;;;;;;'''';;;;;;;;'';',,'':'+###;@:##;;++::;+###++;;;''''''''''''.#######@################################@@@######################;:",
].join("\n");
/* eslint-enable max-len */
//

View File

@ -5,6 +5,7 @@ var sourceMap = require("source-map");
var assert = require("assert");
var File = require("../lib/transformation/file").default;
var Plugin = require("../lib/transformation/plugin");
var url = require("url");
function assertIgnored(result) {
assert.ok(result.ignored);
@ -428,6 +429,10 @@ suite("api", function () {
])
});
test("guy", function() {
assert.equal(typeof babel.guy, "string");
});
suite("env option", function () {
var oldBabelEnv = process.env.BABEL_ENV;
var oldNodeEnv = process.env.NODE_ENV;