mirror of
https://github.com/strapi/strapi.git
synced 2025-09-21 22:40:24 +00:00
28 lines
417 B
JavaScript
28 lines
417 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Module dependencies
|
|
*/
|
|
|
|
const { exec } = require('child_process');
|
|
const path = require('path');
|
|
|
|
/**
|
|
* 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);
|
|
}
|
|
|
|
cb();
|
|
});
|
|
};
|