Skip to content

Commit

Permalink
Merge pull request #95 from byhow/dev
Browse files Browse the repository at this point in the history
build: upgrade node versions
  • Loading branch information
byhow authored Nov 19, 2024
2 parents 3b4b035 + fcc47f3 commit 527ab08
Show file tree
Hide file tree
Showing 5 changed files with 5,114 additions and 4,203 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,26 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
version: 9

- name: install ffmpeg
run: |
sudo apt-get update
sudo apt-get install ffmpeg
- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: pnpm lint

10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
version: 9
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: install ffmpeg
run: |
sudo apt-get update
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<h1>
Yanyu.js
</h1>
# Yanyu.js

<p>
<a href="https://zh.m.wiktionary.org/zh/%E8%A8%80">
Expand All @@ -13,18 +11,23 @@
<a href="https://github.com/byhow/yanyu/blob/master/LICENSE"><img alt="GitHub license" src="https://img.shields.io/github/license/byhow/yanyu"></a> ![](https://github.com/byhow/yanyu/workflows/npm-test/badge.svg)

## Overview

<!--alex ignore chinese-->

Yanyu is a high speed Chinese Text-to-Speech server-side library for Node.js. It aims to generate audio files based on Chinese characters. Recognition and support for other languages is planned in the future.

## Installation

Run the following command:

```bash
pnpm i -D yanyu
pnpm i yanyu
```

## QuickStart

<!--alex ignore chinese-->

Call the `systhesis()` function to convert Chinese characters to mp3 files.

```js
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@
},
"homepage": "https://github.com/byhow/yanyu#readme",
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@types/audiosprite": "^0.7.3",
"@types/jest": "29.5.12",
"@types/node": "^20.12.12",
"@types/node": "^20.17.6",
"@types/pinyin": "^2.10.2",
"@typescript-eslint/eslint-plugin": "latest",
"@typescript-eslint/parser": "latest",
"alex": "11.0.1",
"audiosprite": "^0.7.2",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"eslint": "^8.57.1",
"husky": "^9.1.7",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"lint-staged": "^15.2.10",
"pinyin": "^3.1.0",
"prettier": "^3.2.5",
"prettier": "^3.3.3",
"standard-version": "^9.5.0",
"typescript": "^5.4.5"
"typescript": "^5.6.3"
},
"husky": {
"hooks": {
Expand Down
Loading

0 comments on commit 527ab08

Please sign in to comment.