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

Commit 47ed3e6

Browse files
authored
Merge pull request #172 from tysongach/master
Add Middleman detector
2 parents 5efd73a + 340a442 commit 47ed3e6

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)