Skip to content

Commit

Permalink
feat: run tasks in parellel
Browse files Browse the repository at this point in the history
  • Loading branch information
tychenjiajun committed Sep 14, 2024
1 parent 293c31e commit 86a0efa
Show file tree
Hide file tree
Showing 12 changed files with 1,123 additions and 167 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/**/*
node_modules/**/*
node_modules/**/*
coverage/**/*
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ Optional options:
- `-w, --watch <path>`: Watch directory for new files to process.
- `--avoid-overwrite`: Avoid overwriting if EXIF tags already exist in the file.
- `--ext <extensions...>`: File extensions to watch. Only files with this extensions will be processed.
- `--concurrency <number>`: The numbers of files to process concurrently in watch mode.

Example usage:

Expand Down Expand Up @@ -131,7 +132,7 @@ Ollama runs locally and does not require an API key. Ensure that Ollama is insta

### Prerequisites

- Node.js >=18
- Node.js >=16
- pnpm

### Clone the Repository
Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exif-ai",
"version": "3.0.5",
"version": "3.0.6",
"description": "A Node.js CLI and library that uses Ollama or ZhipuAI to intelligently write image description and/or tags to exif metadata by it's content.",
"homepage": "https://github.com/tychenjiajun/exif-ai",
"repository": {
Expand All @@ -14,7 +14,8 @@
"build": "tsc -p tsconfig.build.json",
"clean": "rimraf dist",
"watch": "tsc --watch -p tsconfig.build.json",
"test": "vitest"
"test": "vitest",
"test:ui": "vitest --ui"
},
"engines": {
"node": ">=16"
Expand Down Expand Up @@ -53,12 +54,16 @@
"iso-639-1": "^3.1.3",
"node-fetch": "^3.3.2",
"ollama": "^0.5.8",
"p-limit": "^6.1.0",
"sharp": "0.32.6",
"ts-extras": "^0.13.0",
"xhr2": "^0.2.1"
},
"devDependencies": {
"@eslint/js": "^9.9.1",
"@types/node": "^22.5.1",
"@vitest/coverage-istanbul": "^2.1.1",
"@vitest/ui": "^2.1.1",
"del": "^7.1.0",
"eslint": "^9.9.1",
"eslint-plugin-n": "^17.10.2",
Expand Down
Loading

0 comments on commit 86a0efa

Please sign in to comment.