Skip to content

Commit

Permalink
fix: switch the package manager from pnpm to yarn to resolve build is…
Browse files Browse the repository at this point in the history
…sues
  • Loading branch information
Femoon committed Oct 24, 2024
1 parent 9b0cf35 commit b27925f
Show file tree
Hide file tree
Showing 5 changed files with 7,817 additions and 9,891 deletions.
24 changes: 9 additions & 15 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,18 @@
],
"plugins": ["prettier"],
"rules": {
"@typescript-eslint/no-explicit-any": "off", //允许使用any
"@typescript-eslint/ban-ts-comment": "off", //允许使用@ts-ignore
"@typescript-eslint/no-non-null-assertion": "off", //允许使用非空断言
"@typescript-eslint/no-var-requires": "off", //允许使用CommonJS的写法
// "no-console": [
// //提交时不允许有console.log
// "warn",
// {
// "allow": ["warn", "error"]
// }
// ],
"@typescript-eslint/no-explicit-any": "off", // 允许使用any
"@typescript-eslint/ban-ts-comment": "off", // 允许使用@ts-ignore
"@typescript-eslint/no-non-null-assertion": "off", // 允许使用非空断言
"@typescript-eslint/no-var-requires": "off", // 允许使用CommonJS的写法
"@typescript-eslint/no-unused-vars": "warn", // 允许未使用的变量
"no-debugger": "warn",
"import/order": [
"error",
{
//按照分组顺序进行排序
// 按照分组顺序进行排序
"groups": ["builtin", "external", "parent", "sibling", "index", "internal", "object", "type"],
//通过路径自定义分组
// 通过路径自定义分组
"pathGroups": [
{
"pattern": "react*",
Expand All @@ -48,8 +42,8 @@
}
],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "never", //每个分组之间换行
//根据字母顺序对每个组内的顺序进行排序
"newlines-between": "never", // 每个分组之间换行
// 根据字母顺序对每个组内的顺序进行排序
"alphabetize": {
"order": "asc",
"caseInsensitive": true
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ Get your API Key
## Deploy locally

```bash
# install pnpm
npm i -g pnpm
# install yarn
npm i -g yarn
# install dependencies
pnpm i
yarn
# building the production environment
pnpm build
yarn build
# run production environment serve
pnpm start
yarn start
```

## Development
Expand All @@ -58,12 +58,12 @@ NEXT_PUBLIC_MAX_INPUT_LENGTH=4000
Run the development server:

```bash
# install pnpm
npm i -g pnpm
# install yarn
npm i -g yarn
# install dependencies
pnpm i
yarn
# run serve
pnpm run dev
yarn dev
```

Open [http://localhost:3000](http://localhost:3000/) with your browser to see the result.
Expand Down
18 changes: 9 additions & 9 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ TTS Azure Web 是一个 Azure 文本转语音(TTS)网页应用。通过语
## 在本地一键部署

```bash
# 安装 pnpm
npm i -g pnpm
# 安装 yarn
npm i -g yarn
# 安装依赖
pnpm i
yarn
# 构建生产环境
pnpm build
yarn build
# 运行生产环境服务
pnpm start
yarn start
```

## 开发
Expand All @@ -61,12 +61,12 @@ NEXT_PUBLIC_MAX_INPUT_LENGTH=4000
本地运行开发服务器:

```bash
# 安装 pnpm
npm i -g pnpm
# 安装 yarn
npm i -g yarn
# 安装依赖
pnpm i
yarn
# 运行服务器
pnpm run dev
yarn dev
```

使用浏览器打开 [http://localhost:3000](http://localhost:3000/) 查看结果。
Expand Down
Loading

0 comments on commit b27925f

Please sign in to comment.