Skip to content

Commit 31b0e6e

Browse files
authored
feat: Migrate to the new template structure (#5)
1 parent 30b7a4b commit 31b0e6e

File tree

12 files changed

+5
-8
lines changed

12 files changed

+5
-8
lines changed

.filters/all.js filters/all.js

File renamed without changes.

.hooks/post-process.js hooks/post-process.js

-3
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ module.exports = register => {
7979
*/
8080
}
8181

82-
// Rename the README file.
83-
fs.renameSync(path.resolve(generator.targetDir, "__README.md"), path.resolve(generator.targetDir, "README.md"));
84-
8582
// Rename schema objects if necessary
8683

8784
const schemas = asyncapi._json.components.schemas;
File renamed without changes.
File renamed without changes.

src/main/java/$$schema$$.java

-3
This file was deleted.

__README.md template/README.md

File renamed without changes.

pom.app template/pom.app

File renamed without changes.

pom.lib template/pom.lib

File renamed without changes.
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{% include 'partials/java-package' -%}
2+
{% from "partials/java-class" import javaClass %}
3+
{{ javaClass(schemaName, schema.properties(), 0, false ) }}

src/main/java/Application.java template/src/main/java/Application.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{# vim: set ts=4 sw=4 sts=4 noexpandtab : #}
2-
{%- include '.partials/java-package' -%}
2+
{%- include 'partials/java-package' -%}
33

44
import org.slf4j.Logger;
55
import org.slf4j.LoggerFactory;

src/main/java/Messaging.java template/src/main/java/Messaging.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{# vim: set ts=4 sw=4 sts=4 noexpandtab : #}
2-
{%- include '.partials/java-package' -%}
2+
{%- include 'partials/java-package' -%}
33

44
import org.slf4j.Logger;
55
import org.slf4j.LoggerFactory;

0 commit comments

Comments
 (0)