This commit is contained in:
Marek
2026-05-01 03:33:43 +02:00
parent a723f1ea0f
commit 6ea56fb5e0
23 changed files with 213 additions and 73 deletions

View File

@@ -94,6 +94,19 @@ export async function createFeature(
return await ensureFile(app, featurePath(project, area, feature), "");
}
export function projectFeaturePath(project: string, feature: string): string {
const file = feature.endsWith(".md") ? feature : `${feature}.md`;
return normalizePath(`${PROJECTS_ROOT}/${project}/${file}`);
}
export async function createProjectFeature(
app: App,
project: string,
feature: string,
): Promise<TFile> {
return await ensureFile(app, projectFeaturePath(project, feature), "");
}
export function isProjectRootFile(name: string): boolean {
return (PROJECT_FILES as readonly string[]).includes(name);
}