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
File renamed without changes.

.hooks/post-process.js renamed to hooks/post-process.js

Lines changed: 0 additions & 3 deletions
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

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 0 deletions
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 renamed to template/src/main/java/Application.java

Lines changed: 1 addition & 1 deletion
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)