@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.
- package/CHANGELOG.md +147 -0
- package/Dockerfile +7 -8
- package/docs/asyncapi-document.md +2 -1
- package/docs/configuration-file.md +112 -33
- package/docs/generator-template-java.md +560 -0
- package/docs/generator-template.md +62 -29
- package/docs/hooks.md +3 -3
- package/docs/installation-guide.md +5 -51
- package/docs/migration-cli.md +5 -5
- package/docs/migration-nunjucks-react.md +1 -1
- package/docs/nunjucks-render-engine.md +4 -2
- package/docs/template.md +2 -2
- package/docs/usage.md +14 -32
- package/docs/versioning.md +3 -1
- package/lib/conditionalGeneration.js +162 -0
- package/lib/filtersRegistry.js +1 -1
- package/lib/generator.js +93 -40
- package/lib/hooksRegistry.js +8 -1
- package/lib/logMessages.js +6 -1
- package/lib/parser.js +10 -0
- package/lib/templateConfigValidator.js +30 -1
- package/package.json +4 -5
- package/test/generator.test.js +1 -1
- package/test/hooksRegistry.test.js +173 -0
- package/test/integration.test.js +47 -0
- package/test/parser.test.js +100 -2
- package/test/templateConfigValidator.test.js +18 -1
- package/test/test-project/README.md +5 -1
- package/test/test-project/docker-compose.yml +7 -15
- package/test/test-project/test-project.test.js +6 -2
- package/test/test-project/test-registry.test.js +7 -2
- package/test/test-project/test.sh +1 -1
- package/test/test-templates/nunjucks-template/package-lock.json +43 -119
- package/test/test-templates/nunjucks-template/package.json +1 -1
- package/test/test-templates/react-template/.ageneratorrc +33 -0
- package/test/test-templates/react-template/package.json +5 -21
- package/test/test-templates/react-template/template/conditionalFile.txt +0 -0
- package/test/test-templates/react-template/template/conditionalFolder/conditionalFile.txt +0 -0
- package/test/test-templates/react-template/template/conditionalFolder2/input.txt +0 -0
- package/test/utils.test.js +53 -0
- 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
|