Skip to content

Commit 42d46be

Browse files
committed
tests: add test run for webpack@3
and run all tests serially with npm-run-all
1 parent 42deb23 commit 42d46be

File tree

2 files changed

+110
-5
lines changed

2 files changed

+110
-5
lines changed

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"homepage": "https://github.com/JaKXz/stylelint-webpack-plugin#readme",
3232
"peerDependencies": {
3333
"stylelint": "^7.7.0",
34-
"webpack": "^2 || ^2.2.0-rc.0 || ^2.1.0-beta.0 || ^1.13.2"
34+
"webpack": "^3 || ^2 || ^2.2.0-rc.0 || ^2.1.0-beta.0 || ^1.13.2"
3535
},
3636
"dependencies": {
3737
"arrify": "^1.0.1",
@@ -49,15 +49,17 @@
4949
"memory-fs": "^0.4.1",
5050
"mocha": "^3.1.0",
5151
"npm-install-version": "^6.0.2",
52+
"npm-run-all": "^4.0.2",
5253
"nyc": "^11.0.2",
5354
"semistandard": "^11.0.0",
5455
"testdouble": "^3.0.0"
5556
},
5657
"scripts": {
5758
"pretest": "semistandard",
5859
"test:webpack1": "WEBPACK_VERSION=1 nyc mocha",
59-
"test:webpack2": "WEBPACK_VERSION=beta nyc mocha",
60-
"test": "npm run test:webpack1 && npm run test:webpack2",
60+
"test:webpack2": "WEBPACK_VERSION=2 nyc mocha",
61+
"test:webpack3": "WEBPACK_VERSION=3 nyc mocha",
62+
"test": "run-s test:*",
6163
"preversion": "npm run test",
6264
"version": "git add -A ."
6365
},

yarn.lock

Lines changed: 105 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ array-differ@^1.0.0:
124124
version "1.0.0"
125125
resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-1.0.0.tgz#eff52e3758249d33be402b8bb8e564bb2b5d4031"
126126

127+
array-filter@~0.0.0:
128+
version "0.0.1"
129+
resolved "https://registry.yarnpkg.com/array-filter/-/array-filter-0.0.1.tgz#7da8cf2e26628ed732803581fd21f67cacd2eeec"
130+
127131
array-find-index@^1.0.1:
128132
version "1.0.2"
129133
resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1"
@@ -132,6 +136,14 @@ array-ify@^1.0.0:
132136
version "1.0.0"
133137
resolved "https://registry.yarnpkg.com/array-ify/-/array-ify-1.0.0.tgz#9e528762b4a9066ad163a6962a364418e9626ece"
134138

139+
array-map@~0.0.0:
140+
version "0.0.0"
141+
resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662"
142+
143+
array-reduce@~0.0.0:
144+
version "0.0.0"
145+
resolved "https://registry.yarnpkg.com/array-reduce/-/array-reduce-0.0.0.tgz#173899d3ffd1c7d9383e4479525dbe278cab5f2b"
146+
135147
array-union@^1.0.1:
136148
version "1.0.2"
137149
resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39"
@@ -804,6 +816,14 @@ cross-spawn@^4, cross-spawn@^4.0.0:
804816
lru-cache "^4.0.1"
805817
which "^1.2.9"
806818

819+
cross-spawn@^5.0.1:
820+
version "5.1.0"
821+
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
822+
dependencies:
823+
lru-cache "^4.0.1"
824+
shebang-command "^1.2.0"
825+
which "^1.2.9"
826+
807827
808828
version "2.0.5"
809829
resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8"
@@ -1095,7 +1115,7 @@ error-ex@^1.2.0:
10951115
dependencies:
10961116
is-arrayish "^0.2.1"
10971117

1098-
es-abstract@^1.7.0:
1118+
es-abstract@^1.4.3, es-abstract@^1.7.0:
10991119
version "1.7.0"
11001120
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.7.0.tgz#dfade774e01bfcd97f96180298c449c8623fb94c"
11011121
dependencies:
@@ -1330,6 +1350,18 @@ event-emitter@~0.3.5:
13301350
d "1"
13311351
es5-ext "~0.10.14"
13321352

