UNPKG

392 BJavaScriptView Raw
1const { existsSync } = require('fs')
2
3module.exports = function() {
4 if (!existsSync('config.rb')) {
5 return false
6 }
7
8 return {
9 type: 'middleman',
10 port: 8888,
11 proxyPort: 4567,
12 env: { ...process.env },
13 command: 'bundle',
14 possibleArgsArrs: [['exec', 'middleman', 'server']],
15 urlRegexp: new RegExp(`(http://)([^:]+:)${4567}(/)?`, 'g'),
16 dist: 'build'
17 }
18}