Skip to content
This repository was archived by the owner on Jul 2, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions generators/static-api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

const generators = require('yeoman-generator');

const module_dependencies = [
const api_dependencies = [
'swagger-md',
];
const static_api_dependencies = [
'@springworks/static-api-server',
'fixture-loader',
'forever',
'swagger-md',
];

const static_api_package_dir = 'packages/static-api';
Expand Down Expand Up @@ -74,8 +76,11 @@ module.exports = generators.Base.extend({
installDependencies: function() {
this.on('end', function() {
if (!this.options['skip-install']) {
const install_args = ['install', '--save'].concat(module_dependencies);
this.spawnCommandSync('npm', install_args, { cwd: static_api_package_dir });
const static_api_install_args = ['install', '--save'].concat(static_api_dependencies);
this.spawnCommandSync('npm', static_api_install_args, { cwd: static_api_package_dir });

const api_install_args = ['install', '--save'].concat(api_dependencies);
this.spawnCommandSync('npm', api_install_args);
}
});
},
Expand Down