Skip to content

Commit

Permalink
✨ feat: Update remark
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Jan 7, 2025
1 parent f7b795b commit e03229b
Show file tree
Hide file tree
Showing 10 changed files with 87 additions and 84 deletions.
26 changes: 15 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@
"dev": "lerna run dev --parallel",
"dev:commit": "npm run dev --prefix=packages/lobe-commit",
"dev:i18n": "npm run dev --prefix=packages/lobe-i18n",
"dev:label": "npm run dev --prefix=packages/lobe-label",
"dev:seo": "npm run dev --prefix=packages/lobe-seo",
"dev:ui": "npm run dev --prefix=packages/lobe-cli-ui",
"link:commit": "npm run link --prefix=packages/lobe-commit",
"link:i18n": "npm run link --prefix=packages/lobe-i18n",
"link:label": "npm run link --prefix=packages/lobe-label",
"link:seo": "npm run link --prefix=packages/lobe-seo",
"lint": "eslint \"{src,packages}/**/*.{js,jsx,ts,tsx}\" --fix",
"lint:md": "remark . --quiet --output",
"prepare": "husky",
Expand Down Expand Up @@ -51,29 +55,29 @@
]
},
"devDependencies": {
"@commitlint/cli": "^19.6.0",
"@commitlint/cli": "^19.6.1",
"@lobehub/cli-shebang": "^1.0.2",
"@lobehub/lint": "^1.24.4",
"@lobehub/lint": "^1.25.3",
"@sindresorhus/tsconfig": "^5.1.1",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.17.7",
"@types/node": "^20.17.12",
"@types/pangu": "^4.0.2",
"@types/react": "^18.3.12",
"@types/react": "^19.0.3",
"@types/update-notifier": "^6.0.8",
"@umijs/lint": "^4.3.35",
"@umijs/lint": "^4.4.4",
"@vitest/coverage-v8": "~1.2.2",
"clean-pkg-json": "^1.2.0",
"commitlint": "^19.6.0",
"commitlint": "^19.6.1",
"eslint": "^8.57.1",
"husky": "^9.1.7",
"ink-testing-library": "^3.0.0",
"lerna": "^8.1.9",
"lint-staged": "^15.2.10",
"lint-staged": "^15.3.0",
"multi-semantic-release": "^3.0.2",
"pkgroll": "^2.5.1",
"prettier": "^3.3.3",
"remark": "^14.0.3",
"remark-cli": "^11.0.0",
"pkgroll": "^2.6.1",
"prettier": "^3.4.2",
"remark": "^15.0.1",
"remark-cli": "^12.0.1",
"semantic-release": "^21.1.2",
"stylelint": "^15.11.0",
"ts-node": "^10.9.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/lobe-cli-shebang/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"commander": "^12.1.0",
"commander": "^13.0.0",
"consola": "^3.2.3",
"update-notifier": "^7.2.0"
},
Expand Down
10 changes: 5 additions & 5 deletions packages/lobe-cli-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"@inkjs/ui": "^1",
"arr-rotate": "^1",
"consola": "^3",
"fast-deep-equal": "^3",
"figures": "^6",
"@inkjs/ui": "^1.0.0",
"arr-rotate": "^1.0.0",
"consola": "^3.3.3",
"fast-deep-equal": "^3.1.3",
"figures": "^6.1.0",
"ink": "^4.4.1",
"react": "^18.3.1"
},
Expand Down
26 changes: 13 additions & 13 deletions packages/lobe-commit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,27 +48,27 @@
},
"dependencies": {
"@inkjs/ui": "^1.0.0",
"@langchain/core": "^0.2.20",
"@langchain/openai": "^0.2.5",
"@langchain/core": "^0.3.27",
"@langchain/openai": "^0.3.16",
"@lobehub/cli-ui": "1.10.1",
"chalk": "^5.3.0",
"commander": "^12.1.0",
"conf": "^12.0.0",
"dotenv": "^16.4.5",
"execa": "^8.0.1",
"chalk": "^5.4.1",
"commander": "^13.0.0",
"conf": "^13.1.0",
"dotenv": "^16.4.7",
"execa": "^9.5.2",
"fast-deep-equal": "^3.1.3",
"gitconfig": "^2.0.8",
"gpt-tokenizer": "^2.2.1",
"gpt-tokenizer": "^2.8.1",
"ink": "^4.4.1",
"langchain": "^0.2.12",
"langchain": "^0.3.10",
"lodash-es": "^4.17.21",
"octokit": "^3.2.1",
"octokit": "^4.0.3",
"pangu": "^4.0.7",
"path-exists": "^5.0.0",
"react": "^18.3.1",
"swr": "^2.2.5",
"update-notifier": "^7.2.0",
"zustand": "^4.5.4",
"swr": "^2.3.0",
"update-notifier": "^7.3.1",
"zustand": "^5.0.3",
"zustand-utils": "^1.3.2"
},
"engines": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"buttons": {
"cancel": "取消",
"ok": "好的"
"ok": "确定"
}
}
12 changes: 6 additions & 6 deletions packages/lobe-i18n/examples/markdown/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Lobe i18n

