Skip to content

Commit

Permalink
fix(tool): remain generate crud demo files when db is none
Browse files Browse the repository at this point in the history
  • Loading branch information
taccisum committed Jul 3, 2019
1 parent 2266aea commit 94c63d9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,12 @@ module.exports = require('yo-power-generator').getGenerator(obj, {
props.basePath = props.basePackage.replace(/\./g, '/');

props.conditions = {};
if (props.orm !== 'none') {
props.conditions[props.orm] = true;
if (props.demo) {
props.conditions.crud = true;
if (props.db !== 'none') {
if (props.orm !== 'none') {
props.conditions[props.orm] = true;
if (props.demo) {
props.conditions.crud = true;
}
}
}

Expand Down

0 comments on commit 94c63d9

Please sign in to comment.