prompt.js 1001 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. module.exports = [
  3. {
  4. type: 'select',
  5. name: 'libraryName',
  6. // eslint-disable-next-line zammad/zammad-detect-translatable-string
  7. message: 'Where should the component be created?',
  8. choices: [
  9. { libraryName: 'desktop', message: 'Desktop' },
  10. { libraryName: 'mobile', message: 'Mobile' },
  11. { libraryName: 'shared', message: 'Shared' },
  12. ],
  13. },
  14. {
  15. type: 'input',
  16. name: 'name',
  17. // eslint-disable-next-line zammad/zammad-detect-translatable-string
  18. message: 'Component name?',
  19. },
  20. {
  21. type: 'confirm',
  22. name: 'withComposable',
  23. // eslint-disable-next-line zammad/zammad-detect-translatable-string
  24. message: 'Should generate a composable?',
  25. initial: true,
  26. },
  27. {
  28. type: 'confirm',
  29. name: 'withTypeFile',
  30. // eslint-disable-next-line zammad/zammad-detect-translatable-string
  31. message: 'Should generate a type file?',
  32. initial: true,
  33. },
  34. ]