@asyncapi/generator 2.6.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +147 -0
  2. package/Dockerfile +7 -8
  3. package/docs/asyncapi-document.md +2 -1
  4. package/docs/configuration-file.md +112 -33
  5. package/docs/generator-template-java.md +560 -0
  6. package/docs/generator-template.md +62 -29
  7. package/docs/hooks.md +3 -3
  8. package/docs/installation-guide.md +5 -51
  9. package/docs/migration-cli.md +5 -5
  10. package/docs/migration-nunjucks-react.md +1 -1
  11. package/docs/nunjucks-render-engine.md +4 -2
  12. package/docs/template.md +2 -2
  13. package/docs/usage.md +14 -32
  14. package/docs/versioning.md +3 -1
  15. package/lib/conditionalGeneration.js +162 -0
  16. package/lib/filtersRegistry.js +1 -1
  17. package/lib/generator.js +93 -40
  18. package/lib/hooksRegistry.js +8 -1
  19. package/lib/logMessages.js +6 -1
  20. package/lib/parser.js +10 -0
  21. package/lib/templateConfigValidator.js +30 -1
  22. package/package.json +4 -5
  23. package/test/generator.test.js +1 -1
  24. package/test/hooksRegistry.test.js +173 -0
  25. package/test/integration.test.js +47 -0
  26. package/test/parser.test.js +100 -2
  27. package/test/templateConfigValidator.test.js +18 -1
  28. package/test/test-project/README.md +5 -1
  29. package/test/test-project/docker-compose.yml +7 -15
  30. package/test/test-project/test-project.test.js +6 -2
  31. package/test/test-project/test-registry.test.js +7 -2
  32. package/test/test-project/test.sh +1 -1
  33. package/test/test-templates/nunjucks-template/package-lock.json +43 -119
  34. package/test/test-templates/nunjucks-template/package.json +1 -1
  35. package/test/test-templates/react-template/.ageneratorrc +33 -0
  36. package/test/test-templates/react-template/package.json +5 -21
  37. package/test/test-templates/react-template/template/conditionalFile.txt +0 -0
  38. package/test/test-templates/react-template/template/conditionalFolder/conditionalFile.txt +0 -0
  39. package/test/test-templates/react-template/template/conditionalFolder2/input.txt +0 -0
  40. package/test/utils.test.js +53 -0
  41. package/test/test-project/test-entrypoint.sh +0 -12
@@ -1,12 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Goal of this script is to copy mounted drive into a separate folder
4
- # It is to assure the test run is isolated from the host
5
- # apptemp is mounted from host and we do not want to mess in there
6
-
7
-
8
- # Copy the contents of /apptemp to /app
9
- cp -r /apptemp /app
10
-
11
- # Execute the bash script
12
- bash /app/apps/generator/test/test-project/test.sh test-project