cleaning cli
This commit is contained in:
@@ -7,7 +7,6 @@ process.env.cwd = process.env.GANCIO_DATA || path.resolve('./')
|
|||||||
process.chdir(path.resolve(__dirname, '..'))
|
process.chdir(path.resolve(__dirname, '..'))
|
||||||
|
|
||||||
async function start () {
|
async function start () {
|
||||||
const suffix = require('../package.json').name.includes('-edge') ? '-edge' : ''
|
|
||||||
require('@nuxt/cli-edge').run(['start', '--modern'])
|
require('@nuxt/cli-edge').run(['start', '--modern'])
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
@@ -15,16 +14,10 @@ async function start () {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
console.info(`📅 ${pkg.name} - v${pkg.version} - ${pkg.description} (nodejs: ${process.version}, ENV: ${process.env.NODE_ENV})`)
|
console.info(`📅 ${pkg.name} - v${pkg.version} - ${pkg.description} (nodejs: ${process.version})`)
|
||||||
|
|
||||||
require('yargs')
|
require('yargs')
|
||||||
.usage('Usage $0 <command> [options]')
|
.usage('Usage $0 <command> [options]')
|
||||||
.option('docker', {
|
|
||||||
alias: 'd',
|
|
||||||
describe: 'Inside docker',
|
|
||||||
default: false,
|
|
||||||
type: 'boolean'
|
|
||||||
})
|
|
||||||
.option('config', {
|
.option('config', {
|
||||||
alias: 'c',
|
alias: 'c',
|
||||||
describe: 'Configuration file',
|
describe: 'Configuration file',
|
||||||
|
|||||||
Reference in New Issue
Block a user