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

Add Middleman detector #172

Merged
merged 1 commit into from
May 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/detectors/middleman.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const { existsSync } = require("fs");

module.exports = function() {
if (!hasRequiredFiles(["config.rb"])) return false;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing import. Results in undefined


return {
type: "middleman",
port: 8888,
proxyPort: 4567,
env: { ...process.env },
command: "bundle",
possibleArgsArrs: [["exec", "middleman", "server"]],
urlRegexp: new RegExp(`(http://)([^:]+:)${4567}(/)?`, "g"),
dist: "build"
};
};