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.

49 lines
780 B

  1. /*******************************
  2. Install Questions
  3. *******************************/
  4. var defaults, fs, filter, when;
  5. fs = require('fs');
  6. defaults = require('../defaults');
  7. filter = {
  8. removeTrailingSlash: function(path) {
  9. return path.replace(/(\/$|\\$)+/mg, '');
  10. }
  11. };
  12. when = {
  13. };
  14. module.exports = {
  15. docs: [
  16. {
  17. type: 'list',
  18. name: 'action',
  19. message: 'How should we provide files to docs?',
  20. choices: [
  21. {
  22. name: 'Watch changes',
  23. value: 'docs-serve'
  24. },
  25. {
  26. name: 'Build all files',
  27. value: 'docs-build'
  28. }
  29. ]
  30. }
  31. ],
  32. createRepo: [
  33. {
  34. type: 'confirm',
  35. name: 'allow',
  36. message: 'Create new repo?',
  37. default: true
  38. }
  39. ]
  40. };