mirror of
https://github.com/strapi/strapi.git
synced 2025-07-26 18:38:46 +00:00
19 lines
606 B
JavaScript
19 lines
606 B
JavaScript
const shell = require('shelljs');
|
|
const path = require('path');
|
|
|
|
shell.echo("It can takes few minutes...");
|
|
|
|
shell.exec('cd ./node_modules/strapi-helper-plugin');
|
|
shell.exec('npm install');
|
|
|
|
shell.exec('cd ../../');
|
|
|
|
const pwd = shell.pwd();
|
|
const plugins = path.resolve(pwd.stdout, '..', 'plugins');
|
|
|
|
shell.ls('* -d', plugins).forEach(function (plugin) {
|
|
shell.exec(`cd ${path.resolve(plugins, plugin)} && npm install`);
|
|
shell.exec(`cd ${path.resolve(plugins, plugin, 'node_modules', 'strapi-helper-plugin')} && npm install`);
|
|
shell.exec(`cd ${path.resolve(plugins, plugin)} && npm run build`);
|
|
});
|