Common front-end components for Web using the Tesseract design system, written for React. https://make.modal.sh/tesseract/web/react/common
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

plopfile.js 733 B

123456789101112131415161718192021222324252627282930
  1. const testName = require('./plop/helpers/testName.js')
  2. module.exports = plop => {
  3. plop.setGenerator('component', {
  4. description: 'Creates a component.',
  5. prompts: [
  6. {
  7. name: 'name',
  8. message: 'Enter the component name.',
  9. validate: name => {
  10. if (name.trim().length < 1) {
  11. return 'Name is required.'
  12. }
  13. return true
  14. },
  15. },
  16. {
  17. name: 'description',
  18. message: 'Describe your component.',
  19. },
  20. ],
  21. actions: [
  22. {
  23. type: 'addMany',
  24. templateFiles: 'plop/templates/component/*',
  25. base: 'plop/templates/component',
  26. destination: 'lib/components/{{pascalCase name}}',
  27. },
  28. ],
  29. })
  30. }