Skip to content

Commit

Permalink
feat: Migrate to the new template structure (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmvilas committed Apr 1, 2020
1 parent 30b7a4b commit 31b0e6e
Show file tree
Hide file tree
Showing 12 changed files with 5 additions and 8 deletions.
File renamed without changes.
3 changes: 0 additions & 3 deletions .hooks/post-process.js → hooks/post-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ module.exports = register => {
*/
}

// Rename the README file.
fs.renameSync(path.resolve(generator.targetDir, "__README.md"), path.resolve(generator.targetDir, "README.md"));

// Rename schema objects if necessary

const schemas = asyncapi._json.components.schemas;
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions src/main/java/$$schema$$.java

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions template/src/main/java/$$schema$$.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% include 'partials/java-package' -%}
{% from "partials/java-class" import javaClass %}
{{ javaClass(schemaName, schema.properties(), 0, false ) }}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{# vim: set ts=4 sw=4 sts=4 noexpandtab : #}
{%- include '.partials/java-package' -%}
{%- include 'partials/java-package' -%}

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{# vim: set ts=4 sw=4 sts=4 noexpandtab : #}
{%- include '.partials/java-package' -%}
{%- include 'partials/java-package' -%}

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
File renamed without changes.

0 comments on commit 31b0e6e

Please sign in to comment.