Skip to content

Commit 18581b3

Browse files
rwjbluetrentmwillis
authored andcommitted
Build: Fix (and add tests) missing required files in 2.9.0. (#1368)
* chore(tests) Add eslint-plugin-node for related files. [eslint-plugin-node](https://github.com/mysticatea/eslint-plugin-node) helps check for a large number of issues (deprecated APIs, requires from unpublished files, missing dependencies, etc). * chore(bin) Fix shebang in bin/qunit.js * fix(bin) Ensure /src/cli/* is published.
1 parent cbe24a4 commit 18581b3

File tree

6 files changed

+99
-22
lines changed

6 files changed

+99
-22
lines changed

bin/.eslintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
2+
"parserOptions": {
3+
"ecmaVersion": 2017
4+
},
25
"env": {
36
"node": true
7+
},
8+
"extends": ["plugin:node/recommended"],
9+
"rules": {
10+
"no-process-exit": "off"
411
}
512
}

bin/qunit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env node
1+
#!/usr/bin/env node
22

33
"use strict";
44

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
},
2727
"files": [
2828
"bin/",
29+
"src/cli/",
2930
"qunit/qunit.js",
3031
"qunit/qunit.css",
3132
"LICENSE.txt"
@@ -51,6 +52,7 @@
5152
"es6-promise": "^4.2.5",
5253
"eslint-config-jquery": "1.0.1",
5354
"eslint-plugin-html": "4.0.1",
55+
"eslint-plugin-node": "^8.0.1",
5456
"eslint-plugin-qunit": "3.2.0",
5557
"execa": "0.8.0",
5658
"fixturify": "0.3.4",

src/cli/.eslintrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
2+
"parserOptions": {
3+
"ecmaVersion": 2017
4+
},
25
"env": {
36
"node": true
7+
},
8+
"extends": ["plugin:node/recommended"],
9+
"rules": {
10+
"no-process-exit": "off"
411
}
512
}

