From 57c25b6ac2db4e17740b6588776760036a08ad31 Mon Sep 17 00:00:00 2001
From: bertrand <bpinel@ippon.fr>
Date: Wed, 5 Dec 2018 21:24:07 +0100
Subject: [PATCH] Activate JDL processing to produce entity

---
 blueprints/jdl-importer/index.js | 7 ++++++-
 package.json                     | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/blueprints/jdl-importer/index.js b/blueprints/jdl-importer/index.js
index 3521bc8..1b2e824 100644
--- a/blueprints/jdl-importer/index.js
+++ b/blueprints/jdl-importer/index.js
@@ -97,7 +97,12 @@ module.exports = {
               break;
           }
         });
-        console.log('ember g entity-factory ' + entity.name.toLowerCase() + ' ' + entity.options.join(" "));
+        let cmd = 'ember g entity-factory ' + entity.name.toLowerCase() + ' ' + entity.options.join(" ");
+        if (options.dummy) {
+          cmd += ' --dummy';
+        }
+        //console.log(cmd);
+        shelljs.exec(cmd);
     }
 
   },
diff --git a/package.json b/package.json
index f77ac33..f85ad27 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "ember-aws-ehipster",
-  "version": "0.2.0",
+  "version": "0.2.1",
   "description": "The default blueprint for ember-cli addons.",
   "keywords": [
     "ember-addon"
-- 
GitLab