Skip to content

Commit

Permalink
Merge pull request #168 from VAlmea/upendo-generator-update-dependencies
Browse files Browse the repository at this point in the history
Upendo generator update dependencies
  • Loading branch information
WillStrohl authored Jan 23, 2023
2 parents 3089cda + 5608340 commit 2187fae
Show file tree
Hide file tree
Showing 4 changed files with 29,205 additions and 14,305 deletions.
16 changes: 10 additions & 6 deletions generators/spa/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,16 +386,20 @@ module.exports = class extends DnnGeneratorBase {
}

install() {
if (this.props.spaType !== "VueJS")
this._writeSolution();
this._defaultInstall();
this._writeSolution();
if (this.props.spaType !== "VueJS") {
try {
this._defaultInstall();
} catch { }
}
}

end() {
this.log(chalk.white('Installed Dependencies.'));
this.log(chalk.white('Running dotnet restore.'));
this.spawnCommand('dotnet', ['restore']);
process.chdir('../');
this.log(chalk.white('All Ready!'));
process.chdir('Modules/' + this.props.moduleName);
this.spawnCommand('dotnet', ['restore'], { cwd: process.cwd() }).then(() => {
this.log(chalk.white('All Ready!'));
});
}
};
Loading

0 comments on commit 2187fae

Please sign in to comment.