Mirror: 🎩 A tiny but capable push & pull stream library for TypeScript and Flow
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Set up Sail CI and Codecov (#22)

authored by

Phil Plückthun and committed by
GitHub
9e0b5f5f 1552869f

+141 -25
+6
.codecov.yml
··· 1 + comment: off 2 + coverage: 3 + status: 4 + project: yes 5 + patch: no 6 + changes: no
+47
.sail.yml
··· 1 + workflow: 2 + - install 3 + - build 4 + - sail:parallel: 5 + - test 6 + - bundle 7 + - flowgen 8 + tasks: 9 + install: 10 + image: node:10 11 + command: 12 + - yarn 13 + args: 14 + - install 15 + - --frozen-lockfile 16 + build: 17 + image: node:10 18 + command: 19 + - yarn 20 + args: 21 + - run 22 + - build 23 + bundle: 24 + image: node:10 25 + command: 26 + - yarn 27 + args: 28 + - run 29 + - bundle 30 + test: 31 + image: node:10 32 + env: 33 + - CODECOV_TOKEN 34 + command: 35 + - yarn 36 + args: 37 + - run 38 + - run-s 39 + - coverage 40 + - codecov 41 + flowgen: 42 + image: node:10 43 + command: 44 + - yarn 45 + args: 46 + - run 47 + - flowgen
-18
.travis.yml
··· 1 - dist: trusty 2 - language: node_js 3 - node_js: 4 - - "10" 5 - sudo: false 6 - branches: 7 - only: 8 - - master 9 - notifications: 10 - email: 11 - on_success: change 12 - on_failure: always 13 - cache: yarn 14 - script: 15 - - yarn run build 16 - - yarn run bundle 17 - - yarn run flowgen 18 - - yarn run coverage
+14 -5
README.md
··· 2 2 3 3 A fast push & pull stream library for Reason, loosely following the [callbag spec](https://github.com/callbag/callbag) 4 4 5 - [![Build Status](https://travis-ci.org/kitten/wonka.svg?branch=master)](https://travis-ci.org/kitten/wonka) 6 - [![Coverage Status](https://coveralls.io/repos/github/kitten/wonka/badge.svg?branch=master)](https://coveralls.io/github/kitten/wonka?branch=master) 7 - [![npm](https://img.shields.io/npm/v/wonka.svg)](https://www.npmjs.com/package/wonka) 8 - [![npm](https://img.shields.io/npm/l/wonka.svg)](https://www.npmjs.com/package/wonka) 5 + <br> 6 + <a href="https://npmjs.com/package/wonka"> 7 + <img alt="NPM Version" src="https://img.shields.io/npm/v/wonka.svg" /> 8 + </a> 9 + <a href="https://npmjs.com/package/wonka"> 10 + <img alt="License" src="https://img.shields.io/npm/l/wonka.svg" /> 11 + </a> 12 + <a href="https://codecov.io/gh/kitten/wonka"> 13 + <img alt="Test Coverage" src="https://codecov.io/gh/kitten/wonka/branch/master/graph/badge.svg" /> 14 + </a> 15 + <a href="https://bundlephobia.com/result?p=wonka"> 16 + <img alt="Minified gzip size" src="https://img.shields.io/bundlephobia/minzip/wonka.svg?label=gzip%20size" /> 17 + </a> 18 + <br> 9 19 10 20 > “There’s no earthly way of knowing<br> 11 21 > Which direction we are going<br> ··· 77 87 - Usage Guides & Recipes 78 88 - Developer Guides (How to write a source/operator/sink) 79 89 - Modified Callbag spec 80 -
+3 -1
package.json
··· 27 27 "refmt": "bsrefmt --in-place **/**/*.{re,rei}", 28 28 "flowgen": "./scripts/generate-flow-files.js", 29 29 "bundle": "rollup -c rollup.config.js", 30 - "prepublishOnly": "run-s clean build bundle flowgen test" 30 + "prepublishOnly": "run-s clean build bundle flowgen test", 31 + "codecov": "codecov" 31 32 }, 32 33 "keywords": [ 33 34 "wonka", ··· 47 48 "devDependencies": { 48 49 "@glennsl/bs-jest": "^0.4.8", 49 50 "bs-platform": "^5.0.4", 51 + "codecov": "^3.5.0", 50 52 "flowgen": "^1.8.0", 51 53 "globby": "^9.2.0", 52 54 "husky": "^1.3.1",
+8
scripts/generate-flow-files.js
··· 18 18 const preamble = '// @flow\n\n'; 19 19 20 20 const genEntry = async () => { 21 + try { 22 + fs.mkdirSync(path.resolve(cwd, 'dist')); 23 + } catch (err) { 24 + if (err.code !== 'EEXIST') { 25 + throw err; 26 + } 27 + } 28 + 21 29 let entry = await readFile(path.resolve(cwd, 'index.js.flow'), { encoding: 'utf8' }); 22 30 23 31 entry = entry.replace(/.\/src/g, '../src');
+63 -1
yarn.lock
··· 466 466 resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.1.1.tgz#7d25ae05bb8ad1f9b699108e1094ecd7884adc1f" 467 467 integrity sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA== 468 468 469 + agent-base@^4.1.0: 470 + version "4.3.0" 471 + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee" 472 + integrity sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg== 473 + dependencies: 474 + es6-promisify "^5.0.0" 475 + 469 476 ajv@^6.5.5: 470 477 version "6.10.0" 471 478 resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.0.tgz#90d0d54439da587cd7e843bfb7045f50bd22bdf1" ··· 540 547 integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== 541 548 dependencies: 542 549 sprintf-js "~1.0.2" 550 + 551 + argv@^0.0.2: 552 + version "0.0.2" 553 + resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab" 554 + integrity sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas= 543 555 544 556 arr-diff@^4.0.0: 545 557 version "4.0.0" ··· 914 926 resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 915 927 integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= 916 928 929 + codecov@^3.5.0: 930 + version "3.5.0" 931 + resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.5.0.tgz#3d0748932f9cb41e1ad7f21fa346ef1b2b1bed47" 932 + integrity sha512-/OsWOfIHaQIr7aeZ4pY0UC1PZT6kimoKFOFYFNb6wxo3iw12nRrh+mNGH72rnXxNsq6SGfesVPizm/6Q3XqcFQ== 933 + dependencies: 934 + argv "^0.0.2" 935 + ignore-walk "^3.0.1" 936 + js-yaml "^3.13.1" 937 + teeny-request "^3.11.3" 938 + urlgrey "^0.4.4" 939 + 917 940 collection-visit@^1.0.0: 918 941 version "1.0.0" 919 942 resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" ··· 1211 1234 is-date-object "^1.0.1" 1212 1235 is-symbol "^1.0.2" 1213 1236 1237 + es6-promise@^4.0.3: 1238 + version "4.2.8" 1239 + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a" 1240 + integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w== 1241 + 1242 + es6-promisify@^5.0.0: 1243 + version "5.0.0" 1244 + resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-5.0.0.tgz#5109d62f3e56ea967c4b63505aef08291c8a5203" 1245 + integrity sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM= 1246 + dependencies: 1247 + es6-promise "^4.0.3" 1248 + 1214 1249 escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.4, escape-string-regexp@^1.0.5: 1215 1250 version "1.0.5" 1216 1251 resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" ··· 1712 1747 jsprim "^1.2.2" 1713 1748 sshpk "^1.7.0" 1714 1749 1750 + https-proxy-agent@^2.2.1: 1751 + version "2.2.1" 1752 + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz#51552970fa04d723e04c56d04178c3f92592bbc0" 1753 + integrity sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ== 1754 + dependencies: 1755 + agent-base "^4.1.0" 1756 + debug "^3.1.0" 1757 + 1715 1758 husky@^1.3.1: 1716 1759 version "1.3.1" 1717 1760 resolved "https://registry.yarnpkg.com/husky/-/husky-1.3.1.tgz#26823e399300388ca2afff11cfa8a86b0033fae0" ··· 2457 2500 resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" 2458 2501 integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== 2459 2502 2460 - js-yaml@^3.13.0: 2503 + js-yaml@^3.13.0, js-yaml@^3.13.1: 2461 2504 version "3.13.1" 2462 2505 resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" 2463 2506 integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== ··· 2991 3034 resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" 2992 3035 integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== 2993 3036 3037 + node-fetch@^2.2.0: 3038 + version "2.6.0" 3039 + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd" 3040 + integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA== 3041 + 2994 3042 node-int64@^0.4.0: 2995 3043 version "0.4.0" 2996 3044 resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" ··· 4232 4280 safe-buffer "^5.1.2" 4233 4281 yallist "^3.0.2" 4234 4282 4283 + teeny-request@^3.11.3: 4284 + version "3.11.3" 4285 + resolved "https://registry.yarnpkg.com/teeny-request/-/teeny-request-3.11.3.tgz#335c629f7645e5d6599362df2f3230c4cbc23a55" 4286 + integrity sha512-CKncqSF7sH6p4rzCgkb/z/Pcos5efl0DmolzvlqRQUNcpRIruOhY9+T1FsIlyEbfWd7MsFpodROOwHYh2BaXzw== 4287 + dependencies: 4288 + https-proxy-agent "^2.2.1" 4289 + node-fetch "^2.2.0" 4290 + uuid "^3.3.2" 4291 + 4235 4292 terser@^3.14.1: 4236 4293 version "3.17.0" 4237 4294 resolved "https://registry.yarnpkg.com/terser/-/terser-3.17.0.tgz#f88ffbeda0deb5637f9d24b0da66f4e15ab10cb2" ··· 4418 4475 version "0.1.0" 4419 4476 resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" 4420 4477 integrity sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI= 4478 + 4479 + urlgrey@^0.4.4: 4480 + version "0.4.4" 4481 + resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-0.4.4.tgz#892fe95960805e85519f1cd4389f2cb4cbb7652f" 4482 + integrity sha1-iS/pWWCAXoVRnxzUOJ8stMu3ZS8= 4421 4483 4422 4484 use@^3.1.0: 4423 4485 version "3.1.1"