netlify-cli
Version:
Netlify command line tool
18 lines (14 loc) • 352 B
JavaScript
const { existsSync } = require('fs')
const FRAMEWORK_PORT = 1313
module.exports = function detector() {
if (!existsSync('config.toml') && !existsSync('config.yaml')) {
return false
}
return {
framework: 'hugo',
frameworkPort: FRAMEWORK_PORT,
command: 'hugo',
possibleArgsArrs: [['server', '-w']],
dist: 'public',
}
}