Skip to content

Commit 8c914fa

Browse files
committed
docs: 完善文档
1 parent 8105626 commit 8c914fa

File tree

7 files changed

+17
-171
lines changed

7 files changed

+17
-171
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ mango-scripts
1010
| [@mango-scripts/i18n-utils](packages/i18n-utils) | [mango-i18n-system](https://github.com/AlbertLin0923/mango-i18n-system)  自动国际化文案配置系统的`文案解析器`,用于提取`中文文案key` |
1111
| [@mango-scripts/i18n-scripts](packages/i18n-scripts) | [mango-i18n-system](https://github.com/AlbertLin0923/mango-i18n-system)  自动国际化文案配置系统的`辅助插件合集`,用于下载语言包、转换 vue 文件等 |
1212
| [@mango-scripts/dev-scripts](packages/dev-scripts) | 一些便捷的前端开发脚本 |
13-
| [@mango-scripts/react-scripts](packages/react-scripts) | React Web 项目构建工具,支持 webpack && rsbuild 双构建引擎切换 |
13+
| [@mango-scripts/react-scripts](packages/react-scripts) | React Web App 项目构建工具,支持 webpack && rsbuild 双构建引擎切换 |
1414
| [@mango-scripts/esp-config](packages/esp-config) | 一个包含 `eslint``stylelint``prettier`  的配置文件合集 |
15-
| [@mango-scripts/babel-preset-mango](packages/babel-preset-mango) | 通用 React App Babel 配置 |
15+
| [@mango-scripts/babel-preset-mango](packages/babel-preset-mango) | React Web App 项目通用 Babel 配置 |
1616
| [@mango-scripts/utils](packages/utils) | mango-scripts 内部工具库 |
1717

1818
## License

Diff for: packages/babel-preset-mango/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@mango-scripts/babel-preset-mango
33
</h1>
44
<p align="center">
5-
通用 React App Babel 配置
5+
React Web App 项目通用 Babel 配置
66
<p>
77
<p align="center">
88
<a href="https://www.npmjs.com/package/@mango-scripts/babel-preset-mango" target="__blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@mango-scripts/babel-preset-mango?label=" alt="NPM version"></a>

Diff for: packages/babel-preset-mango/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@mango-scripts/babel-preset-mango",
33
"version": "0.0.2",
4-
"description": "通用 React App Babel 配置",
4+
"description": "React Web App 项目通用 Babel 配置",
55
"keywords": [
66
"mango-scripts",
77
"babel-preset"

Diff for: packages/i18n-scripts/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,14 @@ pnpm add @mango-scripts/i18n-scripts -D
2828
从国际化文案配置系统下载语言包文件并进行对比和梳理
2929

3030
```bash
31-
i18n-scripts updateLocale
31+
32+
i18n-scripts updateLocale -f http://xxx:5003/api/locale/get_locale_map -o ./src/locales/common/ -l zh-CN en-US id-ID
3233
```
3334

35+
其中
36+
37+
-o 参数为 在业务项目里存储语言包的目录地址,例如:./src/locales/common/ -f 参数为 部署的服务器的地址和端口,例如:http://xxx:5003/api/locale/get_locale_map -l 参数为 需要下载的语言包列表,例如:zh-CN en-US id-ID
38+
3439
### insertI18n
3540

3641
`vue` 文件添加 `$t('xxx')` 国际化 i18n 标识

Diff for: packages/react-scripts/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@mango-scripts/react-scripts
33
</h1>
44
<p align="center">
5-
React Web 项目构建工具,支持 webpack && rsbuild 双构建引擎切换
5+
React Web App 项目构建工具,支持 webpack && rsbuild 双构建引擎切换
66
<p>
77
<p align="center">
88
<a href="https://www.npmjs.com/package/@mango-scripts/react-scripts" target="__blank" rel="noopener noreferrer"><img src="https://img.shields.io/npm/v/@mango-scripts/react-scripts?label=" alt="NPM version"></a>

Diff for: packages/react-scripts/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
"postcss-normalize": "^10.0.1",
9191
"postcss-preset-env": "^9.3.0",
9292
"prompts": "^2.4.2",
93-
"react-dev-utils": "^12.0.1",
9493
"react-refresh": "^0.14.0",
9594
"recursive-readdir": "^2.2.3",
9695
"resolve": "^1.22.8",

Diff for: pnpm-lock.yaml

+6-164
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)