1353+
event-stream@~3.3.0:
1354+
version "3.3.4"
1355+
resolved "https://registry.yarnpkg.com/event-stream/-/event-stream-3.3.4.tgz#4ab4c9a0f5a54db9338b4c34d86bfce8f4b35571"
1356+
dependencies:
1357+
duplexer "~0.1.1"
1358+
from "~0"
1359+
map-stream "~0.1.0"
1360+
pause-stream "0.0.11"
1361+
split "0.3"
1362+
stream-combiner "~0.0.4"
1363+
through "~2.3.1"
1364+
13331365
execa@^0.4.0:
13341366
version "0.4.0"
13351367
resolved "https://registry.yarnpkg.com/execa/-/execa-0.4.0.tgz#4eb6467a36a095fabb2970ff9d5e3fb7bce6ebc3"
@@ -1513,6 +1545,10 @@ from2@^2.1.0:
15131545
inherits "^2.0.1"
15141546
readable-stream "^2.0.0"
15151547

1548+
from@~0:
1549+
version "0.1.7"
1550+
resolved "https://registry.yarnpkg.com/from/-/from-0.1.7.tgz#83c60afc58b9c56997007ed1a768b3ab303a44fe"
1551+
15161552
fs-vacuum@~1.2.10:
15171553
version "1.2.10"
15181554
resolved "https://registry.yarnpkg.com/fs-vacuum/-/fs-vacuum-1.2.10.tgz#b7629bec07a4031a2548fdf99f5ecf1cc8b31e36"
@@ -2500,6 +2536,10 @@ map-obj@^1.0.0, map-obj@^1.0.1:
25002536
version "1.0.1"
25012537
resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d"
25022538

2539+
map-stream@~0.1.0:
2540+
version "0.1.0"
2541+
resolved "https://registry.yarnpkg.com/map-stream/-/map-stream-0.1.0.tgz#e56aa94c4c8055a16404a0674b78f215f7c8e194"
2542+
25032543
mathml-tag-names@^2.0.0:
25042544
version "2.0.0"
25052545
resolved "https://registry.yarnpkg.com/mathml-tag-names/-/mathml-tag-names-2.0.0.tgz#eee615112a2b127e70f558d69c9ebe14076503d7"
@@ -2789,6 +2829,18 @@ npm-registry-client@~8.1.1:
27892829
optionalDependencies:
27902830
npmlog "2 || ^3.1.0 || ^4.0.0"
27912831

2832+
npm-run-all@^4.0.2:
2833+
version "4.0.2"
2834+
resolved "https://registry.yarnpkg.com/npm-run-all/-/npm-run-all-4.0.2.tgz#a84669348e6db6ccbe052200b4cdb6bfe034a4fe"
2835+
dependencies:
2836+
chalk "^1.1.3"
2837+
cross-spawn "^5.0.1"
2838+
minimatch "^3.0.2"
2839+
ps-tree "^1.0.1"
2840+
read-pkg "^2.0.0"
2841+
shell-quote "^1.6.1"
2842+
string.prototype.padend "^3.0.0"
2843+
27922844
npm-run-path@^1.0.0:
27932845
version "1.0.0"
27942846
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-1.0.0.tgz#f5c32bf595fe81ae927daec52e82f8b000ac3c8f"
@@ -3136,6 +3188,12 @@ pathval@^1.0.0:
31363188
version "1.1.0"
31373189
resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.0.tgz#b942e6d4bde653005ef6b71361def8727d0645e0"
31383190

3191+
3192+
version "0.0.11"
3193+
resolved "https://registry.yarnpkg.com/pause-stream/-/pause-stream-0.0.11.tgz#fe5a34b0cbce12b5aa6a2b403ee2e73b602f1445"
3194+
dependencies:
3195+
through "~2.3"
3196+
31393197
performance-now@^0.2.0:
31403198
version "0.2.0"
31413199
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5"
@@ -3295,6 +3353,12 @@ prr@~0.0.0:
32953353
version "0.0.0"
32963354
resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a"
32973355