- [x] 🤖 Automate i18n using ChatGPT
- [x] ✂️ Support automatic splitting of large files to avoid ChatGPT token limitations
- [x] ♻️ Support incremental updates for i18n, automatically extract new content based on `entry` files
- [x] 🗂️ Support both single file mode `en.json` and folder `en/common.json`, works well with `i18next`
- [x] 🌲 Support `flat` and `tree` style locale files
- [x] 🛠️ Customize OpenAI model, API proxy, and temperature support
- [x] 🤖 Automate i18n translation using ChatGPT
- [x] ✂️ Support automatic splitting of large files, eliminating concerns about ChatGPT token limits
- [x] ♻️ Support incremental i18n updates, automatically extracting new content according to the `entry` file
- [x] 🗂️ Support single file mode `en.json` and folder mode `en/common.json`, perfectly compatible with `i18next`
- [x] 🌲 Support for `flat` and `tree` locale files
- [x] 🛠️ Support for custom OpenAI models, API proxies, and temperature settings
42 changes: 21 additions & 21 deletions packages/lobe-i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,42 +55,42 @@
},
"dependencies": {
"@inkjs/ui": "^1.0.0",
"@langchain/core": "^0.2.20",
"@langchain/openai": "^0.2.5",
"@langchain/core": "^0.3.27",
"@langchain/openai": "^0.3.16",
"@lobehub/cli-ui": "1.10.1",
"chalk": "^5.3.0",
"commander": "^12.1.0",
"conf": "^12.0.0",
"consola": "^3.2.3",
"chalk": "^5.4.1",
"commander": "^13.0.0",
"conf": "^13.1.0",
"consola": "^3.3.3",
"cosmiconfig": "^9.0.0",
"dirty-json": "^0.9.2",
"dotenv": "^16.4.5",
"dotenv": "^16.4.7",
"fast-deep-equal": "^3.1.3",
"glob": "^10.4.5",
"gpt-tokenizer": "^2.2.1",
"glob": "^11.0.0",
"gpt-tokenizer": "^2.8.1",
"gray-matter": "^4.0.3",
"ink": "^4.4.1",
"json-stable-stringify": "^1.1.1",
"json-stable-stringify": "^1.2.1",
"just-diff": "^6.0.2",
"langchain": "^0.2.12",
"langchain": "^0.3.10",
"lodash-es": "^4.17.21",
"p-map": "^7.0.2",
"p-map": "^7.0.3",
"pangu": "^4.0.7",
"react": "^18.3.1",
"remark-frontmatter": "^4.0.1",
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.2",
"remark-stringify": "^10.0.3",
"swr": "^2.2.5",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-parse": "^11.0.0",
"remark-stringify": "^11.0.0",
"swr": "^2.3.0",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"update-notifier": "^7.2.0",
"zustand": "^4.5.4"
"update-notifier": "^7.3.1",
"zustand": "^5.0.3"
},
"devDependencies": {
"@types/json-stable-stringify": "^1.0.36",
"@types/json-stable-stringify": "^1.1.0",
"@types/lodash-es": "^4.17.12",
"@types/node": "^20.16.13",
"@types/node": "^22.10.5",
"@types/unist": "^3.0.3"
},
"engines": {
Expand Down
1 change: 0 additions & 1 deletion packages/lobe-i18n/src/utils/convertMarkdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export const convertMdastToMarkdown = async (json: any): Promise<string> => {
bullet: '-',
emphasis: '*',
fences: true,
listItemIndent: 1,
rule: '-',
strong: '*',
tightDefinitions: true,
Expand Down
10 changes: 5 additions & 5 deletions packages/lobe-label/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
"dependencies": {
"@inkjs/ui": "^1.0.0",
"@lobehub/cli-ui": "1.10.1",
"@octokit/rest": "^20.1.1",
"commander": "^12.1.0",
"conf": "^12.0.0",
"consola": "^3.2.3",
"@octokit/rest": "^21.0.2",
"commander": "^13.0.0",
"conf": "^13.1.0",
"consola": "^3.3.3",
"ink": "^4.4.1",
"lodash-es": "^4.17.21",
"react": "^18.3.1",
"update-notifier": "^7.2.0"
"update-notifier": "^7.3.1"
},
"engines": {
"node": ">=18"
Expand Down
40 changes: 20 additions & 20 deletions packages/lobe-seo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,39 +56,39 @@
},
"dependencies": {
"@inkjs/ui": "^1.0.0",
"@langchain/core": "^0.2.20",
"@langchain/openai": "^0.2.5",
"@langchain/core": "^0.3.27",
"@langchain/openai": "^0.3.16",
"@lobehub/cli-ui": "1.10.1",
"chalk": "^5.3.0",
"commander": "^12.1.0",
"conf": "^12.0.0",
"consola": "^3.2.3",
"chalk": "^5.4.1",
"commander": "^13.0.0",
"conf": "^13.1.0",
"consola": "^3.3.3",
"cosmiconfig": "^9.0.0",
"dotenv": "^16.4.5",
"dotenv": "^16.4.7",
"fast-deep-equal": "^3.1.3",
"glob": "^10.4.5",
"gpt-tokenizer": "^2.2.1",
"glob": "^11.0.0",
"gpt-tokenizer": "^2.8.1",
"gray-matter": "^4.0.3",
"ink": "^4.4.1",
"json-stable-stringify": "^1.1.1",
"json-stable-stringify": "^1.2.1",
"just-diff": "^6.0.2",
"langchain": "^0.2.12",
"langchain": "^0.3.10",
"lodash-es": "^4.17.21",
"p-map": "^7.0.2",
"p-map": "^7.0.3",
"pangu": "^4.0.7",
"react": "^18.3.1",
"remark-frontmatter": "^4.0.1",
"remark-gfm": "^3.0.1",
"remark-parse": "^10.0.2",
"remark-stringify": "^10.0.3",
"swr": "^2.2.5",
"remark-frontmatter": "^5.0.0",
"remark-gfm": "^4.0.0",
"remark-parse": "^11.0.0",
"remark-stringify": "^11.0.0",
"swr": "^2.3.0",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"update-notifier": "^7.2.0",
"zustand": "^4.5.4"
"update-notifier": "^7.3.1",
"zustand": "^5.0.3"
},
"devDependencies": {
"@types/json-stable-stringify": "^1.0.36"
"@types/json-stable-stringify": "^1.1.0"
},
"engines": {
"node": ">=18"
Expand Down

0 comments on commit e03229b

Please sign in to comment.