Skip to content

Commit

Permalink
feat(detect): add more frameworks and fix some
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Apr 27, 2022
1 parent 3e3b589 commit a87ec63
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion src/core/frameworks/frameworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -340,6 +343,7 @@ export const appFrameworks: FrameworkDefinition[] = [
{
id: "slate",
name: "Slate",
preempt: ["middleman"],
files: ["slate.sh", "Gemfile"],
config: {
appBuildCommand: "./slate.sh build",
Expand Down Expand Up @@ -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",
}
},
];

0 comments on commit a87ec63

Please sign in to comment.