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.

26 lines
613 B

4 years ago
  1. import yargs from 'yargs';
  2. const args = yargs
  3. .option('production', {
  4. boolean: true,
  5. default: false,
  6. description: 'min all script'
  7. })
  8. .option('watch', {
  9. boolean: true,
  10. default: false,
  11. description: 'watch all script'
  12. })
  13. .option('verbose', {
  14. boolean: true,
  15. default: false,
  16. description: 'log'
  17. })
  18. .option('sourcemaps', {
  19. description: 'force to create the sourcemaps'
  20. })
  21. .option('port', {
  22. string: true,
  23. default: 8080,
  24. description: 'server port'
  25. })
  26. .argv
  27. export default args;