You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

27 lines
613 B

import yargs from 'yargs';
const args = yargs
.option('production', {
boolean: true,
default: false,
description: 'min all script'
})
.option('watch', {
boolean: true,
default: false,
description: 'watch all script'
})
.option('verbose', {
boolean: true,
default: false,
description: 'log'
})
.option('sourcemaps', {
description: 'force to create the sourcemaps'
})
.option('port', {
string: true,
default: 8080,
description: 'server port'
})
.argv
export default args;