diff --git a/dist/mod02/index.js b/dist/mod02/index.js index bcd9cf0..100818c 100644 --- a/dist/mod02/index.js +++ b/dist/mod02/index.js @@ -24,6 +24,7 @@ let tap = function (configArg) { * the TabBuffer for npmts */ let npmtsTapBuffer = new plugins.tapbuffer.TabBuffer(); + npmtsTapBuffer.setConfig(configArg.testConfig); /** * handle the testable files */ diff --git a/dist/npmts.config.d.ts b/dist/npmts.config.d.ts index bc0fc81..fd2ad00 100644 --- a/dist/npmts.config.d.ts +++ b/dist/npmts.config.d.ts @@ -13,6 +13,7 @@ export interface INpmtsConfig { mode: npmtsMode; test: boolean; testTs: any; + testConfig: any; ts: any; tsOptions: any; watch: boolean; diff --git a/dist/npmts.config.js b/dist/npmts.config.js index bb83ab7..106829d 100644 --- a/dist/npmts.config.js +++ b/dist/npmts.config.js @@ -13,6 +13,9 @@ exports.run = function (argvArg) { mode: 'default', test: true, testTs: {}, + testConfig: { + parallel: true + }, ts: {}, tsOptions: {}, watch: false, diff --git a/package.json b/package.json index b3e8f27..a7e09d1 100644 --- a/package.json +++ b/package.json @@ -58,11 +58,11 @@ "smartstream": "^1.0.8", "smartstring": "^2.0.24", "smartsystem": "^1.0.17", - "tapbuffer": "^1.0.13", + "tapbuffer": "^1.0.14", "through2": "^2.0.3", "tsn": "^2.0.15", "typescript": "^2.3.4", - "typings-global": "^1.0.16" + "typings-global": "^1.0.17" }, "devDependencies": {} } diff --git a/ts/mod02/index.ts b/ts/mod02/index.ts index cfb69e2..440ff41 100644 --- a/ts/mod02/index.ts +++ b/ts/mod02/index.ts @@ -20,6 +20,8 @@ let tap = function (configArg: INpmtsConfig) { */ let npmtsTapBuffer = new plugins.tapbuffer.TabBuffer() + npmtsTapBuffer.setConfig(configArg.testConfig) + /** * handle the testable files */ diff --git a/ts/npmts.config.ts b/ts/npmts.config.ts index 127275b..869f6ba 100644 --- a/ts/npmts.config.ts +++ b/ts/npmts.config.ts @@ -19,6 +19,7 @@ export interface INpmtsConfig { mode: npmtsMode test: boolean testTs: any + testConfig: any ts: any tsOptions: any watch: boolean @@ -38,6 +39,9 @@ export let run = function (argvArg) { mode: 'default', test: true, testTs: {}, + testConfig: { + parallel: true + }, ts: {}, tsOptions: {}, watch: false, diff --git a/yarn.lock b/yarn.lock index 66bbafc..85a49d9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -65,8 +65,8 @@ resolved "https://registry.yarnpkg.com/@types/istanbul/-/istanbul-0.4.29.tgz#29c8cbb747ac57280965545dc58514ba0dbb99af" "@types/lodash@^4.14.50", "@types/lodash@^4.14.55", "@types/lodash@^4.14.62", "@types/lodash@^4.14.64": - version "4.14.65" - resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.65.tgz#a0f78d71ffcd3c02628d5f616410c98c424326d5" + version "4.14.66" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.66.tgz#3dbb83477becf130611f8fac82a8fdb199805981" "@types/minimatch@2.x.x", "@types/minimatch@^2.0.29": version "2.0.29" @@ -76,9 +76,9 @@ version "2.2.41" resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.41.tgz#e27cf0817153eb9f2713b2d3f6c68f1e1c3ca608" -"@types/node@*": - version "7.0.29" - resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.29.tgz#ccfcec5b7135c7caf6c4ffb8c7f33102340d99df" +"@types/node@*", "@types/node@^7.0.29": + version "7.0.31" + resolved "https://registry.yarnpkg.com/@types/node/-/node-7.0.31.tgz#80ea4d175599b2a00149c29a10a4eb2dff592e86" "@types/promises-a-plus@*": version "0.0.27" @@ -88,10 +88,20 @@ version "0.0.32" resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5" -"@types/q@1.0.0", "@types/q@1.x.x", "@types/q@^1.x.x", "@types/q@x.x.x": +"@types/q@1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@types/q/-/q-1.0.0.tgz#57e5465d665b370d4217e69b344b20faa6b724f5" +"@types/q@1.x.x", "@types/q@^1.x.x", "@types/q@x.x.x": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@types/q/-/q-1.0.1.tgz#dbccb01bd8f0f801a12a4604c7d7af59bb02ae2f" + +"@types/shelljs@^0.6.0": + version "0.6.0" + resolved "https://registry.yarnpkg.com/@types/shelljs/-/shelljs-0.6.0.tgz#090b705c102ce7fc5c0c5ea9b524418ff15840df" + dependencies: + "@types/node" "*" + "@types/source-map-support@^0.2.28": version "0.2.28" resolved "https://registry.yarnpkg.com/@types/source-map-support/-/source-map-support-0.2.28.tgz#ce6497dfa9c9fbd21a753955b4a51d8993d759dd" @@ -110,6 +120,10 @@ dependencies: "@types/node" "*" +"@types/which@^1.0.28": + version "1.0.28" + resolved "https://registry.yarnpkg.com/@types/which/-/which-1.0.28.tgz#016e387629b8817bed653fe32eab5d11279c8df6" + "@types/yargs@6.x.x": version "6.6.0" resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-6.6.0.tgz#91f8e2580a8083049f78311c059aa57d6949df6b" @@ -295,9 +309,9 @@ babylon@^6.1.21, babylon@^6.17.2: version "6.17.3" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.17.3.tgz#1327d709950b558f204e5352587fd0290f8d8e48" -balanced-match@^0.4.1: - version "0.4.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" bcrypt-pbkdf@^1.0.0: version "1.0.1" @@ -373,10 +387,10 @@ boom@2.x.x: hoek "2.x.x" brace-expansion@^1.1.7: - version "1.1.7" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.7.tgz#3effc3c50e000531fb720eaff80f0ae8ef23cf59" + version "1.1.8" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292" dependencies: - balanced-match "^0.4.1" + balanced-match "^1.0.0" concat-map "0.0.1" braces@^1.8.2: @@ -421,8 +435,8 @@ chai-as-promised@^6.0.0: check-error "^1.0.2" chai-string@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/chai-string/-/chai-string-1.3.0.tgz#df6139f294391b1035be5606f60a843b3a5041e7" + version "1.4.0" + resolved "https://registry.yarnpkg.com/chai-string/-/chai-string-1.4.0.tgz#359140c051d36a4e4b1a5fc6b910152f438a8d49" chai@^3.5.0: version "3.5.0" @@ -975,11 +989,11 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" fsevents@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.1.tgz#f19fd28f43eeaf761680e519a203c4d0b3d31aff" + version "1.1.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.1.2.tgz#3282b713fb3ad80ede0e9fcf4611b5aa6fc033f4" dependencies: nan "^2.3.0" - node-pre-gyp "^0.6.29" + node-pre-gyp "^0.6.36" fstream-ignore@^1.0.5: version "1.0.5" @@ -1335,12 +1349,18 @@ is-glob@^3.1.0: dependencies: is-extglob "^2.1.0" -is-number@^2.0.2, is-number@^2.1.0: +is-number@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" dependencies: kind-of "^3.0.2" +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + dependencies: + kind-of "^3.0.2" + is-posix-bracket@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" @@ -1474,6 +1494,12 @@ kind-of@^3.0.2: dependencies: is-buffer "^1.1.5" +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + dependencies: + is-buffer "^1.1.5" + lazy-cache@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" @@ -1652,11 +1678,11 @@ loose-envify@^1.0.0: js-tokens "^3.0.0" lru-cache@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.0.tgz#59be49a683b8d986a939f1ca60fdb6989f4b2046" + version "4.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.1.tgz#622e32e82488b49279114a4f9ecf45e7cd6bba55" dependencies: - pseudomap "^1.0.1" - yallist "^2.0.0" + pseudomap "^1.0.2" + yallist "^2.1.2" lru-queue@0.1: version "0.1.0" @@ -1774,7 +1800,7 @@ next-tick@1: version "1.0.0" resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" -node-pre-gyp@^0.6.29: +node-pre-gyp@^0.6.36: version "0.6.36" resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.6.36.tgz#db604112cb74e0d477554e9b505b17abddfab786" dependencies: @@ -1851,7 +1877,7 @@ oauth-sign@~0.8.1: version "0.8.2" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" -object-assign@4.1.0, object-assign@^4.0.0, object-assign@^4.0.1, object-assign@^4.1.0: +object-assign@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.0.tgz#7a3b3d0e98063d43f4c03f2e8ae6cd51a86883a0" @@ -1859,6 +1885,10 @@ object-assign@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-3.0.0.tgz#9bedd5ca0897949bca47e7ff408062d549f587f2" +object-assign@^4.0.0, object-assign@^4.0.1, object-assign@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + object.omit@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" @@ -1916,8 +1946,8 @@ ora@^0.2.1, ora@^0.2.3: object-assign "^4.0.1" ora@^1.1.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/ora/-/ora-1.2.0.tgz#32fb3183500efe83f5ea89101785f0ee6060fec9" + version "1.3.0" + resolved "https://registry.yarnpkg.com/ora/-/ora-1.3.0.tgz#80078dd2b92a934af66a3ad72a5b910694ede51a" dependencies: chalk "^1.1.1" cli-cursor "^2.1.0" @@ -2066,7 +2096,7 @@ projectinfo@^3.0.2: smartstring "2.0.24" typings-global "^1.0.14" -pseudomap@^1.0.1: +pseudomap@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" @@ -2083,11 +2113,11 @@ qs@~6.4.0: resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" randomatic@^1.1.3: - version "1.1.6" - resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb" + version "1.1.7" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.7.tgz#c7abe9cc8b87c0baa876b19fde83fd464797e38c" dependencies: - is-number "^2.0.2" - kind-of "^3.0.2" + is-number "^3.0.0" + kind-of "^4.0.0" rc@^1.1.7: version "1.2.1" @@ -2282,8 +2312,8 @@ rimraf@2, rimraf@^2.3.3, rimraf@^2.5.1, rimraf@^2.6.1: glob "^7.0.5" rxjs@^5.3.0, rxjs@^5.3.1: - version "5.4.0" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.4.0.tgz#a7db14ab157f9d7aac6a56e655e7a3860d39bf26" + version "5.4.1" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.4.1.tgz#b62f757f279445d265a18a58fb0a70dc90e91626" dependencies: symbol-observable "^1.0.1" @@ -2307,7 +2337,7 @@ set-immediate-shim@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz#4b2b1b27eb808a9f8dcc481a58e5e56f599f3f61" -shelljs@^0.7.7: +shelljs@^0.7.6: version "0.7.8" resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.8.tgz#decbcf874b0d1e5fb72e14b164a9683048e9acb3" dependencies: @@ -2502,11 +2532,21 @@ smartq@^1.0.4, smartq@^1.1.0, smartq@^1.1.1: typings-global "^1.0.14" smartrequest@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/smartrequest/-/smartrequest-1.0.4.tgz#86af2163ae28f1031b01c2d8ad8c429733920611" + version "1.0.6" + resolved "https://registry.yarnpkg.com/smartrequest/-/smartrequest-1.0.6.tgz#a006454332453b0a70d38a003a29963d039a7783" dependencies: + smartq "^1.1.1" + typings-global "^1.0.17" + +smartshell@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/smartshell/-/smartshell-1.0.6.tgz#27b1c79029784abe72ac7e91fe698b7ebecc6629" + dependencies: + "@types/shelljs" "^0.6.0" + "@types/which" "^1.0.28" + shelljs "^0.7.6" smartq "^1.1.0" - typings-global "^1.0.14" + which "^1.2.12" smartstream@^1.0.8: version "1.0.8" @@ -2725,8 +2765,8 @@ symbol-observable@^1.0.1: resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-1.0.4.tgz#29bf615d4aa7121bdd898b22d4b3f9bc4e2aa03d" systemjs@^0.20.12: - version "0.20.13" - resolved "https://registry.yarnpkg.com/systemjs/-/systemjs-0.20.13.tgz#adcdee167291996e54e8c9ede62da6d50c7f130f" + version "0.20.14" + resolved "https://registry.yarnpkg.com/systemjs/-/systemjs-0.20.14.tgz#b29812f01b2c7ee867c3fc153b01fca4ea20c4d7" tap-mocha-reporter@^3.0.3: version "3.0.3" @@ -2744,17 +2784,17 @@ tap-mocha-reporter@^3.0.3: readable-stream "^2.1.5" tap-parser@^5.1.0: - version "5.3.3" - resolved "https://registry.yarnpkg.com/tap-parser/-/tap-parser-5.3.3.tgz#53ec8a90f275d6fff43f169e56a679502a741185" + version "5.4.0" + resolved "https://registry.yarnpkg.com/tap-parser/-/tap-parser-5.4.0.tgz#6907e89725d7b7fa6ae41ee2c464c3db43188aec" dependencies: events-to-array "^1.0.1" js-yaml "^3.2.7" optionalDependencies: readable-stream "^2" -tapbuffer@^1.0.13: - version "1.0.13" - resolved "https://registry.yarnpkg.com/tapbuffer/-/tapbuffer-1.0.13.tgz#9fc92f64237d3a4d8c854c2fbd18f8230f9eced1" +tapbuffer@^1.0.14: + version "1.0.14" + resolved "https://registry.yarnpkg.com/tapbuffer/-/tapbuffer-1.0.14.tgz#c8e0d4888b1652c1756b0a0beb80862ce8df8a90" dependencies: "@types/istanbul" "^0.4.29" beautylog "^6.1.1" @@ -2894,15 +2934,16 @@ typed-promisify@^0.3.0: resolved "https://registry.yarnpkg.com/typed-promisify/-/typed-promisify-0.3.0.tgz#1ba0af5e444c87d8047406f18ce49092a1191853" typescript@^2.1.5, typescript@^2.3.4: - version "2.3.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.3.4.tgz#3d38321828231e434f287514959c37a82b629f42" + version "2.4.0" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.4.0.tgz#aef5a8d404beba36ad339abf079ddddfffba86dd" -typings-global@*, typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.3: - version "1.0.16" - resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.16.tgz#489b71781af24268750c2899316400a5e482961f" +typings-global@*, typings-global@^1.0.14, typings-global@^1.0.16, typings-global@^1.0.17, typings-global@^1.0.3: + version "1.0.17" + resolved "https://registry.yarnpkg.com/typings-global/-/typings-global-1.0.17.tgz#41edc331ccec3168289adc8849e1e255efbe7152" dependencies: + "@types/node" "^7.0.29" semver "^5.3.0" - shelljs "^0.7.7" + smartshell "^1.0.6" typings-test@^1.0.3: version "1.0.3" @@ -2912,8 +2953,8 @@ typings-test@^1.0.3: typings-global "*" uglify-js@^2.6: - version "2.8.28" - resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.28.tgz#e335032df9bb20dcb918f164589d5af47f38834a" + version "2.8.29" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.29.tgz#29c5733148057bb4e1f75df35b7a9cb72e6a59dd" dependencies: source-map "~0.5.1" yargs "~3.10.0" @@ -2955,8 +2996,8 @@ util-deprecate@~1.0.1: resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" uuid@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" + version "3.1.0" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.1.0.tgz#3dd3d3e790abc24d7b0d3a034ffababe28ebbc04" vali-date@^1.0.0: version "1.0.0" @@ -3047,7 +3088,7 @@ which-module@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" -which@^1.1.1, which@^1.2.4, which@^1.2.9: +which@^1.1.1, which@^1.2.12, which@^1.2.4, which@^1.2.9: version "1.2.14" resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5" dependencies: @@ -3094,7 +3135,7 @@ y18n@^3.2.1: version "3.2.1" resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" -yallist@^2.0.0: +yallist@^2.1.2: version "2.1.2" resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" @@ -3129,8 +3170,8 @@ yargs@^6.0.0: yargs-parser "^4.2.0" yargs@^8.0.1: - version "8.0.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.1.tgz#420ef75e840c1457a80adcca9bc6fa3849de51aa" + version "8.0.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" dependencies: camelcase "^4.1.0" cliui "^3.2.0"