28 lines
417 B
JavaScript
Raw Normal View History

2016-12-01 16:44:03 +01:00
'use strict';
/**
* Module dependencies
*/
const { exec } = require('child_process');
const path = require('path');
2016-12-01 16:44:03 +01:00
/**
* Runs after this generator has finished
*
* @param {Object} scope
* @param {Function} cb
*/
module.exports = (scope, cb) => {
exec('npm install', {
cwd: path.resolve(scope.rootPath, 'admin')
}, (err, stdout) => {
if (err) {
return cb(err);
}
2016-12-01 16:44:03 +01:00
cb();
});
2016-12-01 16:44:03 +01:00
};