src/cli/require-qunit.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ module.exports = function requireQUnit() {
1414

1515
// Second, we use the globally installed QUnit
1616
delete require.cache[ resolve.sync( "../../qunit/qunit" ) ];
17+
// eslint-disable-next-line node/no-missing-require, node/no-unpublished-require
1718
return require( "../../qunit/qunit" );
1819
} catch ( e ) {
1920
if ( e.code === "MODULE_NOT_FOUND" ) {
2021

2122
// Finally, we use the local development version of QUnit
2223
delete require.cache[ resolve.sync( "../../dist/qunit" ) ];
24+
// eslint-disable-next-line node/no-missing-require, node/no-unpublished-require
2325
return require( "../../dist/qunit" );
2426
}
2527

yarn.lock

Lines changed: 80 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,13 @@ debug@^3.1.0:
10461046
dependencies:
10471047
ms "^2.1.1"
10481048

1049+
debug@^4.1.0:
1050+
version "4.1.1"
1051+
resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
1052+
integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
1053+
dependencies:
1054+
ms "^2.1.1"
1055+
10491056
decamelize@^1.1.2:
10501057
version "1.2.0"
10511058
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
@@ -1230,13 +1237,33 @@ [email protected]:
12301237
resolved "https://registry.yarnpkg.com/eslint-config-jquery/-/eslint-config-jquery-1.0.1.tgz#a7fdd7bbc98a654bc77139c1f5535fadf0df23c8"
12311238
integrity sha1-p/3Xu8mKZUvHcTnB9VNfrfDfI8g=
12321239

1240+
eslint-plugin-es@^1.3.1:
1241+
version "1.4.0"
1242+
resolved "https://registry.yarnpkg.com/eslint-plugin-es/-/eslint-plugin-es-1.4.0.tgz#475f65bb20c993fc10e8c8fe77d1d60068072da6"
1243+
integrity sha512-XfFmgFdIUDgvaRAlaXUkxrRg5JSADoRC8IkKLc/cISeR3yHVMefFHQZpcyXXEUUPHfy5DwviBcrfqlyqEwlQVw==
1244+
dependencies:
1245+
eslint-utils "^1.3.0"
1246+
regexpp "^2.0.1"
1247+
12331248
12341249
version "4.0.1"
12351250
resolved "https://registry.yarnpkg.com/eslint-plugin-html/-/eslint-plugin-html-4.0.1.tgz#fc70072263cc938496fbbc9cf648660e41fa269a"
12361251
integrity sha512-w8mmUJQjtDMUNbw3NOa4+PjOH/r4W5T+RN2nCmYgXv+QHx+NiBodnbPHXmJFJgo7Dr0Yk4G/2LCIRhfKceNmNA==
12371252
dependencies:
12381253
htmlparser2 "^3.8.2"
12391254

1255+
eslint-plugin-node@^8.0.1:
1256+
version "8.0.1"
1257+
resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-8.0.1.tgz#55ae3560022863d141fa7a11799532340a685964"
1258+
integrity sha512-ZjOjbjEi6jd82rIpFSgagv4CHWzG9xsQAVp1ZPlhRnnYxcTgENUVBvhYmkQ7GvT1QFijUSo69RaiOJKhMu6i8w==
1259+
dependencies:
1260+
eslint-plugin-es "^1.3.1"
1261+
eslint-utils "^1.3.1"
1262+
ignore "^5.0.2"
1263+
minimatch "^3.0.4"
1264+
resolve "^1.8.1"
1265+
semver "^5.5.0"
1266+
12401267
12411268
version "3.2.0"
12421269
resolved "https://registry.yarnpkg.com/eslint-plugin-qunit/-/eslint-plugin-qunit-3.2.0.tgz#711b05091637ae8c9f826ffca333a5a00e354a97"
@@ -1250,6 +1277,11 @@ eslint-scope@^3.7.1:
12501277
esrecurse "^4.1.0"
12511278
estraverse "^4.1.1"
12521279

1280+
eslint-utils@^1.3.0, eslint-utils@^1.3.1:
1281+
version "1.3.1"
1282+
resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.3.1.tgz#9a851ba89ee7c460346f97cf8939c7298827e512"
1283+
integrity sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q==
1284+
12531285
eslint-visitor-keys@^1.0.0:
12541286
version "1.0.0"
12551287
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#3f3180fb2e291017716acb4c9d6d5b5c34a6a81d"
@@ -1725,14 +1757,14 @@ [email protected]:
17251757
chalk "^1.1.1"
17261758
file-sync-cmp "^0.1.0"
17271759

1728-
grunt-contrib-qunit@3.0.1:
1729-
version "3.0.1"
1730-
resolved "https://registry.yarnpkg.com/grunt-contrib-qunit/-/grunt-contrib-qunit-3.0.1.tgz#4b39fdceee69206aa15045d72f01866cc4f58d56"
1731-
integrity sha512-s994+ipKwc+oUUIWaGIw1soyID4pExSGMd/cHQN5h0p8KbIjR1Le3ZC3giSDDKXtZFE0i+Obf0uIjNvjftX2Cw==
1760+
grunt-contrib-qunit@3.1.0:
1761+
version "3.1.0"
1762+
resolved "https://registry.yarnpkg.com/grunt-contrib-qunit/-/grunt-contrib-qunit-3.1.0.tgz#91582a2d55ddb93a8c4d9fed26c9b2367bb13451"
1763+
integrity sha512-mdk8UltH6mxCD63E0hTXMAts42DOi4z4bBBrY7qnuHiShflMF7IueSMYe0zWaZ2dO8mgujh57Zfny2EbigJhRg==
17321764
dependencies:
17331765
eventemitter2 "^5.0.1"
17341766
p-each-series "^1.0.0"
1735-
puppeteer "1.7.0"
1767+
puppeteer "^1.11.0"
17361768

17371769
17381770
version "1.1.0"
@@ -1966,6 +1998,11 @@ ignore@^3.3.3:
19661998
resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043"
19671999
integrity sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==
19682000

2001+
ignore@^5.0.2:
2002+
version "5.0.4"
2003+
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.0.4.tgz#33168af4a21e99b00c5d41cbadb6a6cb49903a45"
2004+
integrity sha512-WLsTMEhsQuXpCiG173+f3aymI43SXa+fB1rSfbzyP4GkPP+ZFVuO0/3sFUGNBtifisPeDcl/uD/Y2NxZ7xFq4g==
2005+
19692006
imurmurhash@^0.1.4:
19702007
version "0.1.4"
19712008
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
@@ -2449,10 +2486,10 @@ [email protected]:
24492486
resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.1.tgz#2b327184e8992101177b28563fb5e7102acd0ca9"
24502487
integrity sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=
24512488

2452-
node-watch@0.5.9:
2453-
version "0.5.9"
2454-
resolved "https://registry.yarnpkg.com/node-watch/-/node-watch-0.5.9.tgz#da108bf9b5b28652ed1845523a30485c029a0b1c"
2455-
integrity sha512-W0SgGKaB9qSCfFfNj2uQZ/5BlVumaNHjVCAPdEoXrkEJ3ynSf/806LEz1rbDFbJ4+PL9G8IxRkJJTvZndd5D9g==
2489+
node-watch@0.6.0:
2490+
version "0.6.0"
2491+
resolved "https://registry.yarnpkg.com/node-watch/-/node-watch-0.6.0.tgz#ab0703b60cd270783698e57a428faa0010ed8fd0"
2492+
integrity sha512-XAgTL05z75ptd7JSVejH1a2Dm1zmXYhuDr9l230Qk6Z7/7GPcnAs/UyJJ4ggsXSvWil8iOzwQLW0zuGUvHpG8g==
24562493

24572494
[email protected], nopt@~3.0.6:
24582495
version "3.0.6"
@@ -2627,7 +2664,7 @@ path-key@^2.0.0:
26272664
resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40"
26282665
integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=
26292666

2630-
path-parse@^1.0.5:
2667+
path-parse@^1.0.5, path-parse@^1.0.6:
26312668
version "1.0.6"
26322669
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
26332670
integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==
@@ -2707,6 +2744,11 @@ progress@^2.0.0:
27072744
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f"
27082745
integrity sha1-ihvjZr+Pwj2yvSPxDG/pILQ4nR8=
27092746

2747+
progress@^2.0.1:
2748+
version "2.0.3"
2749+
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
2750+
integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
2751+
27102752
proxy-from-env@^1.0.0:
27112753
version "1.0.0"
27122754
resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.0.0.tgz#33c50398f70ea7eb96d21f7b817630a55791c7ee"
@@ -2753,19 +2795,19 @@ punycode@^1.4.1:
27532795
resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e"
27542796
integrity sha1-wNWmOycYgArY4esPpSachN1BhF4=
27552797

2756-
puppeteer@1.7.0:
2757-
version "1.7.0"
2758-
resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-1.7.0.tgz#edcba2300a50847202c0f19fd15e7a96171ff3bd"
2759-
integrity sha512-f+1DxKHPqce6CXUBz2eVO2WcATeVeQSOPG9GYaGObEZDCiCEUwG+gogjMsrvn7he2wHTqNVb5p6RUrwmr8XFBA==
2798+
puppeteer@^1.11.0:
2799+
version "1.11.0"
2800+
resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-1.11.0.tgz#63cdbe12b07275cd6e0b94bce41f3fcb20305770"
2801+
integrity sha512-iG4iMOHixc2EpzqRV+pv7o3GgmU2dNYEMkvKwSaQO/vMZURakwSOn/EYJ6OIRFYOque1qorzIBvrytPIQB3YzQ==
27602802
dependencies:
2761-
debug "^3.1.0"
2803+
debug "^4.1.0"
27622804
extract-zip "^1.6.6"
27632805
https-proxy-agent "^2.2.1"
27642806
mime "^2.0.3"
2765-
progress "^2.0.0"
2807+
progress "^2.0.1"
27662808
proxy-from-env "^1.0.0"
27672809
rimraf "^2.6.1"
2768-
ws "^5.1.1"
2810+
ws "^6.1.0"
27692811

27702812
qs@^6.4.0, qs@~6.5.2:
27712813
version "6.5.2"
@@ -2847,6 +2889,11 @@ regexpp@^1.0.1:
28472889
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-1.1.0.tgz#0e3516dd0b7904f413d2d4193dce4618c3a689ab"
28482890
integrity sha512-LOPw8FpgdQF9etWMaAfG/WRthIdXJGYp4mJ2Jgn/2lpkbod9jPn0t9UqN7AxBOKNfzRbYyVfgc7Vk4t/MpnXgw==
28492891

2892+
regexpp@^2.0.1:
2893+
version "2.0.1"
2894+
resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f"
2895+
integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw==
2896+
28502897
regexpu-core@^2.0.0:
28512898
version "2.0.0"
28522899
resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-2.0.0.tgz#49d038837b8dcf8bfa5b9a42139938e6ea2ae240"
@@ -2950,6 +2997,13 @@ resolve@^1.1.6:
29502997
dependencies:
29512998
path-parse "^1.0.5"
29522999

3000+
resolve@^1.8.1:
3001+
version "1.9.0"
3002+
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.9.0.tgz#a14c6fdfa8f92a7df1d996cb7105fa744658ea06"
3003+
integrity sha512-TZNye00tI67lwYvzxCxHGjwTNlUV70io54/Ed4j6PscB8xVfuBJpRenI/o6dVk0cY0PYTY27AgCoGGxRnYuItQ==
3004+
dependencies:
3005+
path-parse "^1.0.6"
3006+
29533007
restore-cursor@^2.0.0:
29543008
version "2.0.0"
29553009
resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf"
@@ -3038,6 +3092,11 @@ [email protected]:
30383092
resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e"
30393093
integrity sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==
30403094

3095+
semver@^5.5.0:
3096+
version "5.6.0"
3097+
resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004"
3098+
integrity sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==
3099+
30413100
30423101
version "0.16.2"
30433102
resolved "https://registry.yarnpkg.com/send/-/send-0.16.2.tgz#6ecca1e0f8c156d141597559848df64730a6bbc1"
@@ -3499,10 +3558,10 @@ write@^0.2.1:
34993558
dependencies:
35003559
mkdirp "^0.5.1"
35013560

3502-
ws@^5.1.1:
3503-
version "5.2.2"
3504-
resolved "https://registry.yarnpkg.com/ws/-/ws-5.2.2.tgz#dffef14866b8e8dc9133582514d1befaf96e980f"
3505-
integrity sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==
3561+
ws@^6.1.0:
3562+
version "6.1.2"
3563+
resolved "https://registry.yarnpkg.com/ws/-/ws-6.1.2.tgz#3cc7462e98792f0ac679424148903ded3b9c3ad8"
3564+
integrity sha512-rfUqzvz0WxmSXtJpPMX2EeASXabOrSMk1ruMOV3JBTBjo4ac2lDjGGsbQSyxj8Odhw5fBib8ZKEjDNvgouNKYw==
35063565
dependencies:
35073566
async-limiter "~1.0.0"
35083567

0 commit comments

Comments
 (0)