From 9e8aeb0ea77f473c504a7b34023b817d8092ac2f Mon Sep 17 00:00:00 2001 From: Bin-Huang Date: Sat, 5 Oct 2019 17:57:18 +0800 Subject: [PATCH 1/6] Fix ci --- .travis.yml | 2 +- tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 50f530b..c41853a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,4 @@ install: script: - npm test - - mkdir coverage && nyc report --reporter=json > coverage/coverage.json && codecov -f coverage/*.json + - nyc report --reporter=text-lcov > coverage.lcov && codecov diff --git a/tsconfig.json b/tsconfig.json index 088fe10..82f49c5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ "declaration": true /* Generates corresponding '.d.ts' file. */, "declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */, - // "sourceMap": true, /* Generates corresponding '.map' file. */ + "sourceMap": true /* Generates corresponding '.map' file. */, // "outFile": "./", /* Concatenate and emit output to single file. */ "outDir": "./dist" /* Redirect output structure to the directory. */, // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ From ff14ed5f71be827654d9fa60c7d07fbc36259c72 Mon Sep 17 00:00:00 2001 From: Bin-Huang Date: Sat, 5 Oct 2019 17:59:28 +0800 Subject: [PATCH 2/6] Tweak tsconfig.json --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 82f49c5..904f907 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ "declaration": true /* Generates corresponding '.d.ts' file. */, "declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */, - "sourceMap": true /* Generates corresponding '.map' file. */, + // "sourceMap": true /* Generates corresponding '.map' file. */, // "outFile": "./", /* Concatenate and emit output to single file. */ "outDir": "./dist" /* Redirect output structure to the directory. */, // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ From 3d61546e0a28650a7a1c32f3603797e05af0b473 Mon Sep 17 00:00:00 2001 From: Bin-Huang Date: Sat, 5 Oct 2019 18:23:57 +0800 Subject: [PATCH 3/6] Tmp --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e6b8bf7..01aaf22 100644 --- a/package.json +++ b/package.json @@ -28,13 +28,13 @@ "license": "ISC", "dependencies": {}, "devDependencies": { - "@types/sinon": "^7.5.0", "ava": "^2.4.0", "husky": "^3.0.7", "nyc": "^14.1.1", "prettier": "^1.18.2", "pretty-quick": "^1.11.1", "sinon": "^7.4.2", + "@types/sinon": "^7.5.0", "typescript": "^3.6.3" } } From eb04ee3d36658cbcd00b1ac8e3df6ebeeb221a60 Mon Sep 17 00:00:00 2001 From: Bin-Huang Date: Sat, 5 Oct 2019 19:28:11 +0800 Subject: [PATCH 4/6] coveralls --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index c41853a..92a4e81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,8 +5,7 @@ node_js: install: - npm ci - - npm install codecov -g + - npm install coveralls --save-dev script: - - npm test - - nyc report --reporter=text-lcov > coverage.lcov && codecov + - npm test && nyc npm test && nyc report --reporter=text-lcov | coveralls From f5e730c07697be741b8d118ddcd38cf2679de16d Mon Sep 17 00:00:00 2001 From: Bin-Huang Date: Sat, 5 Oct 2019 19:37:50 +0800 Subject: [PATCH 5/6] Add code coverage badge --- README.md | 3 ++- TODO | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9121bc1..9bc1689 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -![](https://img.shields.io/npm/v/prray) +[![Package version](https://img.shields.io/npm/v/prray)](https://www.npmjs.com/package/prray) +[![Coverage Status](https://coveralls.io/repos/github/Bin-Huang/prray/badge.svg?branch=tweak-ci)](https://coveralls.io/github/Bin-Huang/prray?branch=tweak-ci) Prray -- "Promisified" Array, comes with async method supports(such as mapAsync). And it is compatible with normal array. diff --git a/TODO b/TODO index 62c7e20..f6740b4 100644 --- a/TODO +++ b/TODO @@ -6,7 +6,7 @@ ## Document polish -[] shieIds +[] badge [] contribute (issues, pr, fork) [] back [] benchmark From 90777d8b55a95c3d3461fe73a5288d1de881de03 Mon Sep 17 00:00:00 2001 From: Bin-Huang Date: Sat, 5 Oct 2019 19:56:41 +0800 Subject: [PATCH 6/6] Tweak --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 92a4e81..5873962 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ install: - npm install coveralls --save-dev script: - - npm test && nyc npm test && nyc report --reporter=text-lcov | coveralls + - npm test && nyc report --reporter=text-lcov | coveralls