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.

41 lines
675 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. when: when.hasConfig,
  21. choices: [
  22. {
  23. name: 'Watch changes',
  24. value: 'docs-serve'
  25. },
  26. {
  27. name: 'Build all files',
  28. value: 'docs-build'
  29. }
  30. ]
  31. }
  32. ]
  33. };