From a87ec63a7d3bdb9a8415e11edb84c8f878e48341 Mon Sep 17 00:00:00 2001 From: sinedied Date: Tue, 26 Apr 2022 13:33:17 +0200 Subject: [PATCH] feat(detect): add more frameworks and fix some --- src/core/frameworks/frameworks.ts | 42 ++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/src/core/frameworks/frameworks.ts b/src/core/frameworks/frameworks.ts index 704da70a..ea153a8b 100644 --- a/src/core/frameworks/frameworks.ts +++ b/src/core/frameworks/frameworks.ts @@ -307,7 +307,10 @@ export const appFrameworks: FrameworkDefinition[] = [ { id: "hugo", name: "Hugo", - files: ["content", "config.toml"], + files: ["config.toml", "content", "static"], + contains: { + "config.toml": "baseURL =", + }, config: { appBuildCommand: "hugo -D", devServerCommand: "hugo server -D", @@ -340,6 +343,7 @@ export const appFrameworks: FrameworkDefinition[] = [ { id: "slate", name: "Slate", + preempt: ["middleman"], files: ["slate.sh", "Gemfile"], config: { appBuildCommand: "./slate.sh build", @@ -497,4 +501,40 @@ export const appFrameworks: FrameworkDefinition[] = [ outputLocation: "build", } }, + { + id: "mdbook", + name: "mdBook", + files: ["book.toml"], + config: { + appBuildCommand: "mdbook build", + devServerCommand: "mdbook serve", + devServerUrl: "http://localhost:3000", + outputLocation: "book", + } + }, + { + id: "zola", + name: "Zola", + files: ["config.toml", "content", "static"], + contains: { + "config.toml": "base_url =", + }, + config: { + appBuildCommand: "zola build", + devServerCommand: "zola serve", + devServerUrl: "http://localhost:1111", + outputLocation: "public", + } + }, + { + id: "lektor", + name: "Lektor", + files: ["*.lektorproject"], + config: { + appBuildCommand: "lektor build --output-path dist", + devServerCommand: "lektor server", + devServerUrl: "http://localhost:5000", + outputLocation: "dist", + } + }, ];