UNPKG

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