From 662c3e869bf0888c62d0bb3b52885466eee984dd Mon Sep 17 00:00:00 2001 From: Roy Revelt Date: Wed, 16 Sep 2020 12:13:32 +0100 Subject: [PATCH] feat: add support for Tap (#199) * feat: support `tap` field * docs: add Tap to the list * chore: update snapshots --- README.md | 1 + index.js | 1 + tests/snapshots/cli.js.snap | Bin 1858 -> 1844 bytes tests/snapshots/main.js.md | 2 ++ tests/snapshots/main.js.snap | Bin 1177 -> 1185 bytes 5 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 02ac3a4d..62d46bac 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,7 @@ console.log(Object.keys(sorted)) - [Prettier](https://prettier.io/) - [remark](https://remark.js.org/) - [stylelint](https://github.com/stylelint/stylelint) +- [Tap](https://node-tap.org/) - [xojs](https://github.com/xojs/xo) _Alphabetically ordered._ diff --git a/index.js b/index.js index a7cc417c..82577e8c 100755 --- a/index.js +++ b/index.js @@ -243,6 +243,7 @@ const fields = [ { key: 'jest', over: sortObject }, { key: 'mocha', over: sortObject }, { key: 'nyc', over: sortObject }, + { key: 'tap', over: sortObject }, { key: 'resolutions', over: sortObject }, { key: 'dependencies', over: sortObject }, { key: 'devDependencies', over: sortObject }, diff --git a/tests/snapshots/cli.js.snap b/tests/snapshots/cli.js.snap index bc7ecc16b80703c121213ce6f14df1fb0fb32894..fe75905847a999cc2cc0d42d822d4de24fccaba8 100644 GIT binary patch literal 1844 zcmV-42g~?DRzVa9XY?5Z z<)ck`v{YyGd`SErRtPO}cbsXXx0Y|2LqA_$2p z8X0%vOWn5N>Z*^o$j7`(`RD~TAyabdt`wdq+`CD=EA?{ftNSP)4ev+D=3{s7Wj%Ll zMqXTO-SL%Y4pTm=9!SV<15}GgpKRHaQCl3}VA^qz^3mDxgyd~Vjg8QKcYBrf*8Gc~ z9Ggh_=&1xkKCC{g)tq~2u=Lu1$48p0QYar?GlGyC-<G@)ujrG!RNx)#I%+_pT1$_&R;o#b$n)oQU$vKUQ#M8^8hGZ<3@n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PHCt>(L!ydb>~EOfT_783H_JqeRY<+F&XX`!t-xi+>A2Tb8cpmo^JNxG)hh$ZRo{nJV<< z-JL-HlJO7_hO=b+90)1E9AJe9G7i*gA)S(C9kkr!+giSZ>D>orK*u(}mc6FsADw6! zA|QbbEz2FzHl3yC$soK0lmTyv^&G&~b69**=cf;njFNes1>Io~b=#M?EXZ{%l8|JC))^X*-fD@h%1kN^)sQQ$ff9@>!O& z5Cnr@NA+w=k})lbzf7rQ3TF4JFqy-vCb;cY3hrLdRi4{5GD|p=N~Pn{G+n1O&8pE` zj9nA8a!lO=<7fRHnhnn?Jiur2ETwg(z6nt*hRo;AdCl!fK?s{ zIDA&#tgPa!`8oLo`Ni2exmg_~+~B3QLgXy7-JMJoWp;ZK{HO&J;N+VQ*%td72VTq6 zoHP#Pj>f?#mUJhAkj0X29ted(+#3e@8ilh#ddf*`tr*IuoKwkq&4R8qvQM#@ZK{tT16lenO zis^yAkV*Muz0+@-b$zwO$TG9pv)Aa!Jo<8tp1jBZJ`b(`WjC3GwvJa(yUA>9H`}71?sP@UKygzrM4mj2H zHEB)bjF4!d^|?^UeOzf<@ev500Q-PLERAz=I}5Y|A>y|k*hS+CvBo70QKWJg99buh zbY>=Z)di6AnBv@DLcoNVELax<9FSl9P%?rvdo7bN~*BLTDT!bUPOVHNZ|*5IzDzGw=h@!V1E_ zf^bs^!13%Ltn{fMY`?CMOlj=Vc}-h%{-QlPUv@h>cQer$Cs8xoKT)KzKT(8ou^KP| w+t_jYE+~Hhxd_D7?6`dalolWvF?&%D#qB4c-u1_AUyj@V0{@-oS?4qW06*o6EdT%j diff --git a/tests/snapshots/main.js.md b/tests/snapshots/main.js.md index 3d9a735b..5b0f97f9 100644 --- a/tests/snapshots/main.js.md +++ b/tests/snapshots/main.js.md @@ -89,6 +89,7 @@ Generated by [AVA](https://avajs.dev). "source": "source",␊ "style": "style",␊ "stylelint": "stylelint",␊ + "tap": "tap",␊ "type": "type",␊ "types": "types",␊ "typings": "typings",␊ @@ -163,6 +164,7 @@ Generated by [AVA](https://avajs.dev). "jest": "jest",␊ "mocha": "mocha",␊ "nyc": "nyc",␊ + "tap": "tap",␊ "resolutions": "resolutions",␊ "dependencies": "dependencies",␊ "devDependencies": "devDependencies",␊ diff --git a/tests/snapshots/main.js.snap b/tests/snapshots/main.js.snap index 14bdce16e5f5c270b9fd58729f47950b5bced461..d186fd8ec9058f814a3423c55bc112d09fc06c6b 100644 GIT binary patch delta 1123 zcmV-p1f2Vs384vpK~_N^Q*L2!b7*gLAa*he0swwZK=iI!a{)TBMke@^lt3Sg2mk;8 z00003wOGM!+%^!EoZ7Ap1hJ8RfRl6c13ndLgQADF0rCL>SK`X_N~B6s>j*_JIT!te z{zDJ>h+NxyZ#nhWF9E<$w3>y;k@@oT9P~D%kdx0dTyi54Y(*pNUUAwh9NiQRaF$i=0d`3Jw&S9iVPL7TGnc@sVu#J(t|@?>7he|(W9(Da0B3Uw3u|V z3ZMC&TQ>Frjyw%~*)IIhsfVQR$9p%X&`)T07`lz~A?c>fS^WbmIO;tFoy$x}{>rU9 zfxR7I&%^X0y_uWl8~D20`vLYmzRRT2y!RlC9&cDt<|vZs^TyT#5ixm`O5@pSP2w$= z#%<#gc=y7>@R^q^*$sSw0H3YM@ja6c0v0>Yq{Op2B*5oJ6})5_thcjKsmu~U~V~{Wf+k$DbK|oKCrV%k#3FG1;abWhoJ9xeW#OO0vb7Htn*D#>mlgvWcpbY zjED~FU8?SgBpVf#+`wT&gSfQ9=phSON%NN7e5Fcxp=2M(LjrxuqTFS-ld=LSe}?xc z`1Pn&w_Jals}0LZ?{Vv4t-xUJ>{i(een$eB#5d`dBabHX)yAcrn|}X?gzrNi*8$Le zlCacf0IYcv8~y7Bm^?~lgu5kc)H_6~QF+yTLk8s@f^Pb(ZTx&~M9N=mx9<8y&4Z|` zN++;_nrige)( zG#J3`U4=mTsx^Uk*Tc?~EWwZU5U6id!@B>^e;Ji(r+5$y;M0dA^+Z*6TFFh%?^1@F zoAq2gE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