@kevisual/project-search 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/dist/app.d.ts +239 -0
  2. package/dist/app.js +41898 -0
  3. package/package.json +35 -0
  4. package/readme.md +10 -0
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@kevisual/project-search",
3
+ "version": "0.0.1",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "build": "bun run bun.config.ts"
8
+ },
9
+ "keywords": [],
10
+ "files":["dist"],
11
+ "author": "abearxiong <xiongxiao@xiongxiao.me> (https://www.xiongxiao.me)",
12
+ "license": "MIT",
13
+ "packageManager": "pnpm@10.32.1",
14
+ "type": "module",
15
+ "devDependencies": {
16
+ "@kevisual/code-builder": "^0.0.6",
17
+ "@kevisual/context": "^0.0.8",
18
+ "@kevisual/remote-app": "^0.0.7",
19
+ "@kevisual/router": "^0.1.1",
20
+ "fast-glob": "^3.3.3",
21
+ "meilisearch": "^0.55.0",
22
+ "zod": "^4.3.6"
23
+ },
24
+ "dependencies": {
25
+ "@parcel/watcher": "^2.5.6",
26
+ "es-toolkit": "^1.45.1",
27
+ "eventemitter3": "^5.0.4"
28
+ },
29
+ "exports": {
30
+ ".": "./dist/index.js"
31
+ },
32
+ "publishConfig": {
33
+ "access": "public"
34
+ }
35
+ }
package/readme.md ADDED
@@ -0,0 +1,10 @@
1
+ # 对文件项目快速搜索展示
2
+
3
+ ## 介绍
4
+
5
+ 比如文件夹 `/workspace/projects/project-search` 有很多文件,监听修改后,同步到meilisearh中。增删改查同步。
6
+
7
+ 1. 获取文件夹下的.gitignore文件,解析出需要忽略的文件列表。
8
+ 2. 监听文件夹下的文件修改事件,过滤掉需要忽略的文件,将修改的文件同步到meilisearch中。
9
+ 3. 需要提供一个scheduler任务调度,同步到meilisearch的任务中,如果存在同一个任务还没有被执行,新的任务就不需要被添加到队列中。
10
+ 4. 任务调度是一个队列任务列,先进先出,单线程执行。每次执行一个任务,执行完后再执行下一个任务。