constants.ts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. export const REQUIRED_NODE_VERSION = '>=20.0.0';
  2. export const SERVER_PORT = 3000;
  3. export const STOREFRONT_PORT = 3001;
  4. export const STOREFRONT_REPO = 'vendure-ecommerce/nextjs-starter-vendure';
  5. export const STOREFRONT_BRANCH = 'main';
  6. /**
  7. * The TypeScript version needs to pinned because minor versions often
  8. * introduce breaking changes.
  9. */
  10. export const TYPESCRIPT_VERSION = '5.8.2';
  11. // Port scanning
  12. export const PORT_SCAN_RANGE = 20;
  13. // Timing constants (milliseconds)
  14. export const SCAFFOLD_DELAY_MS = 500;
  15. export const TIP_INTERVAL_MS = 10_000;
  16. export const CI_PAUSE_BEFORE_CLOSE_MS = 30_000;
  17. export const CI_PAUSE_AFTER_CLOSE_MS = 10_000;
  18. export const NORMAL_PAUSE_BEFORE_CLOSE_MS = 2_000;
  19. export const AUTO_RUN_DELAY_MS = 10_000;
  20. // Default project values
  21. export const DEFAULT_PROJECT_VERSION = '0.1.0';
  22. export const TIPS_WHILE_WAITING = [
  23. '☕ This can take a minute or two, so grab a coffee',
  24. `✨ We'd love it if you drop us a star on GitHub: https://github.com/vendurehq/vendure`,
  25. `📖 Check out the Vendure documentation at https://docs.vendure.io`,
  26. `💬 Join our Discord community to chat with other Vendure developers: https://vendure.io/community`,
  27. '💡 In the mean time, here are some tips to get you started',
  28. `Vendure provides dedicated GraphQL APIs for both the Admin and Shop`,
  29. `Almost every aspect of Vendure is customizable via plugins`,
  30. `You can run 'vendure add' from the command line to add new plugins & features`,
  31. `Use the EventBus in your plugins to react to events in the system`,
  32. `Vendure supports multiple languages & currencies out of the box`,
  33. `☕ Did we mention this can take a while?`,
  34. `Our custom fields feature allows you to add any kind of data to your entities`,
  35. `Vendure is built with TypeScript, so you get full type safety`,
  36. `Combined with GraphQL's static schema, your type safety is end-to-end`,
  37. `☕ Almost there now... thanks for your patience!`,
  38. `Collections allow you to group products together`,
  39. `Our AssetServerPlugin allows you to dynamically resize & optimize images`,
  40. `Order flows are fully customizable to suit your business requirements`,
  41. `Role-based permissions allow you to control access to every part of the system`,
  42. `Customers can be grouped for targeted promotions & custom pricing`,
  43. `You can find integrations in the Vendure Hub: https://vendure.io/hub`,
  44. ];