From 2528657cc6ac25bfa684073f172e7b2243b00da8 Mon Sep 17 00:00:00 2001 From: LiaoLiao Date: Fri, 15 Jul 2022 22:25:29 +0800 Subject: [PATCH] chore: update template, add LICENSE, update config (#311) --- .github/ISSUE_TEMPLATE/1-bug.md | 3 +-- .vscode/cspell.json | 2 +- packages/redis-health/.lintstagedrc.js | 2 +- packages/redis-health/LICENSE | 21 +++++++++++++++++++ packages/redis/.lintstagedrc.js | 2 +- packages/redis/LICENSE | 21 +++++++++++++++++++ .../redis/lib/redis/redis.providers.spec.ts | 2 +- 7 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 packages/redis-health/LICENSE create mode 100644 packages/redis/LICENSE diff --git a/.github/ISSUE_TEMPLATE/1-bug.md b/.github/ISSUE_TEMPLATE/1-bug.md index 49b8c61a..7c268d65 100644 --- a/.github/ISSUE_TEMPLATE/1-bug.md +++ b/.github/ISSUE_TEMPLATE/1-bug.md @@ -5,7 +5,7 @@ labels: 'type: bug' --- Your issue may already be reported! -Please search on the [issue tracker](../issues?q=is%3Aissue) before creating one. +Please search on the [issue tracker](../) before creating one. ## Expected Behavior @@ -46,4 +46,3 @@ Please search on the [issue tracker](../issues?q=is%3Aissue) before creating one - Node.js version: - Operating System and version (macOS, Windows, Linux): - Link to your project: -- ... diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 260b4cec..17469c7e 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -1,5 +1,5 @@ { "version": "0.2", "language": "en", - "words": ["commitlint", "nestjs", "tsdoc", "fastify", "pnpm", "liaoliaots"] + "words": ["commitlint", "nestjs", "tsdoc", "fastify", "pnpm", "liaoliaots", "healthcheck", "healthchecks"] } diff --git a/packages/redis-health/.lintstagedrc.js b/packages/redis-health/.lintstagedrc.js index 4199e4ae..40dcfc43 100644 --- a/packages/redis-health/.lintstagedrc.js +++ b/packages/redis-health/.lintstagedrc.js @@ -1,3 +1,3 @@ module.exports = { - '{lib,test}/**/*.ts': ['prettier --write', 'eslint', () => 'tsc -p tsconfig.json --noEmit'] + '{lib,test}/**/*.ts': ['prettier --write', 'eslint', () => 'tsc -p tsconfig.build.json --noEmit'] }; diff --git a/packages/redis-health/LICENSE b/packages/redis-health/LICENSE new file mode 100644 index 00000000..77621f87 --- /dev/null +++ b/packages/redis-health/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021-2022 LiaoLiao + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/redis/.lintstagedrc.js b/packages/redis/.lintstagedrc.js index 4199e4ae..40dcfc43 100644 --- a/packages/redis/.lintstagedrc.js +++ b/packages/redis/.lintstagedrc.js @@ -1,3 +1,3 @@ module.exports = { - '{lib,test}/**/*.ts': ['prettier --write', 'eslint', () => 'tsc -p tsconfig.json --noEmit'] + '{lib,test}/**/*.ts': ['prettier --write', 'eslint', () => 'tsc -p tsconfig.build.json --noEmit'] }; diff --git a/packages/redis/LICENSE b/packages/redis/LICENSE new file mode 100644 index 00000000..77621f87 --- /dev/null +++ b/packages/redis/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021-2022 LiaoLiao + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/redis/lib/redis/redis.providers.spec.ts b/packages/redis/lib/redis/redis.providers.spec.ts index c39429c8..bf8e01fc 100644 --- a/packages/redis/lib/redis/redis.providers.spec.ts +++ b/packages/redis/lib/redis/redis.providers.spec.ts @@ -14,7 +14,7 @@ import { REDIS_OPTIONS, REDIS_CLIENTS, REDIS_MERGED_OPTIONS } from './redis.cons import { namespaces } from './common'; import { RedisManager } from './redis-manager'; import { defaultRedisModuleOptions } from './default-options'; -console.log(); + jest.mock('ioredis', () => jest.fn(() => ({}))); class RedisConfigService implements RedisOptionsFactory {