Skip to content
This repository was archived by the owner on Sep 12, 2019. It is now read-only.

Commit 340a442

Browse files
committed
Add Middleman detector
https://middlemanapp.com/
1 parent 12f274f commit 340a442

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/detectors/middleman.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const { existsSync } = require("fs");
2+
3+
module.exports = function() {
4+
if (!hasRequiredFiles(["config.rb"])) return false;
5+
6+
return {
7+
type: "middleman",
8+
port: 8888,
9+
proxyPort: 4567,
10+
env: { ...process.env },
11+
command: "bundle",
12+
possibleArgsArrs: [["exec", "middleman", "server"]],
13+
urlRegexp: new RegExp(`(http://)([^:]+:)${4567}(/)?`, "g"),
14+
dist: "build"
15+
};
16+
};

0 commit comments

Comments
 (0)