Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacharia2 committed Jul 11, 2023
1 parent 7fe3286 commit 39b1cca
Show file tree
Hide file tree
Showing 4 changed files with 514 additions and 292 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ Epub 到 twpub 转换工具。
## 使用方法

1. 克隆或下载仓库到本地。
2. 执行 `npm i` 为项目安装依赖包。若出错请尝试`npm错误处理方法`
3. 放置epub图书到epubs目录
4. 执行 `npm run build` 开始转换epubs目录中的所有书籍。
5. 等待执行完成。
6. 转换完成后可以在output目录找到转换好的TWPUB书籍。
2. 执行`npm install -g pnpm`安装pnpm。
3. 执行 `pnpm i` 为项目安装依赖包。若出错请尝试`npm错误处理方法`
4. 放置epub图书到epubs目录
5. 执行 `pnpm run build` 开始转换epubs目录中的所有书籍。
6. 等待执行完成。
7. 转换完成后可以在output目录找到转换好的TWPUB书籍。

## NPM错误处理方法

Expand Down
286 changes: 0 additions & 286 deletions package-lock.json

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"jszip": "^3.10.1",
"@xmldom/xmldom": "^0.8.7",
"playwright": "1.36.0",
"tiddlywiki": "5.3.0"
"tiddlywiki": "5.3.0",
"jsdom": "22.1.0"
},
"scripts": {
"test": "node epub2twpub/test.js",
Expand Down
Loading

0 comments on commit 39b1cca

Please sign in to comment.