From a297b2970efff8ee11dfed0e8716d6b869f769bc Mon Sep 17 00:00:00 2001 From: chenkai0520 Date: Thu, 25 Mar 2021 16:22:04 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BC=98=E5=8C=96=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 2 ++ docs/classes/default.md | 14 +++++++------- package.json | 7 +++---- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/README.md b/docs/README.md index 6ba3502..2f1375b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3,3 +3,5 @@ # @ckpack/i18n The smallest fastest internationalization library + +# [Documentation](docs/) diff --git a/docs/classes/default.md b/docs/classes/default.md index d79a602..4517811 100644 --- a/docs/classes/default.md +++ b/docs/classes/default.md @@ -46,7 +46,7 @@ Name | Type | Description | **Returns:** [*default*](default.md) -Defined in: [index.ts:8](https://github.com/ckpack/i18n/blob/71614d6/src/index.ts#L8) +Defined in: [index.ts:8](https://github.com/ckpack/i18n/blob/8461476/src/index.ts#L8) ## Properties @@ -54,7 +54,7 @@ Defined in: [index.ts:8](https://github.com/ckpack/i18n/blob/71614d6/src/index.t • **fallbackLocale**: *string* -Defined in: [index.ts:7](https://github.com/ckpack/i18n/blob/71614d6/src/index.ts#L7) +Defined in: [index.ts:7](https://github.com/ckpack/i18n/blob/8461476/src/index.ts#L7) ___ @@ -62,7 +62,7 @@ ___ • **locale**: *string* -Defined in: [index.ts:6](https://github.com/ckpack/i18n/blob/71614d6/src/index.ts#L6) +Defined in: [index.ts:6](https://github.com/ckpack/i18n/blob/8461476/src/index.ts#L6) ___ @@ -70,7 +70,7 @@ ___ • **messages**: messages -Defined in: [index.ts:8](https://github.com/ckpack/i18n/blob/71614d6/src/index.ts#L8) +Defined in: [index.ts:8](https://github.com/ckpack/i18n/blob/8461476/src/index.ts#L8) ## Methods @@ -87,7 +87,7 @@ Name | Type | **Returns:** *any* -Defined in: [index.ts:36](https://github.com/ckpack/i18n/blob/71614d6/src/index.ts#L36) +Defined in: [index.ts:36](https://github.com/ckpack/i18n/blob/8461476/src/index.ts#L36) ___ @@ -105,7 +105,7 @@ Name | Type | Description | **Returns:** *boolean* -Defined in: [index.ts:49](https://github.com/ckpack/i18n/blob/71614d6/src/index.ts#L49) +Defined in: [index.ts:49](https://github.com/ckpack/i18n/blob/8461476/src/index.ts#L49) ___ @@ -125,4 +125,4 @@ Name | Type | **Returns:** *any* -Defined in: [index.ts:30](https://github.com/ckpack/i18n/blob/71614d6/src/index.ts#L30) +Defined in: [index.ts:30](https://github.com/ckpack/i18n/blob/8461476/src/index.ts#L30) diff --git a/package.json b/package.json index dcfe0e4..9f0bc96 100644 --- a/package.json +++ b/package.json @@ -1,23 +1,22 @@ { "name": "@ckpack/i18n", - "version": "0.0.6", + "version": "0.0.7", "description": "The World's smallest fastest internationalization library", "repository": "https://github.com/ckpack/i18n", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "test": "jest", - "build": "npm run lint && npm run rollup", + "build": "npm run lint && npm run docs && npm run rollup", "tsc": "rm -rf ./lib/* && tsc", "rollup": "rm -rf ./dist/* && rollup --config", "lint": "eslint . --ext .js,.jsx,.ts,.tsx --fix", "docs": "rm -rf ./docs/* && typedoc --plugin typedoc-plugin-markdown ./src/index.ts", - "prebuild": "npm run test", "prepublish": "npm run test" }, "husky": { "hooks": { - "pre-commit": "npm test", + "pre-commit": "npm run build && npm test", "pre-push": "npm test" } },