cli-serve.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*!
  2. * @nuxt/cli v2.15.8 (c) 2016-2021
  3. * Released under the MIT License
  4. * Repository: https://github.com/nuxt/nuxt.js
  5. * Website: https://nuxtjs.org
  6. */
  7. 'use strict';
  8. const consola = require('consola');
  9. const start = require('./cli-start.js');
  10. require('@nuxt/utils');
  11. require('./cli-index.js');
  12. require('@nuxt/config');
  13. require('path');
  14. require('exit');
  15. require('chalk');
  16. require('std-env');
  17. require('wrap-ansi');
  18. require('boxen');
  19. require('minimist');
  20. require('hable');
  21. require('defu');
  22. require('semver');
  23. require('fs');
  24. require('execa');
  25. require('./cli-banner.js');
  26. require('pretty-bytes');
  27. require('connect');
  28. require('serve-static');
  29. require('compression');
  30. function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
  31. const consola__default = /*#__PURE__*/_interopDefaultLegacy(consola);
  32. const serve = {
  33. ...start['default'],
  34. run (...args) {
  35. consola__default['default'].warn('`nuxt serve` has been deprecated! Please use `nuxt start`.');
  36. return start['default'].run.call(this, ...args)
  37. }
  38. };
  39. exports.default = serve;