3356+
ps-tree@^1.0.1:
3357+
version "1.1.0"
3358+
resolved "https://registry.yarnpkg.com/ps-tree/-/ps-tree-1.1.0.tgz#b421b24140d6203f1ed3c76996b4427b08e8c014"
3359+
dependencies:
3360+
event-stream "~3.3.0"
3361+
32983362
pseudomap@^1.0.2:
32993363
version "1.0.2"
33003364
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"
@@ -3728,6 +3792,25 @@ sha@~2.0.1:
37283792
graceful-fs "^4.1.2"
37293793
readable-stream "^2.0.2"
37303794

3795+
shebang-command@^1.2.0:
3796+
version "1.2.0"
3797+
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
3798+
dependencies:
3799+
shebang-regex "^1.0.0"
3800+
3801+
shebang-regex@^1.0.0:
3802+
version "1.0.0"
3803+
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
3804+
3805+
shell-quote@^1.6.1:
3806+
version "1.6.1"
3807+
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.6.1.tgz#f4781949cce402697127430ea3b3c5476f481767"
3808+
dependencies:
3809+
array-filter "~0.0.0"
3810+
array-map "~0.0.0"
3811+
array-reduce "~0.0.0"
3812+
jsonify "~0.0.0"
3813+
37313814
shelljs@^0.7.5:
37323815
version "0.7.8"
37333816
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3"
@@ -3816,6 +3899,12 @@ split2@^2.0.0:
38163899
dependencies:
38173900
through2 "^2.0.2"
38183901

3902+
3903+
version "0.3.3"
3904+
resolved "https://registry.yarnpkg.com/split/-/split-0.3.3.tgz#cd0eea5e63a211dfff7eb0f091c4133e2d0dd28f"
3905+
dependencies:
3906+
through "2"
3907+
38193908
split@^1.0.0:
38203909
version "1.0.0"
38213910
resolved "https://registry.yarnpkg.com/split/-/split-1.0.0.tgz#c4395ce683abcd254bc28fe1dabb6e5c27dcffae"
@@ -3856,6 +3945,12 @@ stream-combiner@^0.2.1:
38563945
duplexer "~0.1.1"
38573946
through "~2.3.4"
38583947

3948+
stream-combiner@~0.0.4:
3949+
version "0.0.4"
3950+
resolved "https://registry.yarnpkg.com/stream-combiner/-/stream-combiner-0.0.4.tgz#4d5e433c185261dde623ca3f44c586bcf5c4ad14"
3951+
dependencies:
3952+
duplexer "~0.1.1"
3953+
38593954
stream-each@^1.1.0:
38603955
version "1.2.0"
38613956
resolved "https://registry.yarnpkg.com/stream-each/-/stream-each-1.2.0.tgz#1e95d47573f580d814dc0ff8cd0f66f1ce53c991"
@@ -3889,6 +3984,14 @@ string-width@^2.0.0:
38893984
is-fullwidth-code-point "^2.0.0"
38903985
strip-ansi "^3.0.0"
38913986

3987+
string.prototype.padend@^3.0.0:
3988+
version "3.0.0"
3989+
resolved "https://registry.yarnpkg.com/string.prototype.padend/-/string.prototype.padend-3.0.0.tgz#f3aaef7c1719f170c5eab1c32bf780d96e21f2f0"
3990+
dependencies:
3991+
define-properties "^1.1.2"
3992+
es-abstract "^1.4.3"
3993+
function-bind "^1.0.2"
3994+
38923995
string_decoder@~0.10.x:
38933996
version "0.10.31"
38943997
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94"
@@ -4113,7 +4216,7 @@ through2@^2.0.0, through2@^2.0.2:
41134216
readable-stream "^2.1.5"
41144217
xtend "~4.0.1"
41154218

4116-
through@2, "through@>=2.2.7 <3", through@^2.3.6, through@~2.3.4:
4219+
through@2, "through@>=2.2.7 <3", through@^2.3.6, through@~2.3, through@~2.3.1, through@~2.3.4:
41174220
version "2.3.8"
41184221
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
41194222

0 commit comments

Comments
 (0)