- Add .gitignore to exclude unnecessary files and directories - Create .npmrc for npm authentication - Add AGENTS.md for project documentation - Initialize package.json with project metadata and dependencies - Implement app.ts to set up the application and project manager - Create file-search module for searching files in a directory - Set up project manager and listener for managing project files - Implement project search functionality with MeiliSearch integration - Add routes for authentication and project management - Create scheduler for task management - Add tests for file searching and project management functionalities
11 lines
340 B
TypeScript
11 lines
340 B
TypeScript
import path from "node:path";
|
|
import { FileSearch } from "../src/file-search";
|
|
import { projectPath } from "./common";
|
|
const fileSearch = new FileSearch();
|
|
|
|
async function testSearchFiles() {
|
|
const files = await fileSearch.searchFiles({ cwd: projectPath });
|
|
console.log('Found files:', files);
|
|
}
|
|
|
|
testSearchFiles().catch(console.error); |